#voice-chat-text-0
1 messages · Page 956 of 1
and dosent really tell you anything, but its an enjoyable show
like 8 episodes long, and theirs a scam each show
🤣
Everyone is compromised
you cant find someone which dosent have a conflict of interests
unless we have an ethical robot
@haughty pier would you get charged with domestic violence Against your robot if they didnt cook your food the way you like it?
I would probably spend hours tweaking the settings so that the whites are maximally and yolks minimally coagulated...
your daddy was a good man aaron hall
Sounds like a good man
^
Question: What's your definition of "rich"?
<Can't talk yet not voice verified>
That is a good point
Because some people think "rich" is anyone over $100k
Highly depends on cost of living of where you're at
When I think that taxing the rich is targeting the people in the tens of millions.
billionaires in the US hold 1t$ of wealth
Well, 1% from what I know is anything over $360K individual
That one
that's 1 years government funding
taxing them isn't enough of a solution
people earning 120k almost certainly need to end up paying more tax if you want European levels of public service
Well the issue is that there are so many tax loopholes and deductions and other things that help them from having to pay a lot of taxes
Or any in some cases
Yeah
Context, I work at an accounting firm and see all these things as I scan in documents
This is the tough part and I do get torn on it a bit, part of me thinks SOME form of tax break is fair if they're creating jobs but other part is like...yeah you can't just pay nothing that's not fair and pocket away huge profits.
It's all tough stuff to solve, even when it comes to unemployment or social support structures - some people do legitimately need and use it, which I'm fine supporting.
But then there are people just abusing that system, which sucks.
For sure
By abuse I mean people that definitely could work, but don't want to for some reason or other.
But the folks who it does help (which is still the majority) depend on it
I mean even they need to live
'lay abouts' 'people goofing around'
aaron halls descriptions of people
Legendary.
he works the hardest, everyone else Do... NOTHING.
They do but not at expense of others that do work
In my unrealistic world, people are generally okay supporting those who really need those systems and people who are able bodied are all working and okay with it
I'm definitely biased though, I have two family members (siblings) that could be working but have sat on the support of the system for majority of their life
And it's infuriating to watch them make more decisions in every aspect of their life, especially financial - makes me want to rip the whole system out but I know there's people out there that do need it.
i would @quasi condor
because i come from a broke family
so id make them come back and break bread with me
I'd be in there with you jmac
trying to construct a method for removing a value only from one key and appending it to another key.. all da darn google searches say removing a value from a key, but show removing the key to remove the value.. I have many values in each key... and they are unique
Can you give an example input output?
They are functionally un able to work in an economy that outlaws jobs that pay less than a certain wage.
Kill me
there a many people who ARE disabled who can't work and provide enough value to sustain their own needs of resources.
And in a lot of cases, the current structure still has a hard time keeping them afloat
Specifically, my oldest childhood friend is in and out of the hospital his entire life since he developed rasmussen's syndrome at the age of 10. his medical bills are insane. Very sad.
I'm not familiar with Rasmussen's Syndrome
it's bad.
Fair enough
Yikes, just Googled it - sorry for your friend.
Tl;Dr - Brain inflames and deteriorates - causing seizures and neurological deterioation
Oh holy hell
@molten pewter would you characterise yourself as an intelligent person?
big asteroid hit the earth, furyo was watching dont look up
Got a meeting soon, ciao!
You are a very blessed man == Bless your heart? @rugged root
Honestly not sure where I was going with it
Just came out
lol you're my favorite. XD
Might be worth looking at as an example
On 22nd April, India recorded the world’s highest number of daily Covid-19 infections – 314,835 new cases in 24 hours and 2,104 deaths.
The devastating second wave comes a year after the country imposed one of the most rigid lockdown restrictions in the world
Narrative voice is the perspective the story is told from. The writer chooses a narrative voice carefully, as it can have an important effect on the story and the reader’s response.
@molten pewter you failed me for writing in the narrative voice in my senior year
you knew that paper was an A
India’s infections set new pandemic records in April, with more than 300 000 positive tests each day for a week. Kamala Thiagarajan looks at the many unanswered questions
On 26 April India saw the highest daily tally of new SARS-CoV-2 infections ever recorded in the world, 360 960, taking its pandemic total to 16 million cases, second only to t...
i dont like the narrative voice either
i feel like the narrative voice is for people who like to see drama
I don't really know what Furyo means by that.
like watch soap operas
negativity sells more-thats why they use the narrative voice
its like watching a verbal boxing match
I HEARDDDDDDDDDD BOBBY DID THIS
Who ...
it just leads to misinformation
I'll be back, have to do a deposit run
@molten pewter can you define "narrative voice" please?
I've got a call in a bit - will need to focus on that.
Nature abhors a vacuum - in my past moderation activities I've found it's far easier to change the subject than simply quit it.
I'm not taking a position on changing the subject, just trying to represent Hemlock's view as a stakeholder.
whos doing homework?
me
Mee
I had an appointment yesterday so i have to finish yesterdays assignments today
which sucks btw
bc reading comp and drama (I've had enough fucking drama for today)
@cyan stirrup are you serious 4 weeks??
damn, no wonder they call you hardcore finesse
yea you did 2 weeks, but you didnt eat that day
damn you got a wife
you sound hella young
you lucky
you got a wife who takes care of you
@cyan stirrup you gotta do what you gotta do. Good luck
what is it right now youre working on?
sounds fun, final year?
🤣
i graduate at the same time
we need to start a study group
i think everyone has had some experience of dm helpers, people that constantly dm you for help instead of opening a help channel
or try to get jobs
its time for us to get jobs now
we're going to be regular people
start one
create a channel, ill join
nah
I don't need help
i require emotional support
not help
not python
not just help, having people to study with
:/
@cyan stirrup can i nickname you "hard?"
i gotta keep my privacy
what state you in?
im in cyber security
i gotta plan ahead
bad logical state
hardcore how did you do 2 weeks in 1 day?
@lyric pawn do you speak in wingdings?
Bc you're reacting to messages an unhealthy amount
reallly!!!!?????
thats just for 1 unit though and 1 test
not every single one
🤣
so why do you need to work?
or you still have too?
Thats cool
Hey who wants a comprehensive list of swears my bot script came up with?
that even though youre getting the work easy, that youre still dedicated to put the time in
i think with your circumstance @cyan stirrup anyone would let 2 weeks slide
Oh ok
good luck dude
For my second hs application they just asked for emails and my address, no previous school proof, bc of the pandemic state here.
I didn't even need to show a report card
Although they might ask for it at some point
JMAC Needs HIS PRIVACY @cyan stirrup
your cyber security lol
you'll figure it out and be able to talk to us in voice at the same time.
how am i ever going to be trusted if everyone knows who i am
that's why we'll trust you.
because you'll be able to build trust
and try to intimidate me
can't build trust if no one knows who tf you are
start today?
im trying to jump that
i guess im trying to finesse
not as good as you
but im trying
LOL cyber security is way higher level than the shit I do bruh
thats true
i cant lie
Maybe ill make an appearance
A special appearance
on monday night raw
ooooh yeah i made a mod bot that uses that list of 1400 variants of swears to block swears
¯_(ツ)_/¯
arent you doing computer science? Isnt it the same level?
and youre graduating and that same feeling youre talking about i have too
lol MAYBEEEEEEEEE if I get good at Machine learning.
we still need to get our feet wet in the industry
tru
im not submitting my bot to dbl or top.gg, idk how
since it's only 3000 lines and i still need to add more commands, and i haven't created a global version and hosted it either
There's always lots of headbashing when learning things @zealous marlin 😛
<sorry not voice verified yet, soon hopefully>
learning python = making a discord bot, learning c++ = making a game, learning java = .....
Ah, sorry TBS = The Black Swordsman - it's from the protagonist of the manga/anime series Berserk
<Hence the profile pic>
LOL
I usually change it on other servers to Teabiscuits, a bit of a play on the name
Should've changed it to that here
Later man
@whole bear what you working on?
very cool
🤣 \
im doing homework
but taking a break right now
its gotta be done. Dont have to feel bad. 👌
brb guys
hey guys :D
nothing much, just came here rn
Computer science engineering
lol
yes
no
3rd year CSE
what about you?
college
undergrad
I'm in Android App Development, have worked a little bit with Python
@molten pewter oh, that's cool ^_^
it's fun
you can start with https://g.co/android/basics if you want
I see
we work with Kotlin now, even I'd started with Java, switched to Kotlin recently like a few months ago
Kotlin's fun
@rugged root can I get speaking perms?
I have a bad english accent btw
uhmm okayy sure
thanks 😄
i like your english haha
I like british accent btw :P
I'm Indian, so I kinda have a south-asian accent
I'm trying to speaking more in english to be more fluent :))
!stream 588068033415741525 20M
✅ @molten pewter can now stream until <t:1642110530:f>.
@molten pewter so I synced my Google Drive to my Windows 10 PC but it created a network drive that I can't access in the "indexed Locations" when trying to modify the Index params.
sorry off topic. -.-
“Pull the beer from the market, or we suspend your license,” @FlyingDog Brewery CEO Jim Caruso was told.
Why? A liquor commission didn’t like his label. https://t.co/eNYjUtuL4c
In older literature, women of any class are often depicted spinning, a horrendously time-consuming task.
But by the time of Jane Austen’s novels in the early 19th century, spinning is never mentioned – it was all done in the factories by then.
https://t.co/pWqrNItvdY
thats the Griff G
Logos for what?
Please don't submit logo's with IG since they're not transferable and ideally no lighting bolts please 🙂
We're a renewable energy start up with the company name Inspire Green with our sub brands Inspire Charge, Inspire Heat and Inspire Solar. We are looking for a consistent brand across the 4 names. We're primarily B to B but we also offer B to C services. Inspire Charge installs EV car chargers, Inspire Heat installs air source heat pumps and Inspire Solar installs solar panels.
gtg 👋
50eur for that one and for Glasses are Urza assuming both are Alpha
that is good $ who are these people that will buy them?
nerds
the actual way people sell cards in the US is typically either directly to a game store, such as Card Kingdom, or via TCG Player which is a marketplace
for rarer cards like Timetwister, it's also often done by one specific Facebook group
to bad I deleted facebook and will never go back
Sinewave on a graph.
It's raining corndogs!
$ grep --help
Usage: grep [OPTION]... PATTERNS [FILE]...
Search for PATTERNS in each FILE.
Example: grep -i 'hello world' menu.h main.c
PATTERNS can contain multiple patterns separated by newlines.
$Path = "C:\Test"
$Find = "Allocations"
$WordExts = '.docx','.doc','.docm'
$Word = New-Object -ComObject Word.Application #create word obj
$Word.Visible = $false #hide the window
$ValidDocs = Get-ChildItem $Path | ? {$_.Extension -in $WordExts} | ForEach { #Foreach doc/docx/docm file in the above folder
$Doc = $Word.Documents.Open($_.FullName) #Open the document in the word object
$Content = $Doc.Content #get the 'content' object from the document
$Content.MoveStart() | Out-Null #ensure we're searching from the beginning of the doc
#term,case sensitive,whole word,wildcard,soundslike,synonyms,direction,wrappingmode
if ($Content.Find.Execute($Find,$false, $true, $false, $false, $false, $true, 1)){ #execute a search
Write-Host "$($_.Name) contains $($findText)" -ForegroundColor Green
$_.FullName #store this in $ValidDocs
} else {
Write-Host "$($_.Name) does not contain $($findText)" -ForegroundColor Red
}
$Doc.Close() #close the individual document
$Doc = $null #null it just in case
}
$Word.Quit() #quit the word process
$Word = $null #null it just in case
return $ValidDocs #return list of docs with the word in them
$destination = 'c:\temp\'
$docs = Get-ChildItem -Path $source -Recurse | Where-Object {$_.Name -match
'.docx'}
foreach ($doc in $docs)
{
if
($word.Documents.Open($doc.FullName).Content.Find.Execute('wordtosearchfor'))
{
Write-Host "$doc contains 'Test'"
$docs | Out-File C:\temp\result.txt
}
else
{
$word.Application.ActiveDocument.Close()
}
}
✅ @cyan stirrup can now stream until <t:1642115076:f>.
As soon as you said "bear with me" that made me think of this:
While the U.S. has a terrible history of racism, the country has made incredible strides in ending intolerance.
Today, the United States is one of the least racist countries in the world.
Explore the data: https://t.co/v38JkIMZ0c https://t.co/Sju07YIXV7
not a great measure of racism though is it? Seems like it's only testing overt racism which isn't really the problem in the US
It’s easy to blame the other side. And for many Democrats, it’s obvious that Republicans are thwarting progress toward a more equal society.
But what happens when Republicans aren’t standing in the way?
In many states — including California, New York and Illinois — Democrats control all the levers of power. They run the government. They write ...
Oh okay, sheesh
I couldn't tell what that emote was for a second
I thought it was one of the performers in the cantina in Star Wars
.xkcd 1319
Well thats one way to do that
Oh shit
I forgot to reopen Outlook
Oh thank god, I didn't miss anything
Scared myself
digital apps™️
tbh in the modern world now, web can do almost anything native apps can
I mean if I'm reading docs, I'll just call it the docs page or docs website
I guess I'm old?
install it back?
that involves then dealing with Docker's bs in Hyper v
stop running 13GB things
which windows then cant use
im not
it creeps up when Kernel wants more file cache
its not even using it all
but it wont give it back
ever
I love that vid
so limit it via this
I have
then something is wrong
I've limited myself without issues so 🤷♂️
that sounds about right
Thank fuck someone has already implemented this maths
@rugged root The imagination is just as bad as saying them out aloud 😠
what is a hot pocket?
I couldn't find this to show it to someone else, so I uploaded it!
Hemlock Eating hotpockets
What's the question?
ok i made this code so it deletes the position of c which are multiple of 2
def deleteAltered():
l = [4,-2,3,1,4,5,6,-10]
for c in l:
if c % 2:
l.pop(c-1)
print(l)
deleteAltered()
but it doesn't work with a list which is [0,2,4,6,7]
ye i realized hahahaha
i'm pretty new in this i got exam tomorrow
i also made it puting l as parameter
hsahsashdajshhsahha
what are the constraints of your problem?
def deleteAltered(l):
for c in l:
if c % 2:
l.pop(c-1)
print(l)
deleteAltered([4,-2,3,1,4,5,6,-10])
ironic btw
!e
l = [4,-2,3,1,4,5,6,-10]
result = [c for c in l if not c % 2]
print(result)
ironic mate hahashahahah
As a wise man once told me, print fool
@rugged root :white_check_mark: Your eval job has completed with return code 0.
[4, -2, 4, 6, -10]
I think that was me, ja? I'm eating my words now
Yep
Delicious humble pie
the guy said "industrial revolution and it's consequences have been a dissaster for human race"
i'm not a fan man it's just so stupidly crazy that i find it funny
Sure but you can see where that might give someone a different impression of you than you intended
Well...if we drive ourselves to extinction or rarity because we can't moderate ourselves, I think that'd qualify as pretty disastrous.
Wait, I just realized
On that spider diagram
There's one specific organ they just don't explain
gtg
What is it
Like
Everything else is labeled
No no I mean the pickle looking thing
You weren't kidding
I wonder how close this is to winning the title of "Shortest Wikipedia article"
A conciliation cross was a stone cross, which was set up in a place where a murder or accident had happened. These memorial crosses are mostly in central and western Europe.
@sturdy panther
Heading to bed?
Oh, I was. But I forgot to disconnect first.
yo
Of course that's a thing
petition to make a range called the "pokemon" range
No
hi
i need help
I have to do this and i dont know why: Design a function named counting3 that, given a string s, returns the dictionary resulting from using as a key each digit character that appears in the string s and as a value the number of occurrences of that character in s.
anyoe knos how
knoes
knows
idk
okey thx for ur help
is it because im muslim?
that u dont want to help me?
no to racism pls
sorry. i have light fobia
Probably not a good idea to low-key accuse people of being racist or otherwise bigots just because they haven't helped you yet. May I suggest you check out the "AVAILABLE HELP CHANNELS" category of rooms near the top of the server room list?
Introduction Black holes are to many the most mysterious objects in space. According to the laws of General Relativity, they are by themselves invisible. Contrarily to non-collapsed celestial bodies, their surface is neither solid nor gaseous ; it is an immaterial border called the event horizon, beyond which gravity is so strong that nothing ca...
UPDATE: I have now added lyrics below and also uploaded this onto TikTok @travelingken1
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
Lyrics, thanks to a comment by Alessandro Oburaian:
マウス、マウス、パソコンマウス、
国内生産してマウス、きちんと手作りしてマウス、
マウス、マウス、パソコン買うなら、
安心でチュウ!
マウス、マウス、パソコンマウス、
24時間サポートしてマウス
深夜2時でも、待ってマウス、
マウス、マウス、パソコン買うなら、
頼れまチュウ
Mouse, Mouse, Computer Mouse,
Made domestical...
@molten pewter genuinely curious - does this meet your standards? https://twitter.com/PickardJE/status/1481962879955914752?s=20
in the latest surreal twist, Downing St's deputy spokesman told reporters that Number 10 has apologised to the Palace but wouldn't say what for
110
public decimal CalculateDiscount(Order order) =>
order switch
{
(Items: > 10, Cost: > 1000.00m) => 0.10m,
(Items: > 5, Cost: > 500.00m) => 0.05m,
Order { Cost: > 250.00m } => 0.02m,
null => throw new ArgumentNullException(nameof(order), "Can't calculate discount on null order"),
var someObject => 0m,
};
Java?
c#
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hey
!e
ham = "spam"
print(f"{ham} {\{}")
@rugged root :x: Your eval job has completed with return code 1.
001 | File "<string>", line 2
002 | print(f"{ham} {\{}")
003 | ^
004 | SyntaxError: f-string expression part cannot include a backslash
!e
ham = "spam"
print(f"{ham} {'{'}")
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
spam {
Speaking of format strings, Rust just got variable interpolation in string yesterday
https://blog.rust-lang.org/2022/01/13/Rust-1.58.0.html#captured-identifiers-in-format-strings
Not expressions yet
Just variables
MS is completing entire sentences for me now
It's getting scarily accurate sometimes
$subscribe to @wind raptor
I have one right next to me too
But that's only because "my office" and the "IT storage closet" are the same room
setup.py lines 3 to 4
with open("README.md", "r") as fh:
long_description = fh.read()```
def __init__(self, id=None, x=None, y=None, legend=None, color=None,
x_tooltip=None, y_tooltip=None):
Yes
is default value no?
I Run Code bot
I can execute code right here in Discord! (click here for instructions)
Here are my supported languages:
awk, bash, basic, basic.net, brainfuck, c, c++, cjam, clojure, cobol, coffeescript, cow, crystal, csharp, csharp.net, d, dart, dash, dragon, elixir, emacs, erlang, file, forte, fortran, freebasic, fsharp.net, fsi, go, golfscript, groovy, haskell, husk, iverilog, japt, java, javascript, jelly, julia, kotlin, lisp, llvm_ir, lolcode, lua, nasm, nasm64, nim, ocaml, octave, osabie, paradoc, pascal, perl, php, ponylang, powershell, prolog, pure, pyth, python, python2, raku, rockstar, rscript, ruby, rust, scala, sqlite3, swift, typescript, vlang, vyxal, yeethon, zig
You can run code like this:
/run <language>
command line parameters (optional) - 1 per line
\`\`\`
your code
\`\`\`
standard input (optional)
@woeful salmon
That's the generally accepted consensus
If there's a default argument, then supplying it is optional
Because if it's not supplied, then it can default to the default argument
That's what I figured. But in this case, that __init__, it's a point of data on a bar graph
So it doesn't make sense to me that all of those would be acceptable to have no information
yeethon
@tiny socket God damn it
what about cow..
Blame Jason, he pred it into piston 
What have I inspired
Piston is what yeethon.org relies on for execution and has for almost a year btw 
pglet? I couldn't tell where it actually consumed the built controls.
Are we going to have to go read the Go source to confirm whether they're actually optional?
How do you tell if your pet is tired? It animal companiyawns.
You made me curious, so I forked it, and ran it through black and isort, and spent some time trying to understand, and I just got lost.
I still haven't even understood where the Controls go after they're created
@woeful salmon - control is defined here? Do you know what a React.memo is and where it gets it's data from?
https://github.com/pglet/pglet/blob/master/client/src/controls/HorizontalBarChart.tsx#L8
client/src/controls/HorizontalBarChart.tsx line 8
export const MyHorizontalBarChart = React.memo<IControlProps>(({control, parentDisabled}) => {```
haha
Jinx
def _get_control_name(self):
raise Exception("_getControlName must be overridden in inherited class")
What do you think this should be?
pglet/controls/control.py lines 43 to 46
def _get_control_name(self) -> NoReturn:
raise NotImplementedError(
"_getControlName must be overridden in inherited class"
)```
Because it raises an error
That's what I ended up with
No
Um - Yes - I did run black - But that I did manually
Abstract classes would probably be better, but you would have to redo a bunch of stuff
wait did you mean this control?
But then again, since we're already here
Yes
this is a prop being passed in from a parent element in the react dom
in react every attribute you give to a react component like <ComponentName myArrtibute="something" /> is passed to that props object
I'm interested
And it'll be my first time collaborating, so it'll be good practice
I'm not too interested in the product itself, but I'm really interested in the being part of a working on things together kind of thing
brb
Yeah for sure, that'd be dope
And it'll be nice to kind of have someone push me to get shit done
hello
👋

206 votes and 45 comments so far on Reddit
What is Pglet
pyglet
why does starting such a simple subprocess take 280ms?
Disagree it's a hammer, it's more modular house. It's great to get something up quick but if you need to know how to put in the plumbing, cut the wood and nail joints together, it skips over alot of those fundamentals which is why true carpenters sometimes reject it
does Rscript take that long to load?
don't htink so. Am testing quickly slowly
what does the -e flag do?
-e lets you pass in the script as a string rather than a file
or as a param
I think that's the linuxy word
Rscript just is that slow, yeah
The simple form, assert expression, is equivalent to
if __debug__:
if not expression: raise AssertionError
The extended form, assert expression1, expression2, is equivalent to
if __debug__:
if not expression1: raise AssertionError(expression2)
and __debug__ can be turned off (set to False) with the optimization flag.
Discord won't play audio through my Bluetooth headphones ;-;
def __init__(self, id: str = None, points: [Point] = None):
Is [Point] a valid type hint? Shouldn't it be List[Point]?
@tiny socket :warning: Your eval job has completed with return code 0.
[No output]
note that pytest rewrites the assert statements so they can't be turned off.
!e
from typing import get_type_hints
def x(nums:[int])->[int]:
return nums
print(get_type_hints(x))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
{'nums': [<class 'int'>], 'return': [<class 'int'>]}
!e
from typing import get_type_hints
def x(nums:list[int])->list[int]:
return nums
print(get_type_hints(x))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
{'nums': list[int], 'return': list[int]}
Hmm
I don't understand what that means, but it's not the same
!e
from typing import get_type_hints
def x(num: int)-> int:
return num
print(get_type_hints(x))
@rugged root :white_check_mark: Your eval job has completed with return code 0.
{'num': <class 'int'>, 'return': <class 'int'>}
!e
from typing import get_type_hints
def x(nums:[int|str])->[int]:
return nums
print(get_type_hints(x))
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
{'nums': [int | str], 'return': [<class 'int'>]}
!e
from typing import get_type_hints
def x(num: (int,))-> (int,):
return num
print(get_type_hints(x))
@rugged root :white_check_mark: Your eval job has completed with return code 0.
{'num': (<class 'int'>,), 'return': (<class 'int'>,)}
tuple[int, ...] is what you usually do for tuple of any ammount of integers
!e ```py
from typing import *
def x(num: (int,))-> Tuple[int,]:
return num
print(get_type_hints(x))
@quasi condor :white_check_mark: Your eval job has completed with return code 0.
{'num': (<class 'int'>,), 'return': typing.Tuple[int]}
Deprecated since version 3.9: builtins.list now supports []. See PEP 585 and Generic Alias Type.
$ python
Python 3.9.6 (default, Jun 28 2021, 08:57:49)
[GCC 10.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> def x(num: (int,)) -> tuple[int]:
... return num
...
>>> tuple[int]
tuple[int]
!pep 621
👀 why am i always mind blown when Shenanigans talks
... is that a good thing or a bad thing?
idk this is just the 3rd time i've been surprised like Oh he talks o_o even though i've heard you twice before
.xkcd 386
!pep 582
Speaking of - pip installed into my __pypackages__ on it's own the other day
Looks like it's getting some more traction
This is so frustrating, I can't find the thing I read
I'd hope so, it's going to make life a lot easier
Speaking of __pypackages__, what would you think about suggesting PDM for pglet-python?
I'd jump on that in a heartbeat
But I think that might be a separate PR. Possibly one before this revamp
lets gooo
i have async cuz we transitioning to in-person school
which is just an excuse to play mc when im finished my work
I'll go ahead and open a couple of PRs for PDM, black and isort, etc, and we can review/discuss
Sure
In theory we should make issues but eh
For now we'll do this piecemeal like that
I really appreciate you looking this over with me
I really appreciate the chance to help somebody else with a bigger project
I'll make corresponding issues
would import importlib as ilib from importlib import import_module discord = import_module('discord') work?
Joke class: bad analogies that completely mis-fit what they portend to describe.
Looks like it
>>> import importlib as ilib
>>> from importlib import import_module
>>> discord = import_module('discord')
>>> discord
<module 'discord' from 'C:\\Users\\BradleyReynolds\\programming\\projects\\darbia\\bradworks\\venv\\lib\\site-packages\\discord\\__init__.py'>
I'm having trouble thinking of examples...
Python is like a rose - it smells and looks nice but the thorns are pokey.
@rugged root - Please enable issues [for the repo]
from contextlib import redirect_stdout
import io
f = io.StringIO()
with redirect_stdout(f):
# your program/function here
s = f.getvalue()
hello what is happening
@boreal spear you remind me of a young robert de niro
import logging
import logging_loki
handler = logging_loki.LokiHandler(
url="https://my-loki-instance/loki/api/v1/push",
tags={"application": "my-app"},
auth=("username", "password"),
version="1",
)
logger = logging.getLogger("my-logger")
logger.addHandler(handler)
logger.error(
"Something happened",
extra={"tags": {"service": "my-service"}},
)
import logging
from logging import handlers
import sys
import datetime as dt
logger = logging.getLogger(__name__)
formatter = logging.Formatter(
'%(asctime)s | %(name)s | %(levelname)s: %(message)s')
logger.setLevel(logging.DEBUG)
stream_handler = logging.StreamHandler()
stream_handler.setLevel(logging.DEBUG)
stream_handler.setFormatter(formatter)
logFilePath = "cpp_poller.log"
file_handler = handlers.TimedRotatingFileHandler(
filename=logFilePath, when='midnight', interval=1)
file_handler.suffix = "%Y%m%d"
file_handler.setFormatter(formatter)
file_handler.setLevel(logging.DEBUG)
logger.addHandler(file_handler)
logger.addHandler(stream_handler)
import os,multiprocessing,pygame
def run():
global screen
pygame.init()
dimensionx = 400
dimensiony = 300
screen = pygame.display.set_mode((dimensionx, dimensiony), pygame.RESIZABLE)
done = False
while done==False:
for event in pygame.event.get():
if event.type == pygame.QUIT:
quit()
elif event.type == pygame.VIDEORESIZE:
dimensionx, dimensiony = event.dict["size"]
screen.fill((100,0,0))
pygame.display.flip()
if __name__=='__main__':
p1 = multiprocessing.Process(target=run)
p1.start()
print('yoooo')
import multiprocessing
import time
import queue
q = multiprocessing.Queue()
def pygame():
while True:
try:
result_from_expensive_task = q.get_nowait()
except queue.Empty:
pass # nothing in queue, expensive task isnt done yet
# Pygame main loop
def expensive_task():
while True:
result = time.sleep(1)
q.put(result)
if __name__ == "__main__":
p1 = multiprocessing.Process(target=expensive_task)
p1.start()
pygame()
@whole bear Ricky whats up
Oh derp. I didn't realize that was something I had to do
@rugged root I saw this and thought of something...
https://twitter.com/Austen/status/1482059103639769089
garbage meme
lol
import multiprocessing
import time
import queue
q = multiprocessing.Queue()
def pygame():
while True:
if user_input == "do_task":
q.put(5)
# Pygame main loop
def expensive_task():
while True:
sleep_for = q.get()
time.sleep(sleep_for)
if __name__ == "__main__":
p1 = multiprocessing.Process(target=expensive_task)
p1.start()
pygame()
i thought that was your name
I'm Jimmy 😄
it says Rick with some diggits after n the thing you linked on your profile🤣
good man, just writing out some work man 😆
@sweet lodge Should be enabled now
Same! Having trouble figuring out how to store some strange data
I work at a publishing company, and we have 1 user that wants a particular resource in braille. So now I have to pull web data as json, strip it down to plain text, and dump it to be sent somewhere to be made into braille lol
Very cool
Yes! I need to turn the json into python objects to make manipulation easier, and one of the lists is weird. I'm not sure the best way to define it as an object.
@faint ermine do you ever sleep?
its like, 7:45 pm for me
i know...but you know so much and you're so young 🤣
theirs no regex?
on any row?
you talk about this like a 40 year old man
# if words.txt does not exsist it will create a new file allowing you to write and read from
import math
import os
from os.path import exists
wordsList = []
numberOfWords = len(wordsList)
averageLength = 0
# Writes the given number of words to words.txt
def writeFile():
# the number of words the user wants to enter
amountOfWords = int(input("How many words would you like to write to the file ? "))
# opens words.txt in append mode
with open('./words.txt', 'a') as f:
# loops through the number the user has given
for _ in range(amountOfWords):
f.write(input(f"Word #{_ + 1} : ") + "\n")
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
readFile()
# Reads words.txt
def readFile():
wordsList.clear()
# opens words.txt in reading mode
with open('./words.txt') as f:
# then repopulates the list
if(is_file_empty("./words.txt")):
print("Your File is Empty you can not read it !")
main()
else :
for words in f:
wordsList.append(words.replace('\n', ''))
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
longestWord = max(wordsList, key=len)
longestWordLength = len(longestWord)
# calculates the average length word in the List
averageLength = sum(len(word) for word in wordsList) / len(wordsList)
# Outputs the Number of words, The Biggest word and its Length, and the Average word Length
print("\n")
print(f"Number Of Words : {len(wordsList)}")
print(f"Biggest Word : {longestWord}, Length : {longestWordLength}")
print(f"Average Word Length : {math.floor(averageLength)}")
# then loops back to the main function
main()
def main() :
#checks if the words.txt file exist
if (exists("./words.txt")) :
choice = input("Would you like to Write or Read your file ? ( w / r ) : ")
if (choice == "w") :
writeFile()
elif (choice == "r"):
readFile()
else :
main()
else :
# creates the missing words.txt file
with open('./words.txt', 'w') as new_file:
print("words.txt did not exist creating file now ...")
main()
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
def is_file_empty(file_path):
""" Check if file is empty by confirming if its size is 0 bytes"""
# Check if file exist and it is empty
return os.path.exists(file_path) and os.stat(file_path).st_size == 0
if __name__ == '__main__' :
main()
```
cold golf is the way to go
rot26
fuck
code golf, not cold golf
what was that about -26°C?
brb!
With the Python compiler Nuitka you create protected binaries out of your Python source code.
hii
Windchill is -27, actual temp is -16.
Staying indoors all day
ah
@whole bear https://pypi.org/project/auto-py-to-exe/ for future having to make an exe of a Python thing
Makes life a LOT easier
meanwhile, waiting for the storms to start this winter
at that scale i'm looking for trends, not numbers
Statistical forecasting breaks a lot of the usual rules. But it is very powerful once you get the hang of it.
I, for one, only really use it during the winter and with active hurricanes.
we do 14 days at work, and my boss is consistently worrying how inaccurate the forecasts are. then again, the people using them wont look at any accuracy
😆
@faint ermine still having problems
💔🤣
honestly, where I live, this time of year 5 days is worryingly inaccurate
!stream 137961615084486657
✅ @fair imp can now stream until <t:1642187729:f>.
a nautical mile per hour?
Below is a glossary of collective nouns for different groups of animals. You can also find a list of common names for baby animals here. LEARN ABOUT MORE ANIMALS WITH THE PAGES BELOW: Animals starting with A Animals starting with B Animals starting with C Animals starting with D Animals starting with E Animals […]
Should i go to school, college and graduate or quit school and self taught computer programming + I am from a verry small state from India so most jobs required degree qualification
The folks in #career-advice can give you more specific advice for India (hard for me to really say since I'm in the US), but sticking with school is going to be a better solution in general
I'll be back, I have to make sure some computers are prepped for some new folks starting on Monday
Tyty 😁
Pretty sure that level of sexism is bannable?
🤣
you'd hope so
@whole bear what you working on?
not sure what to work on .. id love to work on a long lasting project but i cant think of anything
help me with mine if you want😆
its long lasting
🤣
!voiceverify
What about database jobs?
Can anyone give tips
# if words.txt does not exsist it will create a new file allowing you to write and read from
import math
import os
from os.path import exists
wordsList = []
numberOfWords = len(wordsList)
averageLength = 0
# Writes the given number of words to words.txt
def writeFile():
# the number of words the user wants to enter
amountOfWords = int(input("How many words would you like to write to the file ? "))
# opens words.txt in append mode
with open('./words.txt', 'a') as f:
# loops through the number the user has given
for _ in range(amountOfWords):
f.write(input(f"Word #{_ + 1} : ") + "\n")
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
readFile()
# Reads words.txt
def readFile():
wordsList.clear()
# opens words.txt in reading mode
with open('./words.txt') as f:
# then repopulates the list
if(is_file_empty("./words.txt")):
print("Your File is Empty you can not read it !")
main()
else :
for words in f:
wordsList.append(words.replace('\n', ''))
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
longestWord = max(wordsList, key=len)
longestWordLength = len(longestWord)
# calculates the average length word in the List
averageLength = sum(len(word) for word in wordsList) / len(wordsList)
# Outputs the Number of words, The Biggest word and its Length, and the Average word Length
print("\n")
print(f"Number Of Words : {len(wordsList)}")
print(f"Biggest Word : {longestWord}, Length : {longestWordLength}")
print(f"Average Word Length : {math.floor(averageLength)}")
# then loops back to the main function
main()
def main() :
#checks if the words.txt file exist
if (exists("./words.txt")) :
choice = input("Would you like to Write or Read your file ? ( w / r ) : ")
if (choice == "w") :
writeFile()
elif (choice == "r"):
readFile()
else :
main()
else :
# creates the missing words.txt file
with open('./words.txt', 'w') as new_file:
print("words.txt did not exist creating file now ...")
main()
## Notice, that we didn’t have to write “file.close()”. That will automatically be called.
def is_file_empty(file_path):
""" Check if file is empty by confirming if its size is 0 bytes"""
# Check if file exist and it is empty
return os.path.exists(file_path) and os.stat(file_path).st_size == 0
if __name__ == '__main__' :
main()
Can one string be greater than another?
@icy axle yeah
do it
python is as slow as a tank
@whole bear probably not
python shit
java good
does anybody here have experience with opengl?
im sad
Can someone help with C#?
my ass is being ignored
I mean, we're a Python server so we're kind of limited with what we could help with for those languages
I can point you to some C# or Java specific servers if you prefer
Technically, Hemlock is helping you C# about the usage of this server
So one could say that you're getting the help that you request
@molten pewter the difference is an explicit statement.. tell me how your doing, vrs, how are you doing

{
"format_version": "1.10",
"minecraft:item": {
"description": {
"identifier": "minecraft:carrot"
},
"components": {
"minecraft:use_duration": 32,
"minecraft:food": {
"nutrition": 3,
"saturation_modifier": "normal"
},
"minecraft:seed": {
"crop_result": "carrots"
}
}
}
}
it's definitely better, though it is unclear who told Jim this info, but I prefer this to a sentence leaving out the "spokesman".
remember verboof was on the web cam with the toilet paper in the corner
toilet paper was gold at one time
he literally had it on his desk
he said a reason it was for
'because i dont have tissues'
nobody believed him...
Can anyone help me help @molten pewter with his homework??
Nah...im just kidding.........
Hopping off
it was a nice try tho
Starting to get a migraine out of nowhere
get better soon man
take a break, eat food, drink water
(self, item_name:str)
from pygments.lexer import RegexLexer
from pygments.token import Token
class CustomLexer(RegexLexer):
"""Highlighter for our entities."""
name = "entity highlighter"
tokens = {
'root': [
(r"[@NИ]", Token.Player),
(r"8*(&|0|8)", Token.Leaves),
(r"(\).*?\()", Token.Trunk),
(r"(║.*?║)|([╠═╔══╗═╣])", Token.Bar),
(r"[░]", Token.Water),
(r"[v/-_|\\]", Token.Fountainbase),
(r"\%*\%", Token.Wall.Inescapable),
]
}
def __init__(self, item_name: str) -> None:
self.item_name = item_name
@midnight agate is the bash script king!
_identifier = f'minecraft:{item_name}'
🤣
whats the command to make the mic work?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
You come and sit here. Well, okay. Let's talk about this.
ok?
You can make calculations in one of 50 supported messages 🤣 .
mind blowin
in another way you can ctrl+f12 and hack discord
try do something with nano
i hate vim
now you can kill me
$turn = '';
if(strpos($s, 'AM')) {
$sections = explode(":", $s);
$hour = (int)$sections[0];
if($hour === 12) {
$newh = str_replace('12', '00', $s);
return str_replace('AM', '', $newh);
}
return str_replace('AM', '', $s);
} else {
$sections = explode(":", $s);
$hour = (int)$sections[0];
$newHour = $hour+12;
if($newHour === 24) {
$newHour = '12';
}
return (string)$newHour.':'.$sections[1].':'.str_replace('PM', '', $sections[2]);
}
}
pyBed.create_items():
Item.new(
name= "Carrot",
use_duration= 32,
food_modifiers = (
nutrition= 3,
saturation= Food.saturation.NORMAL,
is_meat= False,
)
)
@icy axle
@quasi condor did you go to university?
yes
I went to Bournemouth university, a sub-par uni in the UK, graduated last September with a First. Did 2 internships during uni, had 2 job offers going into my final year
pyBed.create_items():
Item.new(
name= "Carrot",
use_duration= 32,
food_modifiers = (
nutrition= 3,
saturation= Food.saturation.NORMAL,
is_meat= False,
)
)
Item.new(
name= "Apple",
use_duration= 32,
food_modifiers = (
nutrition= 3,
saturation= Food.saturation.NORMAL,
is_meat= False,
)
)
that's p much all the information you could wnat about it
so you feel like paying for it is worth it, because you said its statistically higher pay...but what happens if youre really good/have an in or could get your foot in the door
come to brazil here is free but not work😆
Getting an "in" to a software dev job is which will match the salary growth of those you get as a graduate is very difficult
but if you do have that in, then it would be sensible to take it - you just have to be sure that it is an "in", not just a path to becoming the guy who does all the rubbish jobs no other dev will touch like data entry
@terse needle i think you should listen to charlie, hes got a point.
I didn't say I wasn't. I agree, I've just had varying opinions from many people
The other advantage for me, and for a lot of people I went to uni with, was that I became a lot more independent and well rounded by not living at home
that's very much on an individual level
You consider yourself an engineer ?
Yeah - a universal truth for things like this is that you should listen to a wide range of views and form your own opinion, never just take anything from any one person as gospel
!docs json
Source code: Lib/json/__init__.py
JSON (JavaScript Object Notation), specified by RFC 7159 (which obsoletes RFC 4627) and by ECMA-404, is a lightweight data interchange format inspired by JavaScript object literal syntax (although it is not a strict subset of JavaScript 1 ).
json exposes an API familiar to users of the standard library marshal and pickle modules.
Encoding basic Python object hierarchies:
i want to sit around on my ass and drink wine all day and code like @midnight agate
nop. here pessegos
def create_item(name: str, nutrition: int, is_meat: bool):
print(f'{name, nutrition, is_meat}')
create_item(is_meat=False)
.#thighs
def foo(bar: bool = False):
print(bar)
!e ```py
def foo(bar: bool = False):
print(bar)
foo()
foo(bar=True)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | False
002 | True
!false is funny becouse is not true
!e ```py
def foo(bar: bool = None):
print(bar)
foo()
foo(bar=True)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | None
002 | True
!e ```py
def foo(bar: bool = None):
if bar is not None:
print(f"A value was passed: {bar}")
else:
print("Nothing passed")
foo()
foo(bar=True)
@icy axle :white_check_mark: Your eval job has completed with return code 0.
001 | Nothing passed
002 | A value was passed: True
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.
i have to go
@haughty pier whats up?
ate some home-made salsa and chips, it was yummy
you lucky
Oh yes I am. If you want to be as lucky, get tomatoes, cilantro, onion, limejuice, salt, optionally jalepenos, and a blender and get lucky.
Ben Stiller is so money and he doesn't even know it baby.
cause you have a wife who cooks for you and i dont
and you take credit for it, put it in the blender
wa la
im trying to be like you
I took no credit, I just said how to get it.
It's like the more money we come across, The more problems we see
youre one we gotta watch out for
you on the prowl
lock up your daughters!
theirs a new sheriff in town 😎
only dont turn crazy
If you want a good wife you gotta be someone who's worthy of the kind of spouse you want.
we have what we deserve
im also bummed out, because you got all the good fortune. Its not my fault you got the 80s pornstar/pedophile look going on. Why did i have to wake up and look like jesus
🤣
Sunday I have a date 😆
stop talking in italian
sending secret messages
im pretty sure theirs a rule on that
Nah, im kidding 🤣
where you learn portuguese lmao
damn
marco is a talented man
multiple human languages
multiple programming languages
never judge a book by its cover
eu to tentando saber se tu é do brasil mesmo
hes playing with us
he wasnt even talking words
he just wants us to think he is
its apart of his sedation
fala palavroes em portugues:]
puta que pariu !
i want to direct a horror movie called the sedation man
starring marco as the main character
have you listened to yourself talk/recorded yourself before though seriously
i'm talking to the girl to convince she to date with me
walk into a crowd of 1000 people and let me see a more relaxed speaker
im from ireland
😆
cant be giving up too much information marco...
im not there right now though
🤣
😆
@midnight agate what you working on now anyway?
ok..
😆
yea ill watch, i finished my work now
🤣
its funnier when you talk slower and slow it down and drag
youre already super relaxed
now you sound lazy as fuck lmao
im here, i messaged him to say to come to voice chat 0
If you're going to comment on the appearance of other people you should probably keep it positive and respectful. If you're not sure on that, just don't comment.
she say not
my bad aaron
Hey @tough cliff!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
logical leasons
https://www.youtube.com/watch?v=ZgyU0LyWZ9M remember this arron?
Two con artists attempt to out-con each other.
About Key & Peele:
Key & Peele showcases the fearless wit of stars Keegan-Michael Key and Jordan Peele as the duo takes on everything from “Gremlins 2” to systemic racism. With an array of sketches as wide-reaching as they are cringingly accurate, the pair has created a bevy of classic characters...
that's A-A-Ron to you
hello?
yea i hear you
i want to go to brazil
go to @midnight agate home
hes in italy 🤣
within 30 feet
alright guys, road trip to nordestino
ill bring the cigars
can we live stream the code review, for education purposes?
1 per day...daily limit...Reached. 🤣
😆
brb guys
piaui
PIAU-Ì
the most pupular artist of piaui
5 dolar = 1 real
cal to me now +55 91 989242304 
dont call that number, thats a strip club
😆 fear
i like it
deus fez as lagrimas para quando nos quiser chorar
Z-Maguinho do Piauí - Olhar do Safadinho
Caso você possa colaborar com Z-Maguinho para produção de novos vídeos e até mesmo pela sobrevivência do cantor e compositor do bem, deposite a quantia que desejar na conta:
Banco Bradesco
Agencia 0214
Conta poupança 1011495-0
Cpf 200.158.793-72
ZENITO ALVES DA SILVA (Z-Maguinho)
#zmaguinhodopiaui #olh...
that is the best
Well, that's it for me.
me single pink floyd
Pela primeira vez eu tô cantando sem embromation!!!🎹🎶🔝
Não acredita? Clica pra ver! O safadinho da internet TA CHIQUE!!!😍❤
SIGA-ME NO INSTAGRAM: https://www.instagram.com/osafadinhodainternet?r=nametag
What did you have?
That can of soup in my cupboard with best before date in 2015?
I think that was it. spoiled peaches
thought id jump in real quick, intermission binge watching .. your stream was just spinning for me :(
Join our discord! https://bit.ly/3Gyyrqo
▼ Timestamps ▼
────────────
00:00 - Reddit post
01:22 - Overview
04:16 - Upbringing
05:40 - Internalization
08:40 - Actual cringe
11:50 - Cringe vs Toxic
16:05 - Growing out of it
17:01 - Meditation for cringe
22:00 - Summary
────────────
Become a Healthy Gamer!
Healthy Gamer Merch Store: https://healt...
I saw this and the title rang true with me so I watched it and my TLDW is: 1) You're too judgmental (generic cringe) 2) Don't try to force people to interact with you, give them space (a more narrow definition of cringe) 3) Get used to cringe
I feel like programmers are trained to be critically judgemental of code. And that may leak to other area of life?
k
@sturdy panther tell this man @midnight agate that he has the most relaxed voice of all time
he sounds like hes sitting down to wine and dine you
but thats just him talking Normally
i just burst out laughing @midnight agate
youre literally the funniest man of all time
'illicit....'
lmaoooooo
dude youre hilarious
its just the way you drag your words, with the breaks, and the pauses
its like youre trying to seduce someone
The delivery is so funny
🤣
sorry.... unable
2 words, no need for 3,4
economical.
@midnight agate could you read this out for me please?
The FitnessGram™ Pacer Test is a multistage aerobic capacity test that progressively gets more difficult as it continues.
The 20-meter pacer test will begin in 30 seconds. Line up at the start.
The running speed starts slowly but gets faster each minute after you hear this signal.
A single lap should be completed each time you hear this sound.
Remember to run in a straight line, and run as long as possible.
The second time you fail to complete a lap before the sound, your test is over.
The test will begin on the word start.
On your mark, get ready, start.```




