#voice-chat-text-0
1 messages · Page 1006 of 1
so will it just tell me the properties of the image i am loading in?
i can see that without coding if so
Fair. But in that case it should tell you the ratio which then tells you what you need to set as height and width
Then put your pants back on
do you know what i can google to learn about image.load
is 512 here talking about width or height
My guess would be height.
whats the 1
Not sure. Its presence is troubling.
I would feel better seeing 512, 256 or 512, 256, 3
It's presumably correct.
Yeah, for pillow, but numpy is yx.
i think i have torch or something
@cold elbow For context, check out the #❓|how-to-get-help channel for more info on our help system
Yeah I'm just not sure if it handles dimensions in the way that numpy does or pillow
You're more likely to get better help than asking in Python General or here
Since we typically have multiple conversations going on at the same time
very good
We could go for the storms that hit South Carolina last night.
Oh huh
F# has a whole section on Object programming
Not often the weather service issues a Tornado Emergency (yes that's a real thing) in Dixie
When I go chasing, I like to get shots like these (photo not my own)
ooo
That's a derecho, I've been in two and I hope it stays that way
155 kph winds are no joke
My wife got me this. I hold it when I sleep and also use it as a head pillow
Also, I named him Hamlock
that's some thicc meat :x
Same for curses IIRC
Aside: https://twitter.com/CtrlAltCuteness/status/1497912356046733314?s=20&t=W5Ryu8BzXxBu_IVswhYe5w a somewhat tread by me
ML (Meta Language) is a general-purpose functional programming language. It is known for its use of the polymorphic Hindley–Milner type system, which automatically assigns the types of most expressions without requiring explicit type annotations, and ensures type safety – there is a formal proof that a well-typed ML program does not cause runtim...
.xkcd 224
i could ruin that mascot for us so easily
if i say what came to my mind looking at it
won't lie, it was my first thought too
Portable Standard Lisp (PSL) is a programming language, a dialect of the language Lisp. PSL was inspired by its predecessor, Standard Lisp and the Portable Lisp Compiler. It is tail-recursive, late binding (or dynamically bound), and was developed by researchers at the University of Utah in 1980, which released PSL 3.1; development was handed ov...
y'all are weirdos
No, we're people of culture
@lavish rover Your full name is "Muhammad Mustafa Abdal Qadir"
Okay.
ha you wish
@normal goblet
Vocabulary? wow!
Well, after learning new words, can you easily use them in conversation?
Okay Bye guys. see you.
more random images i took
Original Video Link: http://www.nicovideo.jp/watch/sm22176877
NicoUser: http://www.nicovideo.jp/user/18176346
Anime: Non Non Biyori
Over +500.000 views!!! (* -*)/
Thanks guys!
In Japanese, nyan = meow
3 images (what I saw on Twitter, and then what I remembered)
Jag kommer alltid att lägga upp kattbilder.
Yeah @lavish rover are you turkish, you sound turkish
Jag ska inte sluta!
i don't like you all
och kanske kladdkakabilder
Mums. Ja tack
Did you make the kladdkaka?
the only turkish i know is "gobble gobble"
I made appelflappen instead
You know what's happening tonight then ;)
with pear
it's not a bad idea tbh
do you know how long they stay good?
#1
out_path = OUT_IMAGE_DIR / "test" / "raw-image" / f"{i}.png"
print(f"Saving raw-image: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=pixel_array[0, :, :, 1024:4000].to(torch.uint8), compression_level=7)
#2
y_pred_raw = image_logit_overlay_alpha(logits=y_pred, images=None, cols=keypoint_cols)
y_pred_raw = y_pred_raw.mul_(255).type(torch.uint8).cpu()
out_path = OUT_IMAGE_DIR / "test" / "raw" / f"{i}.png"
print(f"Saving raw: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=y_pred_raw[0, ...], compression_level=7)
del y_pred_raw
how to specify image portion in #2 like i did in #1
Let's just say you won't need that information
#1
out_path = OUT_IMAGE_DIR / "test" / "raw-image" / f"{i}.png"
print(f"Saving raw-image: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=pixel_array[0, :, :, 1024:4000].to(torch.uint8), compression_level=7)
#2
y_pred_raw = image_logit_overlay_alpha(logits=y_pred, images=None, cols=keypoint_cols)
y_pred_raw = y_pred_raw.mul_(255).type(torch.uint8).cpu()
out_path = OUT_IMAGE_DIR / "test" / "raw" / f"{i}.png"
print(f"Saving raw: {out_path}")
os.makedirs(Path(out_path).parent, exist_ok=True)
torchvision.io.write_png(filename=str(out_path), input=y_pred_raw[0, ...], compression_level=7)
del y_pred_raw
pls
well, we will be wanting a cake on saturday
how to specify image portion in #2 like i did in #1
but I am unavailable on Friday
I would assume it's gonna be fine until sunday, if you don't just leave it out in the open
so I wanna know if it will still be nice on Saturday if I make it on Thursday evening
I asked my mom to make sure. It'll be fine (unless you store it in some very strange way lol?)
!remind @gentle flint 1d Make the kladdkaka!
Your reminder will arrive on <t:1649348164:F> and will mention 1 other(s)!
@midnight finch At this point it might be easier to use the help system. See the #❓|how-to-get-help channel for more details on that
i tried that
Try reading https://pythondiscord.com/pages/resources/guides/asking-good-questions/ and see if that'll help you get a good answer
Yeah sometimes you just need to rephrase what you're asking, add additional information, etc.
Sometimes all you need is a well-formulated question for people to answer
Sounds likely
I only have 8G of ram on this machine so it’s chuggin
If it doesn’t relax after a couple mins I’ll restart it
Honestly I might just install a real distro in this machine instead of this
Alright I’m restarting screw this noise
Did you give it enough coffee?
This article concerns an ancient sports object. For halteres in insect anatomy, see Halteres.
Halteres (; Greek: ἁλτῆρες, from "ἅλλομαι" - hallomai, "leap, spring"; cf. "ἅλμα" - halma, "leaping") were a type of dumbbells used in Ancient Greece. In Ancient Greek sports, halteres were used as lifting weights, and also as weights in their version o...
There are few video games as well known and beloved as Super Mario Bros. Not only did it change the history of video games forever, it spawned the entire Super Mario franchise that is still going strong to this day. As one of the most popular and important games of all time, it's also one of the most rereleased. Since its release in 1985, the ga...
hey, lets do this, then this! Like walking! Lets call it soup!
Nope, soup is already taken.
Well then how about something stupid like, algorithims?
Eh, sure why not.
@rugged root Hi hemlock, hope you are doing well, I just had a question on why my code isnt fully outputing all the numbers for the phone number, can you take a quick look?
# Ontario has the following area codes:
# 905, 807, 705, 647, 613, 519, 416, 343, 289 and 226
area_codes = [905, 807, 705, 647, 613, 519, 416, 343, 289, 226]
phone_num = ""
for i in range(8):
if i == 0:
# pick a random area code
phone_num += str(random.choice(area_codes))
elif i == 1:
# phone number does not start with 0
phone_num += str(random.randint(1, 9))
else:
phone_num += str(random.randint(0, 9))
area_code = (phone_num[ : 3])
phone_num1 = (phone_num[4 : 7])
phone_num2 = (phone_num[8 : ])
print(f"Your new random phone number is: ({area_code})-{phone_num1}-{phone_num2}")```
`area_code = (phone_num[ : 3])`
uhhh
is this valid?
like if you run it,
ill show u
!e
# Ontario has the following area codes:
# 905, 807, 705, 647, 613, 519, 416, 343, 289 and 226
area_codes = [905, 807, 705, 647, 613, 519, 416, 343, 289, 226]
phone_num = ""
for i in range(8):
if i == 0:
# pick a random area code
phone_num += str(random.choice(area_codes))
elif i == 1:
# phone number does not start with 0
phone_num += str(random.randint(1, 9))
else:
phone_num += str(random.randint(0, 9))
area_code = (phone_num[ : 3])
phone_num1 = (phone_num[4 : 7])
phone_num2 = (phone_num[8 : ])
print(f"Your new random phone number is: ({area_code})-{phone_num1}-{phone_num2}")```
@shut hill :white_check_mark: Your eval job has completed with return code 0.
Your new random phone number is: (647)-357-18
Because you're doing ramge(8)
And also for phone_num2
It should be [7:]
okay, thank you.
!e ```py
import random
Ontario has the following area codes:
905, 807, 705, 647, 613, 519, 416, 343, 289 and 226
area_codes = [905, 807, 705, 647, 613, 519, 416, 343, 289, 226]
phone_num = ""
for i in range(10):
if i == 0:
# pick a random area code
phone_num += str(random.choice(area_codes))
elif i == 1:
# phone number does not start with 0
phone_num += str(random.randint(1, 9))
else:
phone_num += str(random.randint(0, 9))
area_code = (phone_num[ : 3])
phone_num1 = (phone_num[4 : 7])
phone_num2 = (phone_num[8 : ])
print(f"Your new random phone number is: ({area_code})-{phone_num1}-{phone_num2}")```
@plain rose :white_check_mark: Your eval job has completed with return code 0.
Your new random phone number is: (416)-937-7402
aren't phone numbers supposed to have 10 digits?
That's not quite correct.
really?
Well, let me show you
the code, or the 10 digits?
its fine no?
One sec I'm on my phone
lol
it's fine
!e
import random
# Ontario has the following area codes:
# 905, 807, 705, 647, 613, 519, 416, 343, 289 and 226
area_codes = [905, 807, 705, 647, 613, 519, 416, 343, 289, 226]
phone_num = ""
for i in range(8):
if i == 0:
# pick a random area code
phone_num += str(random.choice(area_codes))
elif i == 1:
# phone number does not start with 0
phone_num += str(random.randint(1, 9))
else:
phone_num += str(random.randint(0, 9))
area_code = (phone_num[ : 3])
phone_num1 = (phone_num[3 : 6])
phone_num2 = (phone_num[6 : ])
print(f"Your new random phone number is: ({area_code})-{phone_num1}-{phone_num2}")
@lavish rover :white_check_mark: Your eval job has completed with return code 0.
Your new random phone number is: (289)-290-1372
Specifically, look at how the 3 parts of the phone number are being extracted
The indices in the original code were not correct, and you were basically ignoring index 3 and 7
Which is why you were missing 2 digita
Sure you can just generate 2 more digits, but that's just making the problem, not fixing it
so wat would u do?
Look at my fix above
changed the ranges
he took the first 3 digits as the area code, the next 4 as phone_num1 and the last 3 as phone_num2
okokgot it thank you.
i forgor how phone numbers are formatted, i don't have a phone
Be_what_? 😄
oh lol
you dont wanna drive? Its so fun lol.
Basically, it's something everyone can have an opinion on.
But isn't very important.
@zenith radish What you eating? 👀 Also, can you turn on PTT 😄
No-one within their right mind would even consider using push to talk
Wait Hemlock uses push to talk?
Oh, you get recommended those videos too? 😄
btw have any of you watched moon knight yet?
a new episode was put on disney+ today
just found out
every wednesday
@rugged root https://onecommander.com/
Windows 11 file manager with dual-pane view, tabs, themes, columns view, built-in preview, and much more.
(gotta pay for commercial use tho)
What does it do?
allow me to speak
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
we already have a bazzinga so dont worry
no i'm not such a person who screams 
it is good to have too much of anything
ohhhh yeahhhhhhhhh
xattr -r -d com.apple.quarantine pcsx-redux.app
The printf format string is a control parameter used by a class of functions in the input/output libraries of C and many other programming languages. The string is written in a simple template language: characters are usually copied literally into the function's output, but format specifiers, which start with a % character, indicate the locatio...
32
nice hem
98
oh shit
yh
kick him out

i disagree aswell
c++ child's game
notepad boomers
im having a headache jus by viewing it
And yet I find it oddly endearing
yh early 30s is an acceptance age
Look at this LinkedIn request I got
😅 😂
Do you have yourself listed as non-binary on there?
They might just be checking if not male
mustafa where are you from ?
I heard you like debugging
what is gdb ?
gnu debugger 😛
I like mine better
Catch you later
Nice talkin' to you
@lavish rover You're being sucked into the void of no interwebs
bye bichas
join voice they'll help you
which ever you want
post your q's here they might respond
Can you join live code
It’s not a question I need someone to explain me the concept
nah i'm new here
You'll probably have an easier time getting help using our help system. See the #❓|how-to-get-help channel for more details on that
Gives you a dedicated channel for your problem. Don't have to worry about crosstalk
Back later
its 12 in morn' here, bye
@lavish rover What's that matrix, ig something with polynomials
Hey @dark sable!
It looks like you tried to attach file type(s) that we do not allow (.ipynb). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a, .csv, .json.
Feel free to ask in #community-meta if you think this is a mistake.
It's intended for people that trust each other, sort of.
ntfy is a simple HTTP-based pub-sub notification service. It allows you to send desktop notifications via scripts from any computer, entirely without signup or cost. Made with ❤ by Philipp C. Heckel, Apache License 2.0, source at https://heckel.io/ntfy.
💀
just to add, with the official app
After a lot of tuning I am proud to say it is typically 0-1% at the end of the day.
when older than kosovo
@midnight finch My bluetooth has managed to deconstruct itself.
very interesting
thanks
!e py text = "apple" print(type(text))
@somber heath :white_check_mark: Your eval job has completed with return code 0.
<class 'str'>
.env files support (2022.1)
AceJump (3.8.7)
Active Tab Highlighter (1.5.1)
Archive Browser (0.32)
Awesome Console (0.1337.11)
Big Data Tools (213.5449.349)
CSV (2.18.2)
Custom Postfix Templates (2.12.2.213)
Discord Integration (1.8.0)
Doc-Aware Search Everywhere (1.0.12)
EduTools (2022.3-2021.3-959)
Environment Variable Settings Summary (2.5.2)
Extra ToolWindow Colorful Icons (1.18.0.201)
GapStyle Color Scheme (4.1)
Generate Module From Template (1.5.3)
GitToolBox (212.8.8)
Indent Rainbow (2.0.2)
InlineError (0.1.1)
Nested Brackets Colorer (0.6.0)
Number Converter (1.4.1)
Presentation Assistant (1.0.9)
Python Inlay Hints (1.0.0)
Regex Rename Files (1.1.8)
Selenium UI Testing (213.7172.5)
SonarLint (6.6.0.45106)
String Manipulation (9.4.0)
Tldr Doc (0.0.2)
oh wow and you are self taught .. but you got all indepth knowledge...
it feels good hearing you thank you for sharing knowledge..
Hope I will get verified soon... Just wanna talk with you guys 😄
im not expert
yes but you know somehow core knowledge
I am preety bad at these things
where you from
chicago
var input;
do {
input = getInput();
} while (!isValid(input));
can I play chess with you ?
Sure
lets play.. I am down
can anyone help me i posted my problem in #algos-and-data-structs
brave is preety sick
ClipboardOverflow
StackOverflow Power User
Dark Reader
DevDocs Web Ext
Hackertab.dev
OneTab
Grepper
Web Search Navigator
Search Enhancer for Google
OctoLinker
Sourcegraph
Refined GitHub
Brb
ok sure
G2G, my son woke up and hasn't been feeling well. Be back later.
chocolatey, masscode, notepad++, file zilla, 7zip
i need help with something i posted about it in #algos-and-data-structs
antd
wbu
punjabi
For games... you need to install so they come with viruses
but for videos you can check whether it have the given mp4 or video files or not
regional
Victoria is a state in southeastern Australia. It is the second-smallest state with a land area of 227,444 km2 (87,817 sq mi) and the most densely populated state in Australia (28 per km2). Victoria is bordered with New South Wales to the north and South Australia to the west, and is bounded by the Bass Strait to the south (with the exception of...
windirstat, processhacker, ueli, Hyper, Insomnia
C i guess
but I havenot done from 4-5 years
@woeful salmon what lib was Mustafa using for that Raytracing demo, for drawing the window etc.
😅 he wasn't using any....
he made it from scratch
wait, no lib for drawing on a window?
ye pixel data saved to a ppm file
and all the camera and object stuff is just premade stuff he did?
or did I miss that part
i think you missed that part

he did copy over some stuff though
👀 we can just ask him to explain lightly again and if he can share the code
i wanna go through the code again anyway xD
i was learning cpp at the same time from him so 🙂
i know c but nothing about cpp... specially modern cpp xD
🙌
can you use headphone
turn on krisp
C++ programming language
Interview with a senior C++ developer in 2022 with Gunter Peterson - aired on © 2022 The C++.
Programmer humor
C++ humor
Programming jokes
Programming memes
C++ 2022
C memes
C++ jokes
hybrid inheritance
memory allocation jokes
pointers, references, structs,
webassembly
#programming
#jokes
#c++
that chu? 0_0
Ill try she said as he walked away tried not to lose you
I am not sure....
but found this:
just close that tab and change your TDM-GCC from 64-bit to 32-bit
how can i change it
!paste
Pasting large amounts of code
If your code is too long to fit in a codeblock in discord, you can paste your code here:
https://paste.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.
!code
Here's how to format Python code on Discord:
```py
print('Hello world!')
```
These are backticks, not quotes. Check this out if you can't find the backtick key.
import pandas as pd
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
df = pd.read_csv('Salary_Data.csv')
len(df)
sns.scatterplot(x = 'YearsExperience' ,y ='Salary' , data = df)
sns.regplot(x = 'YearsExperience' ,y ='Salary' , data = df)
X = df['YearsExperience'].reshape(1,-1)
y = df['Salary']
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3, random_state=101)
from sklearn.linear_model import LinearRegression
model = LinearRegression()
model.fit(X_train,y_train)
!e
import Mustafa as Codesmash
X = [1,2,3]
X = [[1], [2], [3]]
X = df['YearsExperience']
X = [[value] for value in X]
In [3]: X = np.array([1, 2, 3])
In [4]: np.reshape(X, (3, 1))
Out[4]:
array([[1],
[2],
[3]])
@rugged root 👋
@somber heath Proposal: Instead of length and width, we should use length and girth.
!e py import numpy as np arr = np.arange(15) print(arr) arr = arr.reshape(3, 5) print(arr)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [ 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14]
002 | [[ 0 1 2 3 4]
003 | [ 5 6 7 8 9]
004 | [10 11 12 13 14]]
Additional amendment - stretch and girth
!e py import numpy as np arr = np.arange(10) arr = arr.reshape(10, 1) print(arr.shape) print(arr)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | (10, 1)
002 | [[0]
003 | [1]
004 | [2]
005 | [3]
006 | [4]
007 | [5]
008 | [6]
009 | [7]
010 | [8]
011 | [9]]
convert your dataframe column to a numpy array and do this ^
arr = np.array(df['Years_experience'])
1, 10 would probably be better.
will this work ??\
Might.
why .values though
Lucky Twice - Lucky
Stream/Download:
(Lyrics):
[Intro: Hannah Reynold]
You can fool yourself, I promise it will help
Now every single day I just wanna hear you say it
[Verse 1: Hannah Reynold, Both]
Laughing through the day thinking you are never boring
Speeding through the night, maybe you not count the morning
There's nothing you can do to ...
1
Brace for the 80s hairdo.
“I Should Be So Lucky” was Kylie’s debut single in the UK (her 2nd in Australia) and a global smash reaching the number 1 spot in the UK (for 5 weeks), Australia (6 weeks), Germany and Japan. The video was filmed in Melbourne at the studios of Channel 7. The song was recorded in less than an hour and written and recorded by the production team ...
🙌
@sour imp https://youtu.be/Jm86I_kezVY
Check this song: https://www.youtube.com/watch?v=gKOW4a8-RVc
Subscribe my channel for more music: http://www.youtube.com/subscription_center?add_user=ziomalx
@woeful salmon https://github.com/mustafarchive/once-more
"Hi. I'm Anne Dee."
i assume we have an issue?
Dun dun DUUUUUUUUUUN
Cool
Hahahah
D: its a joke
yeah, that happens
"From the people who aren't the makers of Quake...QUIVER."
!voice\
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
@zenith radishi've seen cafes re-route you to fake versions of websites >w>
🎵 "I'm talkin' 'bout the man in the middle"
that could be 1 thing
👀
w> ye i once stopped at a cafe while travelling to manali (its in north india) and they re-routed me to a fake facebook where i couldn't login so i quickly changed password using mobile data
that was like 5 years + ago tho
@zenith radish ^
I'll keep that in mind if I ever find myself in north India, all of our India offices are in the south.
that should come up with a certificate mismatch on your browser
you overestimate mobile browsers of cheap smartphones in 2014
Yeesh
i'm not using a 2014 mobile anymore though
i'm using a 2018* one now
Gigglebyte.
works for me on macos
I, so, the all ISPS are under conspiracy, and all unified?
Has anyone had apartment owners tack on a mandatory package, like cable or internet?
and then you have to pay for it
Did this chat just went from, ISP's being scams, sports, and then riots?
People keep talking about life "post-pandemic" in terms of the present.
Frustrates the hell out of me.
enjoy
not likely
@somber heath & @wind raptor , just figured out my win for the day : n1 = n.lstrip(string.ascii_letters + '0')
Riot at a sports game in Mexico
The leauge banned the team from having fans at their home games for the next year
Update : https://youtu.be/QYb4KIw8ki4
KO-FI :https://ko-fi.com/jtingf
Tutorials coming soon! ~
PS: 中文OK
Here: I clicked the English button for you: https://en.wikipedia.org/wiki/Querétaro–Atlas_riot
Whatever floats your boat
buoyancy
To be fair to everyone else, I am driving the 2nd most hated car in America: Toyota Prius.
Although it's probably going to become a lot more popular now that people are seeing that I haven't needed to get gas since February
@pallid hazel What?
attaching a tow hitch to any vehicle? .. although probably true, is it worth it.. in some cases the tow capacity would be 2k or less depending on the type of vehicle.. sure, there are some that would have a high tow capacity... but cars, suvs, it's actually quite low.
If it's specifically to tow an e-bike
"tow" is a strong word in this case
what type of vehicle?
as i have seen fake hitch carriers.. that basically is a bike rack that attaches inside the trunk
clinton was the worse hands down
but clinton setup the legal way to move jobs overseas and incentified it
im still waiting for these wing states to finally forcefully try to succeed from the US.. its gonna be funny
Isn't there enough violence and death elsewhere? I don't need that stress
its not violence persay.. more economic oppression fueled shit fest
Except at the very beginning where religion was a big factor. The Puritans come to mind.
god was created by man.. dont get me started on religion. itll make your guys discussion on comcast scam look like an aftertoon tv special
😂 😂
Damn
@gentle flint
Here's your reminder: Make the kladdkaka!
[Jump back to when you created the reminder](#voice-chat-text-0 message)
YO WASSUP
string_to_binary = lambda text: ([bin(ord(i)).replace('b', '') for i in str(text)])
text_to_decimals = lambda text: [i for i in bytes(str(text).encode('ascii'))]
bytes_to_decimals = lambda binary_list: [int(str(byte), 2) for byte in list(binary_list)]
decimals_to_string = lambda decimals: bytes(decimals).decode()
.bm
what linux distro?
👀 that is an manjaro vm but my manjaro and ubuntu vm both look the same (i had an arco one but i recently hopped to manjaro after listening to hemlock praising it alot)
i have same window managers, compositors and zsh / vim rcs on em all xD
will u share rcs and i3 config folder
i am having troubling setting transparent windows
👀 i3 is default i3-gaps with custom keybinds
as for the configs lemme send you my the repo in a second
ummhmm
also compositor is picom
@gentle flint I demand an update!!
bytes_to_binary_strings = (lambda bytes_: [f'{i:08b}' for i in bytes_])
text_to_binary_strings = (lambda text, encoding='utf8', errors='strict': bytes_to_binary_strings(text.encode(encoding=encoding, errors=errors)))
def x(bytes_):
return [f'{i:08b}' for i in bytes_]
for i in range(1, 11):
something(mapper=(lambda value, _i=i: value * _i))
!voice @celest current
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I'm about to start!
Tyvärr är smöret färdigt så jag kommer att använda kokosfett istället.
● Subscribe for more songs: http://goo.gl/S1qiev
● Artwork by arsenixc:
http://arsenixc.tumblr.com/
https://arsenixc.deviantart.com/
● Follow Teminite:
https://soundcloud.com/teminite
https://www.facebook.com/Teminite
https://twitter.com/Teminite
● Follow Panda Eyes:
https://soundcloud.com/o...
still 2014 tho
:}
So today some pretty weird happened
my class has a server, obviously, it's full of people 13 and 14 because grade 8. And someone new joined. And what scared me was this person was never given an invite to the private server, and somehow created an invite themselves?
check the invites created
audit log?
yes
im still not sure how they ended up in a server full of kids
so i did the normal, ask if they were from our class, they said no, so i banned them
deleted all of the invites
still kinda scares me
strange
indeed
It's just a bit awkward, it doesn't know what it wants to do - Me
I'm gonna go touch some grass now, cya
u32 as u8
nice
T as u8 where T=u32
no idea what you are talking about
ok
nice
can i ask you if this a project or something else
Hur gick det??
nice
I got distracted
only starting now
we have a lot of coconut fat
infix: 1 + 1
postfix: 1 1 +
prefix: + 1 1
@hollow fern
what
@terse needle
ok
got it
still starting out in python
so it is new for me
ok
Surprisingly quiet for a weekday!
ooh looks yummy
stop sharing this or I'm going to have to come steal it
10 minutes left
:hyped:
That’s a lot of coconut fat
😋
@whole bear ooh are you the same gi that had like a killer rabbit profile picture thing a while ago?
DS:
- Arrays
- Min/Max Heaps
- Binary Trees
- Tries
- Hashmaps / sets
- Deque
Algorithm:
- Greedy
- Divide and Conquer
- Dynamic Programming
- Multi-pointer algorithms
- Sliding Window
🤣
its been decades actualy
lol have alawyas been on the vc
we buy on an industrial scale
it's a lot cheaper with a family of 5
from collections import deque
# class Tree:
# def __init__(self, val, left=None, right=None):
# self.val = val
# self.left = left
# self.right = right
class Solution:
def solve(self, root):
res = []
d = deque()
d.append((0, root))
level = 0
while d:
level_nodes = []
while d and d[0][0] == level:
_, node = d.popleft()
level_nodes.append(node.val)
if node.left: d.append((level+1, node.left))
if node.right: d.append((level+1, node.right))
if level % 2 == 0:
res.extend(level_nodes)
else:
res.extend(reversed(level_nodes))
level += 1
return res
@gentle flint
thats what she said
owo
Looks yummy
thx
I tasted some of the batter and it was nice, so I can't have screwed it up very much
!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.
<h1>Grade prediction</h1>
<p> select your school </p>
<label for="school">School:</label>
<select name="school" id="school" >
<option value="Livingston High School">Livingston High School</option>
<option value="Heritage Middle School">Heritage Middle School</option>
</select>
<p> select your course </p>
<label for="course" style = "margin-left: 30px;">Course:</label>
<select name="coursePredictSelected" id="course" >
{%for i in range(0,length)%}
<option value="{{courses[i]['NAME']}}">{{courses[i]["NAME"]}}</option>
{%endfor%}
</select>
<p> Input your grade</p>
<label for="grade" >Grade:</label>
<input type="number" id="grade" name="grade" ><br><br>
<input class = "submit" type="submit" value="Submit">
</div>```
<h1 >Check average</h1>
<p > select your school </p>
<label for="school" >School:</label>
<select name="school" id="school" >
<option value="Livingston High School">Livingston High School</option>
<option value="Heritage Middle School">Heritage Middle School</option>
</select>
<p > select your course </p>
<label for="course" >Course:</label>
<select name="courseAvgSelected" id="course" >
{%for i in range(0,length)%}
<option value="{{courses[i]['NAME']}}">{{courses[i]["NAME"]}}</option>
{%endfor%}
</select>
<p class="spacetaker">.</p> <!-- space taker -->
<input class = "submit" type="submit" value="Submit">
</div>```
@gentle flint did you taste it?
I got inspired and made a quick chocolate mug cake. That was nice
it's for Friday evening
but I tasted some loose bits off the edge and they were nice
a quick what?
reminds me that i once made the "hello world chocolate cake".
The recipe of the cake is actually also a program in the language "chief", that prints "hello world".
So the cake is only one way to compile the recipe (with your kitchen), and another way is to use the chief compiler, and you get "hello world".
(also, the interesting thing is that, if all chief programs look like recipes, most of the time they would not end up to something eatable, so making an actual cake is quite hard)
What happened to the top?
This kind of this
(That’s a photo from the recipe. Not my actual end result)
powdered sugar
I see
multiple recipes called for it
Sikta florsocker över om så önskas. Servera med vispad grädde och färska bär.
or
Låt kakan kallna. Pudra över florsocker. Servera med grädde eller glass och frukt.
my ping isn't bad today but i don't hear anything.
you just aren't talking ?
it looks nice
here's hoping this keeps it nice until Friday evening in the fridge
time for bed
gn
Night!
are u guys talking bout serenity?
@lavish rover ?
cpp classes 🤯
well i kinda have a mixed opinion about em
what about them?
well oop in particular
i like c better than cpp for that particular reason
cuz oop is kinda meh for me
good oop code is java
lmfaooooo
satire btw xD
ironically
the time when u reverse engineer cpp classes as structs, ida just fucks it all up
until and unless i use class informer
;-;
yep serenity os contribooter here can confirm
gnome ewwww
window manager supremacy
the js engine
reinventing the wheel is bad, just implement it in the codebase where the thing is already being done
:/
borrow checker in cpp
lmao
like if they deny the pull request u can sure create ur own fork of it
ah yea makes sense
agreed on that
@dense ibex never do this:
https://github.com/zrax/pycdc/pull/43
example of what @lavish rover says
lmaaaaaaaooooo
copilot is kinda manual work lifter for me, i never autocomplete functions fromit
i just do likee
func_a(1)
func_b(2...)...(autocompleted by copillot)
it was fun joining you guys gtg, see yall
int a;
https://subslikescript.com/series/Through_the_Wormhole-1513168/season-1/episode-1-Is_There_a_Creator
Transcript for Tv Show Through the Wormhole - Season 1 Episode 1 - Is There a Creator?
Na het enorme succes van de dvd box "Through The Wormhole With Morgan Freeman" presenteert deze Oscarwinnaar je "Through The Wormhole With Morgan Freeman Seizoen 2". Morgan Freeman neemt je mee door het immense universum en toont aan de hand van de meest spectaculaire beelden en de mooiste computeranimaties de allernieuwste ontdekkingen en geeft...
Conda and pip are often considered as being nearly identical. Although some of the functionality of these two tools overlap, they were designed and should be used for different purposes. Pip is the Python Packaging Authority’s recommended tool for installing packages from the Python Package Index ,…
hi
make each cube in tetris iframe and request state from server constantly
lol
Leaderboard for biggest donations to proxb:
This
That's what the ping was
Can you even do that?!
You, when you reply, there is a little @ symbol that you can unselect
Haha no worries, not quite asleep yet
I guess it's not functional
Ah cool TIL
nice pictures
Thanks! 😅
Online multiplayer puzzle game
!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.
guys
fam i just started coding
what ide shld i use
pycharm
k
cool
kernal dev uses emacs right
shld i use freecodecamp
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
I would very strongly suggest you look at YouTuber Corey Shafer's playlist for Python beginners.
It walks you through the foundations from "Hm, I want to learn Python programming. What do I need to know?"
is it hard to shift from python to other langs
There's always going to be teething problems of one sort or another, but the more languages you know, the easier you can take on others.
So I've heard tell, anyway. I'm quite comfy in my insular Python bubble.
Sure.
Can confirm, the more experience with programming you have in general the easier it becomes
depends on what you want to do, I'd say
if you're interested in web development, maybe javascript, if you care more about systems stuff, you can go to some other stuff
wat abt debian
The ones I say people would do well to pick up would be your frontend stuff, so HTML, CSS, Javascript. Then you've got your backend stuff, so C/C++, Java/Kotlin. Rust is a bit popular at the moment, too.
i dont use parrot i use the windows
Some kind of databasing knowledge is a good idea, too.
cgi
Asahi Group Holdings, Ltd. (アサヒグループホールディングス株式会社, Asahi Gurūpu Hōrudingusu kabushiki gaisha) is a Japanese global beer, spirits, soft drinks and food business group headquartered in Sumida, Tokyo.
In 2019, the group had a revenue JPY 2.1 trillion. Asahi's business portfolio can be segmented as follows: alcoholic beverage business (40.5%), oversea...
gtg guys
LLVM
yes
Rocket is a web framework for the Rust
programming language that makes it simple to write fast web applications
without sacrificing flexibility or type safety.
sounds like a 90s tech movie
Integrate your service with Discord — whether it's a bot or a game or whatever your wildest imagination can come up with.
I think I just heard a kangaroo hopping across the back yard.
Night of the Living Dead movie clips: http://j.mp/2eQcMC3
BUY THE MOVIE: http://j.mp/2erDRZE
Don't miss the HOTTEST NEW TRAILERS: http://bit.ly/1u2y6pr
CLIP DESCRIPTION:
Johnny (Russell Streiner) mocks Barbra (Judith O'Dea) for being afraid in the cemetery, when suddenly they're attacked.
FILM DESCRIPTION:
When unexpected radiation raises the ...
🦘
Oh god, the reviews
int r = m % n;
int warn = (r + s) - 1;
return warn;
2
5 2 1
5 2 2
2 3 4 1 2 3
0 1 2 3 0 1
!pep 582 621
!pep 621
5 2 1
1 % 5 = 1
2 % 5 = 2
^ you got 2 because 2%5 doesn't give you 2nd number from 0 to 4 really unlike what you might imagine
so -1 is required
!e
for i in range(1, 7):
print(f"{i} % 5 = {i % 5}")
@woeful salmon :white_check_mark: Your eval job has completed with return code 0.
001 | 1 % 5 = 1
002 | 2 % 5 = 2
003 | 3 % 5 = 3
004 | 4 % 5 = 4
005 | 5 % 5 = 0
006 | 6 % 5 = 1
supp
pretty well :^) i gave up on rust and picked up golang :D
wbu?
late response but : cool :D
nah, i want a viable alternative to rust. i didnt have much luck finding one so i picked up golang as a side lang
@molten pewter you're right! even though ive done many things with rust, im just tired and sick of it now 😔
golang is too high level
i may pick zig
holy god i got a new idea
i'll make a language similar to python [ in terms of syntax ] which compiles to rust
so i get the best of both worlds
is there?
i love go's concurrency
Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. https://vlang.io - GitHub - vlang/v: Simple, fast, safe, co...
i hate this language with a passion :D
its toooooo overpromising
and its become a meme in the r/ProgLangs server
@woeful salmon stream it :D
hmmmm
@rugged root any projects youve been working on?
nextjs is fun
Hey guys, how can i make this return back to the start of the try-block after an exception is catched?
while True:
try:
cnxn = pyodbc.connect(f'Driver={driver};SERVER={server}; DATABASE={database};UID={uid};PWD={pwd}')
break
except pyodbc.Error as ex:
print("Connection failed: check the datebase information and retry!")
finally:
return cnxn
continue at the end of that block should do it
Not sure if that supersedes the finally, though
@terse needle can you please stop faking the accent and talk normally
did I says "assassins creed films", woops
An example of boids (flock simulations) written in the C programming using raylib for rendering.
Source Code: https://github.com/KJ002/Boids
i'm utterly confused how is 2%5 = 2
nevermind i'm reading the doc, i get it now
it's stupid math though
not really
modulo is effectually doing this
dividend = int(input("top")) # 2
quotient = int(input("bottom")) # 5
while dividend/quotient >= 1:
dividend /= quotient
print(dividend)
i get it
@wind raptor You alive?
👻
i keep thinking it could mess up some logic if you are using the / with the % and the numerator is smaller than the denominator, the fraction could affect the outcome
depends on how you use the / with the %
you can mess up anything if you try
Ok sounds good
true
let me know im doing class then after I am done I will ask youj
Okay, thanks Chris!
food
im fasting man
dont show me food 😭
Ramadan Kareem
Ramadan Kareem 6 days 🙂
I don't know
guild:
id: 267624335836053506
invite: "https://discord.gg/python"
categories:
help_available: 691405807388196926
help_dormant: 691405908919451718
help_in_use: 696958401460043776
logs: &LOGS 468520609152892958
moderators: &MODS_CATEGORY 749736277464842262
modmail: &MODMAIL 714494672835444826
appeals: &APPEALS 890331800025563216
appeals2: &APPEALS2 895417395261341766
voice: 356013253765234688
summer_code_jam: 861692638540857384
import requests
from requests import session
s1 = requests.session()
s2 = session()
""You have been granted permission to use voice channels in Python Discord. "" Um help?
import pickle
#Openining the text form
with open('pickle_exercise.txt',) as readerrr:
data11=readerrr.readlines()
#Writing the lines
iris_list = []
for line in data11:
iris_list.append([line.replace("\n","")])
with open('dataset.pkl','wb') as writerr:
pickle.dump(iris_list,writerr)
# Reading the lines
with open('dataset.pkl','rb') as readerr1:
read=pickle.load(readerr1)
# for item in read:
# print(item, "\n",end="")
# print(iris_list,"\n" ,end="")
for item in iris_list:
print(iris_list,'\n')
I want to print the list of list
[['5.1,3.5,1.4,0.2,Iris-setosa'], ['4.9,3.0,1.4,0.2,Iris-setosa'], ['4.7,3.2,1.3,0.2,Iris-setosa']]
for line in iris_list:
print(*line)
['6.3,2.8,5.1,1.5,Iris-virginica']
['6.1,2.6,5.6,1.4,Iris-virginica']
['7.7,3.0,6.1,2.3,Iris-virginica']
['6.3,3.4,5.6,2.4,Iris-virginica']
['6.4,3.1,5.5,1.8,Iris-virginica']
['6.0,3.0,4.8,1.8,Iris-virginica']
['6.9,3.1,5.4,2.1,Iris-virginica']
['6.7,3.1,5.6,2.4,Iris-virginica']
['6.9,3.1,5.1,2.3,Iris-virginica']
['5.8,2.7,5.1,1.9,Iris-virginica']
['6.8,3.2,5.9,2.3,Iris-virginica']
['6.7,3.3,5.7,2.5,Iris-virginica']
['6.7,3.0,5.2,2.3,Iris-virginica']
['6.3,2.5,5.0,1.9,Iris-virginica']
['6.5,3.0,5.2,2.0,Iris-virginica']
['6.2,3.4,5.4,2.3,Iris-virginica']
['5.9,3.0,5.1,1.8,Iris-virginica'] ]```
for item in iris_list:
print(iris_list,'\n')
for line in iris_list:
print(*line,'\n')
# def fetch_data(url):
# mydata = requests.get(url)
# with open("iris_data.txt", "w") as f:
# f.writelines(mydata.text)
# with open("iris_data.txt") as f:
# iris_contents = f.readlines()
# return iris_contents
#
# iris_list = []
# for line in fetch_data(url):
# iris_list.append([line.replace("\n","")])
#
# with open(iris_pkl_file, "wb") as file_obj:
# pickle.dump(iris_list, file_obj)
#
# with open(iris_pkl_file, "rb") as file_obj:
# myStr = pickle.load(file_obj)
#
# print("-----Output: iris Data ---------")
# for item in myStr:
# print(item, "\n",end="")
# print("Number of items is ", len(myStr))
for line in iris_list:
print(*line,'\n')
This one is your send
.
This one
@solid roost You are super roboty
@rugged root Can you please help me out
I can try in a moment
sadly in my country discord not wprk perfectly
I'm following up with something at work
for line in iris_list:
print(*line,'\n')
....there it is
for line in iris_list:
list_of_lists.append([*line])
print('List of lists:')
for list in lists_of_lists:
print(*list,\n')
print(iris_list)
#Openining the text form
with open('pickle_exercise.txt',) as readerrr:
data11=readerrr.readlines()
#Writing the lines
iris_list = []
for line in data11:
iris_list.append([line.replace("\n","")])
print(iris_list)
with open('dataset.pkl','wb') as writerr:
pickle.dump(iris_list,writerr)
# Reading the lines
with open('dataset.pkl','rb') as readerr1:
read=pickle.load(readerr1)
for item in read:
print(item, "\n",end="")
# print("\n",iris_list)
list = []
for line in iris_list:
list.append(*line)
print('List of lists:')
print(list)
What was the last one I posted? Can you post that here?
If you can undo in the editor and copy what resulted in this
list_of_lists = []
for line in iris_list:
list_of_lists.append(line)
print('List of lists:')
for list in list_of_lists:
print(list)
@solid roost
list_of_lists = []
for line in iris_list:
list_of_lists.append(line)
print('List of lists:')
print(list_of_lists)
?
back to the drawing board
hmm
How is this supposed to look?
it should be vertical
wait, do the voicechat chats also count to the required messages/active time for the vc perms?
yes
ah k, thnx
It's more that I am more of a vc guy than I chat guy lol
so it could take a while till I get verified lol
just a bit of time
surely, you will get there
Heading out, see you folks
Hi all, I'd like some help installing pip.
!stream 95175136319115264 30M
✅ @whole bear can now stream until <t:1649462988:f>.
yello, guess all y'all societal deviants that live on the west hemisphere but have an eastern hemisphere based sleep schedule, and normal east hemisphere-eners are in the vc now, correct?
im not joining vc cuz it's my bed time, came to say high
and yes to say high, not hi
🏁
yes
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
how i can hear u and you are not in the chanel
!
what
check your voice man
ok
ya i can see u now
What are you talking about?
do you know any thing about datasience
c ? u wanna build a compiler ?
#include <stdio.h>
#include <stdlib.h>
#include "Sorter.h"
/**
* Sorting Algorithms in C
* (algorithms are found in Sorter.h)
*/
int cmpfunc (const void * a, const void * b) {
return ( *(int*)a - *(int*)b );
}
int main(void)
{
int toSort[] = {1,2,3,4,9,8,7,6,5};
puts("Before sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
bubbleSort(toSort, 9, sizeof(int), cmpfunc);
puts("After sorting:");
for (int i = 0; i < 9; i++)
{
printf("%d ", toSort[i]);
}
return 0;
}
#ifndef SORTER_INCLUDED
#define SORTER_INCLUDED
#include <string.h>
void swapVal(void *a, void *b, size_t siz)
{
char temp[siz];
memcpy(temp, b, siz);
memcpy(b, a, siz);
memcpy(a, temp, siz);
}
// Bubble sort
void bubbleSort(void *base, size_t nitems, size_t siz, int (*cmp)(const void*, const void*))
{
for (size_t i = 1; i < nitems; i++)
{
for (size_t j = 0; j < nitems - i; j++)
{
if ((*cmp)((void*)base[j], (void*)base[j + 1])) // Something is wrong here
{
swapVal(&base[j], &base[j + 1]);
}
}
}
}
#endif // SORTER_INCLUDED
!e [print("foo") for _ in range(5)]
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | foo
002 | foo
003 | foo
004 | foo
005 | foo
!e
m = (print("foo") for _ in range(5))
list(m)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | foo
002 | foo
003 | foo
004 | foo
005 | foo
!e
m = iter(print("foo") for _ in range(5))
while next(m):
...
@terse needle :white_check_mark: Your eval job has completed with return code 0.
foo
!e
m = map(lambda _: print("foo"), range(5))
list(m)
@uncut meteor :white_check_mark: Your eval job has completed with return code 0.
001 | foo
002 | foo
003 | foo
004 | foo
005 | foo
Instagram: @nickmillionz
Twitter: @nickmillionz
Rather than give me money, give to charities I care about:
Islamic Relief USA (for children in Yemen): http://irusa.org/yemen/
Partnership With Native Americans: http://www.nativepartnership.org/site/PageServer?pagename=pwna_home
The Native American Heritage Association: https://www.naha-inc.org/...
!e ```py
print("""
foo
foo
foo
foo
foo
""")
@dense ibex :white_check_mark: Your eval job has completed with return code 0.
001 |
002 | foo
003 | foo
004 | foo
005 | foo
006 | foo
hmmmmm
!e
from functools import reduce
print(reduce(lambda acc, x: acc+"\n"+x, ["foo" for _ in range(4)], "foo"))
@terse needle :white_check_mark: Your eval job has completed with return code 0.
001 | foo
002 | foo
003 | foo
004 | foo
005 | foo
006 | foo
The Bushmaster Protected Mobility Vehicle or Infantry Mobility Vehicle is an Australian-built four-wheel drive armoured vehicle. The Bushmaster was primarily designed by the then government-owned Australian Defence Industries (ADI), and is currently produced by Thales Australia with a support contract provided by Oshkosh Truck following the acqu...
@dense ibex
```mermaid
flowchart LR
Postgres[(Postgres)]
API([API])
RedisCache[Redis Cache]
BigBrother <--> RedisCache
BigBrother <--> API
RedisCache <--> API
API <--> Postgres
```
!e
import ctypes
ctypes.cast(id(1), ctypes.POINTER(ctypes.c_int))[6] = 100
print()
@tiny socket :warning: Your eval job has completed with return code 0.
[No output]
@dense ibex
!e
from ctypes import *
p_null = POINTER(c_int).from_address(0)
p_null[0]
@tiny socket :warning: Your eval job has completed with return code 139 (SIGSEGV).
[No output]
!e
import sys
sys.setrecursionlimit(6942069)
c = lambda c:c(c);c(c)
@tiny socket :warning: Your eval job has completed with return code 139 (SIGSEGV).
[No output]
!e py def func(): try: func() except RecursionError: func() func()
@somber heath :warning: Your eval job timed out or ran out of memory.
[No output]
Huh. That's different.
eating irl and wanting to have someone confirm so I am not unintentionally lying …
for bash, did stuff like cd $OLDPWD/<TAB> really auto-escape the $ for a long while?
Video of the person having issues:
https://media.discordapp.net/attachments/641256914684084237/962304231447089203/3Et0UAfxlL.webm
I'm saying that is normal
cd $foo/b<TAB>
cd \$foo/bin/
I remember reading that on SE somewhere.
yes.
\$
It is, by definition, impossible to unintentionally lie.
A lie is an intentional deception.
what are you trying to code?
@true hornet who are you asking, just curious
I am in the VC and I can't unmute because I am not verified
if __debug__:
... # stuff
UInt8
0 .. 255
SInt8
-128 .. 127
UInt(bits):
0 .. (2 ** bits) - 1
SInt(bits):
-(2 ** (bits - 1)) .. (2 ** bits - 1) - 1
hello all
hewwos to you as well
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
just listening in
yes
I googled it, on win 10, still very confused
3.10
I tried the command to check version, it just says syntax error
>>>