#voice-chat-text-0
1 messages ยท Page 1040 of 1
To automate Discord?
No, that's against their ToS
I'm just saying, a family has to stick together, and what better way than to use horse glue
I hate that it was what I thought it was
"Linus" -> "Linux"
Is this the first recorded instance of someone putting an "x" on something to make it sound cool?
PS C:\Users\BradleyReynolds> (Get-ChildItem | Select Name) | Join-String -Separator ','
@{Name=.cargo},@{Name=.config},@{Name=.dotnet},@{Name=.rustup},@{Name=.ssh},@{Name=.templateengine},@{Name=.vscode},@{Name=Contacts},@{Name=Documents},@{Name=Downloads},@{Name=Favorites},@{Name=Impress Designs, Inc},@{Name=Links},@{Name=Music},@{Name=OneDrive},@{Name=OneDrive - Darbia},@{Name=OneDrive - XXX},@{Name=programming},@{Name=Saved Games},@{Name=Searches},@{Name=source},@{Name=usb_driver},@{Name=Videos},@{Name=.gitconfig},@{Name=.lesshst},@{Name=.viminfo},@{Name=.yarnrc}
@amber raptor - Quick question - How do I get just the Name as a string, without the... are those all individual Array(s)?
WTF is that
Powershell
what are we even talking about in the vc
Im so confused
lol
i dont wanna disturb and be rude
# -*- coding: utf-8 -*-
"""
Created on Tue Mar 8 23:02:26 2022
@author: Joe
"""
from openpyxl import workbook, load_workbook
from openpyxl.styles import PatternFill
filename1 = 'Cash Accounts/Venmo/2022/2022-06.xlsx'
filename2 = 'AAA Financials/Bank Reconciliation/New.xlsx'
#Change the file name to match file being edited
#filename = 'folder/file.xlsx'
book1 = load_workbook(filename1)
sheet1 = book1.active
book2 = load_workbook(filename2)
sheet2 = book2.active
sheet1.delete_rows(1,2)
sheet1.insert_cols(4,1)
sheet1.delete_cols(11,1)
sheet1.insert_cols(12,2)
sheet1.delete_cols(1,1)
sheet1['C1'].value = "Date"
sheet1['K1'].value = "Actual"
sheet1['L1'].value = "DR/CR"
PF = PatternFill(patternType='solid', fgColor='F4D03F')
for i in range(3, sheet1.max_row):
sheet1[f'C{i}'].value = f'=IF(ISBLANK(B{i}),"",IF(RIGHT(LEFT(B{i},6),1)="0",RIGHT(LEFT(B{i},7),1),RIGHT(LEFT(B{i},7),2))&"/"&IF(RIGHT(LEFT(B{i},9),1)="0", RIGHT(LEFT(B{i},10),1), RIGHT(LEFT(B{i},10),2))&"/"&LEFT(B{i},4))'
sheet1[f'K{i}'].value = f'=IF(ISBLANK(I{i}),"",IF(AND(I{i}<0,J{i}<0),-I{i}+J{i},IF(AND(I{i}<0,J{i}>0),-I{i}-J{i},IF(AND(I{i}<0,ISBLANK(J{i})),-I{i},I{i}+J{i}))))'
sheet1[f'L{i}'].value = f'=IF(I{i}<0,"CR","DR")'
sheet1[f'C{i}'].fill = PF
sheet1[f'K{i}'].fill = PF
sheet1[f'L{i}'].fill = PF
sheet1['J2'].value = '=-SUMIF($J$3:$J$98,"<0",$J$3:$J$98)'
sheet1['M2'].value = '=SUMIF(M3:M101,"Mastercard Debit *2727",K3:K101)+SUMIF(M3:M101,"HUNTINGTON NATIONAL BANK *7800",K3:K101)+SUMIF(M3:M101,"Discover Credit *6859",K3:K101)'
sheet1['J2'].fill = PF
sheet1['M2'].fill = PF
book.save(filename)
This Sociopath -> Clueless -> Loser article I was referencing: https://www.ribbonfarm.com/2009/10/07/the-gervais-principle-or-the-office-according-to-the-office/
I agree with you, I was just trying to assist in tempering your argument bud, your not the only irritated.
@whole bear What should we call you?
You too
@thorny hinge Your typing is coming through
life isnt fair
ty
No worries
So the problem with reason is that it's subjective, as bizarre as that sounds. Reason is whatever people want it to be. What you think is reasonable may not be to some. You can have people who think it's unreasonable to share their wealth. We would see it as the reasonable thing to do. So this would still be trying to emphasize a system that we specifically find acceptable. Trying to treat reason as some absolute, universal truth isn't, well, reasonable. Same thing goes for morality, philosophy.
And now I must drive, back in a bit
@south bone https://techjobsforgood.com/
sheet2[f'A{i}'].value = f'=IF(ISBLANK('[2022-06.xlsx]venmo_statement (1)'!B{i}),"",IF(RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},6),1)="0",RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},7),1),RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},7),2))&"/"&IF(RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},9),1)="0", RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},10),1), RIGHT(LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},10),2))&"/"&LEFT('[2022-06.xlsx]venmo_statement (1)'!B{i},4))'
u can replace ' if possible?
\'
yes this will turn the apostrophe into part of the string rather than a symbol that ends the string
can't you replace the wrapping apostrophes with something else altogether, such as """ ... """? I don't know much python
from openpyxl import workbook, load_workbook
from openpyxl.styles import PatternFill
filename1 = 'Cash Accounts/Venmo/2022/2022-06.xlsx'
filename2 = 'AAA Financials/Bank Reconciliation/New.xlsx'
#Change the file name to match file being edited
#filename = 'folder/file.xlsx'
book1 = load_workbook(filename1)
sheet1 = book1.active
book2 = load_workbook(filename2)
sheet2 = book2.active
sheet1.delete_rows(1,2)
sheet1.insert_cols(4,1)
sheet1.delete_cols(11,1)
sheet1.insert_cols(12,2)
sheet1.delete_cols(1,1)
sheet1['C1'].value = "Date"
sheet1['K1'].value = "Actual"
sheet1['L1'].value = "DR/CR"
PF = PatternFill(patternType='solid', fgColor='F4D03F')
for i in range(3, sheet1.max_row):
sheet1[f'C{i}'].value = f'=IF(ISBLANK(B{i}),"",IF(RIGHT(LEFT(B{i},6),1)="0",RIGHT(LEFT(B{i},7),1),RIGHT(LEFT(B{i},7),2))&"/"&IF(RIGHT(LEFT(B{i},9),1)="0", RIGHT(LEFT(B{i},10),1), RIGHT(LEFT(B{i},10),2))&"/"&LEFT(B{i},4))'
sheet1[f'K{i}'].value = f'=IF(ISBLANK(I{i}),"",IF(AND(I{i}<0,J{i}<0),-I{i}+J{i},IF(AND(I{i}<0,J{i}>0),-I{i}-J{i},IF(AND(I{i}<0,ISBLANK(J{i})),-I{i},I{i}+J{i}))))'
sheet1[f'L{i}'].value = f'=IF(I{i}<0,"CR","DR")'
sheet1[f'C{i}'].fill = PF
sheet1[f'K{i}'].fill = PF
sheet1[f'L{i}'].fill = PF
sheet2[f'A{i}'].value = f'=IF(ISBLANK(\'[2022-06.xlsx]venmo_statement (1)\'!B{i}),"",IF(RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},6),1)="0",RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},7),1),RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},7),2))&"/"&IF(RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},9),1)="0", RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},10),1), RIGHT(LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},10),2))&"/"&LEFT(\'[2022-06.xlsx]venmo_statement (1)\'!B{i},4))'
sheet1['J2'].value = '=-SUMIF($J$3:$J$98,"<0",$J$3:$J$98)'
sheet1['M2'].value = '=SUMIF(M3:M101,"Mastercard Debit *2727",K3:K101)+SUMIF(M3:M101,"HUNTINGTON NATIONAL BANK *7800",K3:K101)+SUMIF(M3:M101,"Discover Credit *6859",K3:K101)'
sheet1['J2'].fill = PF
sheet1['M2'].fill = PF
book1.save(filename1)
book2.save(filename2)
pd.append lol
convert the file in csv then perform
it can
work
with other forms
even with xlsx just changes in keyword
am python guy
@lapis hazel do you think learning rust would help you pick up modern C++ quickly?
i know rust fundamentals but not C++. i don't know how easy it would be to make the switch or if it'd be learning a brand new paradigm all over again
RECESSION
@sweet lodge I'm going to push the completed auto_guild thing. Would you be willing to do a code review when you feel like it?
๐
You're on a new branch, right?
Can you go ahead and create a PR to dev?
Yep, will do
I'm going to try to do MonkeyType later to see if it cleans up/helps out with the type hints.
With the kinds of inputs and responses it handles, it's a fucking mess
I really hope that someone has made a Swift framework called Taylor
A little on the nose, no?
Yeah
Made by Instagram
Yep
Embrace Open Source!
Absolutely
lots of neat stuff coming from these bigger companies
Great stuff comes out of unexpected places
Exactly
Okay, I'm not smart enough (in a place that isn't burning hot) to figure out the MonkeyType thing
So I'll futz with that
Music video by Styx performing Mr. Roboto. (C) 1983 A&M Records
Best of Styx: https://goo.gl/n2JFbN
Subscribe here: https://goo.gl/UiH6GG
#Styx #MrRoboto #Vevo
hi
Click to get a Kiwi Crate Subscription for a kid you love: http://bit.ly/SmarterKiwiCrate
Click here if you're interested in subscribing: http://bit.ly/Subscribe2SED
Want to tweet this? http://bit.ly/ChopperFall โ Click below for more links! โ
โ Click below for more links! โ
MUSIC:
https://ashellinthepit.bandcamp.com/track/spins-acoust...
bro what ๐
brb
Can someone help, I'm getting syntax errors on my elif statement and I'm not sure why... ```py
from openpyxl import workbook, load_workbook
from openpyxl.styles import PatternFill
filename1 = 'Cash Accounts/Venmo/2022/2022-06.xlsx'
filename2 = 'AAA Financials/Bank Reconciliation/New.xlsx'
#Change the file name to match file being edited
#filename = 'folder/file.xlsx'
book1 = load_workbook(filename1)
sheet1 = book1.active
book2 = load_workbook(filename2)
sheet2 = book2.active
sheet1.delete_rows(1,2)
sheet1.delete_cols(10,1)
sheet1.delete_cols(1,1)
sheet1.delete_cols(17,1)
for i in range(3, sheet1.max_row):
sheet2.cell(row=i-2,column=1).value = sheet1.cell(row=i,column=2).value
sheet2.cell(row=i-2,column=6).value = "Venmo"
if ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value < 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value + sheet1.cell(row=i,column=9).value)
elif ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value > 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value - sheet1.cell(row=i,column=9).value)
elif ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value == 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value)
else:
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value + sheet1.cell(row=i,column=9).value)
if sheet1.cell(row=i,column=8).value < 0:
sheet2.cell(row=i-2,column=9).value = "CR"
else:
sheet2.cell(row=i-2,column=9).value = "DR"
book1.save(filename1)
book2.save(filename2)```
runfile('C:/Users/Joe/OneDrive/Desktop/Personal Files/Banking/Formatting - Venmo - Copy.py', wdir='C:/Users/Joe/OneDrive/Desktop/Personal Files/Banking')
File "C:\Users\Joe\OneDrive\Desktop\Personal Files\Banking\Formatting - Venmo - Copy.py", line 39
elif ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value > 0)):
^
SyntaxError: invalid syntax```
not the right channel, sorry
fn main() {
let num_ptr = &0 as *const i32;
println!("Address: {:?}", num_ptr);
unsafe {
println!("Value: {}", *num_ptr);
}
}
Had a help channel and got no response
#include <stdio.h>
#include <stdlib.h>
int main()
{
int* ptr = (int*)malloc(sizeof(int));
printf("%d", ptr);
free(ptr);
return 0;
}
if:
# something
elif:
#something```
if:
# something
elif:
# error```
from openpyxl import workbook, load_workbook
from openpyxl.styles import PatternFill
filename1 = 'Cash Accounts/Venmo/2022/2022-06.xlsx'
filename2 = 'AAA Financials/Bank Reconciliation/New.xlsx'
#Change the file name to match file being edited
#filename = 'folder/file.xlsx'
book1 = load_workbook(filename1)
sheet1 = book1.active
book2 = load_workbook(filename2)
sheet2 = book2.active
sheet1.delete_rows(1,2)
sheet1.delete_cols(10,1)
sheet1.delete_cols(1,1)
sheet1.delete_cols(17,1)
for i in range(3, sheet1.max_row):
sheet2.cell(row=i-2,column=1).value = sheet1.cell(row=i,column=2).value
sheet2.cell(row=i-2,column=6).value = "Venmo"
if ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value < 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value + sheet1.cell(row=i,column=9).value)
elif ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value > 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value - sheet1.cell(row=i,column=9).value)
elif ((sheet1.cell(row=i,column=8).value < 0) and (sheet1.cell(row=i,column=9).value == 0)):
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value)
else:
sheet2.cell(row=i-2,column=8).value = (-sheet1.cell(row=i,column=8).value + sheet1.cell(row=i,column=9).value)
if sheet1.cell(row=i,column=8).value < 0:
sheet2.cell(row=i-2,column=9).value = "CR"
else:
sheet2.cell(row=i-2,column=9).value = "DR"
book1.save(filename1)
book2.save(filename2)
boo
What is the year and country that has the lowest life expectancy in the dataset?
What is the year and country that has the highest life expectancy in the dataset?
Allow the user to type in a year, then, find the average life expectancy for that year. Then find the country with the minimum and the one with the maximum life expectancies for that year.
with open("life-expectancy.csv") as file:
lowest_line = ''
highest_line = ''
min_LE = 0
max_LE = 0
flag_line = 0
for line in file:
if line.lower().startswith('entity'):
continue
entity, code, year, life_expectancy = line.strip().split(',')
if flag_line < 3:
# print (flag_line)
print (line)
flag_line += 1
if flag_line == 1:
min_LE = life_expectancy
max_LE = life_expectancy
lowest_line = line
highest_line = line
if life_expectancy < min_LE:
min_LE = life_expectancy
if life_expectancy > max_LE:
max_LE = life_expectancy
print (f'the lowest life expectancy is : {min_LE}')
print (f'The highest life expectancy is : {max_LE}')
brb
Hello @somber heath
Hello.
anyone awake?
Roughly two thirds of the population of the planet, I would expect.
i like the analogy @somber heath
you could take the snake object as a method param instead of making it global
@lethal thunder
@waxen aspen https://www.canada.ca/en/employment-social-development/programs/foreign-credential-recognition.html
Foreign credential recognition in Canada
So my computer randomly shut down
and grub booted into recovery mode saying something about the file system lol
so weird
Hi, I'm a theme for the Hexo blogging framework. I'm particularly great for a personal web page with a simple blog. In this paragraph, you can provide some information about yourself
maybe maybe not, just ask your question concisely here
okay
import time
from mfrc522 import SimpleMFRC522
import RPi.GPIO as GPIO
reader = SimpleMFRC522()
def main():
while True:
print("Reading...Please place the card...")
id, text = reader.read()
print("ID: %s\nText: %s" % (id,text))
execfile("2.2.10_read.py 1")
time.sleep(3)
def destroy():
GPIO.cleanup()
if name == 'main':
try:
main()
except KeyboardInterrupt:
destroy()
i have that for reading the rfid chip and it works
and i want that it powers a servo motor
how long and stuff doesnt mattera
mattera
matters
for the motor i have that code
#!/usr/bin/env python3
import RPi.GPIO as GPIO
import time
SERVO_MIN_PULSE = 500
SERVO_MAX_PULSE = 2500
ServoPin = 18
def map(value, inMin, inMax, outMin, outMax):
return (outMax - outMin) * (value - inMin) / (inMax - inMin) + outMin
def setup():
global p
GPIO.setmode(GPIO.BCM) # Numbers GPIOs by BCM
GPIO.setup(ServoPin, GPIO.OUT) # Set ServoPin's mode is output
GPIO.output(ServoPin, GPIO.LOW) # Set ServoPin to low
p = GPIO.PWM(ServoPin, 50) # set Frequecy to 50Hz
p.start(0) # Duty Cycle = 0
def setAngle(angle): # make the servo rotate to specific angle (0-180 degrees)
angle = max(0, min(180, angle))
pulse_width = map(angle, 0, 180, SERVO_MIN_PULSE, SERVO_MAX_PULSE)
pwm = map(pulse_width, 0, 20000, 0, 100)
p.ChangeDutyCycle(pwm)#map the angle to duty cycle and output it
def loop():
while True:
for i in range(0, 181, 5): #make servo rotate from 0 to 180 deg
setAngle(i) # Write to servo
time.sleep(0.002)
time.sleep(1)
for i in range(180, -1, -5): #make servo rotate from 180 to 0 deg
setAngle(i)
time.sleep(0.001)
time.sleep(1)
def destroy():
p.stop()
GPIO.cleanup()
if name == 'main': #Program start from here
setup()
try:
loop()
except KeyboardInterrupt: # When 'Ctrl+C' is pressed, the program destroy() will be executed.
destroy()
@quaint oyster
!paste @devout temple
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 know nothing about rfid chips, sorry
kannst mir ja mal helfen du kek
kk
dummer huenson
!rule 4 @devout temple
4. Use English to the best of your ability. Be polite if someone speaks English imperfectly.
Any particular reason you felt the need to insult my staff?
@quasi condor Su- oh you left
G2G for a bit. Cheers all!
Hello
all kids are idiots
I am confused why the bus was allowed to park there, seemingly indefinitely?
not indefinetely
the bus driver should help cross the children
not all bus stops have children crossing, but this would help for bus stops that do
i heard you the first time
๐คฃ
Are we having argument that kids who get run over deserved it?
That was mentioned at one point yes
I'm very tired
Already
Just wonder what I walked into
Cheaper than a what?
That makes more sense.
Satan Repo.
Remind me to show you my bathroom at some point.
The sink bench is this horrendous bright lime green.
As was the kitchen boarding.
I'm dying inside. My mileage check is only ~$72
The days are past where I could freely put my feet to my face.
So
Adobe is actually being nice
(also this but it helps my argument less)
Although I guess bees are already self driving
@dreamy vector If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know
Also I promise, it's not always this chaotic
Just ah..... some particular combos of people end up causing it to be intense
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I had a doubt
How can we use find_peaks to actually find the peaks?
They are giving indices of the peaks
But I want the values
What's the context?
There's a set of data that I have
What libraries are you using, I mean
And I need to find the peaks
Sorry, brain isn't working yet
scipy.signal
Mkay, let me take a quick look
Selfie cars.
Can someone help with this?
x,y = findpeaks
x will be indices
y will be a dictionary containing your peak heights
@somber heath I'll be back, have to call and talk to our IT folks
you're a powerful tool
Jesus that chin
It's showing {}
My data is a list
scipy.signal.find_peaks(x, height=something)
Not 100% what that needs to be, though
!d scipy.signal.find_peaks
scipy.signal.find_peaks(x, height=None, threshold=None, distance=None, prominence=None, width=None, wlen=None, rel_height=0.5, plateau_size=None)```
Find peaks inside a signal based on peak properties.
This function takes a 1-D array and finds all local maxima by simple comparison of neighboring values. Optionally, a subset of these peaks can be selected by specifying conditions for a peakโs properties.
It looks like you can feed it an array that matches your input
alternatively you can use sliding window method and construct your own algorithm to find peeks
or two pointers
Any recommendations of a windows laptop?
What're your needs?
"That's not your career field, so obviously you're just blowing bullshit"
People aren't allowed to know things that aren't directly related to their jobs?
Are hobbies banned now?
I use Arch BTW, BTW
Embrace Arch Linux BTW!
okay arch has its pros and cons i prefer debian
eww
I want a windows machine, but will try ubuntu with next computer.
Why?
microsoft office
i guess you can still use linux but
if you want a nice gpu laptop then razer blades are really good but pricey
if you're on a budget just search best budgest gaming laptop
Office online works well for 90% of use cases
Play equipment for cows.
true
Mood swings.
If you just need plain spreadsheets, it's fine
Only thing for me that it doesn't have is the external integrations
hi all ๐
don't use microsoft office that much so
What do you use?
libre office
that is such a pain with large amounts of data
oh fake noodles is here
oh... then i'd use R
HardwareCanucks
uhh...?
There's something funny going on with my computer. I think it's a problem with the hardware.
we already have a linux noodle geek
They mean not Noodle Reaper
๐
It's okay, once it softens, it'll be fine
YES
Embrace Linux!
Using all in gg drive with sheet ๐
ohhhh yeah he's OG noodle heh...
he is the ultimate noodle
Time flies when you're hustling.
// merch: https://merch.krazam.tv
well....im noodleS and hes noodle soooo theres a slight difference
so you mean like
HIM * factor = YOU?
๐
exactlyyy
I can think of three different meanings for hustling.
so who is better? ๐ค
there is no competition ๐ ||(Mr. Reaper is superior without a doubt)||
hello
Could anyone help me out
hell yeah @woeful salmon
see this
from discord.ext import commands
class Cog(commands.Cog):
def __init__(self, bot):
self.bot = bot
self._last_member = None```
this thing gives me an error
for self
Remove the self
hows that dna or some protein stuff going on?
Indentation is wrong, too
Sometimes it's the simple stuff
python ๐ก
What do you use then?
As if you've never missed a closing bracket or semi-colon
fair
found the answers I was looking for so now Im working on the write up ๐ค
specifically socket programming
on cogs
On COGS using discord..py do you always need the self as a parameter when creating commands
write up?
whast that?
You do. Self is a class thing
Like writing out the thesis/article
Always assume you should have self
Only when you're using classes
I said that
okay
I see
thats booring right?
Self represnts the instance
Remember
like thec ars
and the students
that example u gave me
Python slow
Its.....necessary
I'm already on UTF-512
๐ณ you are in python server
But needed
and at times booring
๐ถ
Audible free book: http://www.audible.com/computerphile
Representing symbols, characters and letters that are used worldwide is no mean feat, but unicode managed it - how? Tom Scott explains how the web has settled on a standard.
More from Tom Scott: http://www.youtube.com/user/enyay and https://twitter.com/tomscott
EXTRA BITS: http://youtu.be...
Yeah but like theres no point in spending months on research if you don't document it and present it to the world. Ygm?
That'll be gatekeeping in a way ๐
Discord has been doing that a lot lately
Gotta love it
WTF is going on with the way we're explaining Unicode?
๐ค world? damn
It's literally just a number assigned to each glyph
Think medically
As of Unicode version 14.0, there are 144,697 characters with code points, covering 159 modern and historical scripts, as well as multiple symbol sets. As it is not technically possible to list all of these characters in a single Wikipedia page, this list is limited to a subset of the most important characters for English-language readers, with ...
json.dumps(body, separators=(',', ':'), ensure_ascii=False)
Don't tell me no
- @rugged tundra
"I know I'm right!"
Unicode is a list of numbers, each of which maps to a single character
They took everyone's lists of characters and combined them, starting with ASCII
UTF is another good one to know
firstly, start with ASCII ๐
To keep combability with ASCII, they gave ASCII characters the same numbers in Unicode
Hiii ๐
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Tom Scott intro to Unicode: https://www.youtube.com/watch?v=MijmeoH9LT4&ab_channel=Computerphile
Conference talk deep diving into text formats: https://www.youtube.com/watch?v=_mZBa3sqTrI
I am just join 2 days ago, nice to meet u ๐
BTW I very highly recommend NDC talks, especially this guy
๐
The link contain the explaination is very clear ๐ you can check it ๐ to go how to unicode work ๐
.wa s rรฉpertoire
alternative form of repertoire
.wa s define repertoire
the entire range of skills or aptitudes or devices used in a particular field or occupation
.wa s How do you turn this thing on?
Failed to get response.
ha
Failed to get response.
William Henry Gates III (born October 28, 1955) is an American business magnate, software developer, investor, author, and philanthropist. He is a coโfounder of Microsoft, along with his late childhood friend Paul Allen.
.wa
Your input was invalid: query is a required argument that is missing.
Usage:```
.wolfram <query>
BTW - The s is for short, so if you want more detail, you can omit it
def bacon(ham, pork, *, args):
bacon(1,2,3,4,5)
.bm
!e
def f(a, b, *args):
print(a)
print(b)
print(args)
f(1,2,3,4,5)
@sturdy panther :white_check_mark: Your eval job has completed with return code 0.
001 | 1
002 | 2
003 | (3, 4, 5)
!e
def ham(pork, beef, *, spam):
print(pork, beef, spam)
ham(1, 2, spam=3)
ham(1, 2, 3)
@rugged root :x: Your eval job has completed with return code 1.
001 | 1 2 3
002 | Traceback (most recent call last):
003 | File "<string>", line 5, in <module>
004 | TypeError: ham() takes 2 positional arguments but 3 were given
I didn't know args is a tuple.
return 1, 2, 3
I used to think it is a list.
!eval
def func(positional_only, /, positional_or_keyword, *, keyword_only, **kwargs):
print(positional_only, positional_or_keyword, keyword_only, kwargs)
func(1,2,keyword_only=3,four=4)
@sweet lodge :white_check_mark: Your eval job has completed with return code 0.
1 2 3 {'four': 4}
You apparently can't use *args with a slash
What does the / reperesent
Everything before a slash must be positional
๐ค at what?
evedrythiing
i would disagree
i have alot of stuff i'm really bad at
for example remembering to eat and drink water o- o
genuinely think if i lived alone i'd die of starving
You would code water into the computer system
i just can't multitask if i'm focused on 1 thing i forget all else that's all T- T
also the reason why i don't speak or reply when typing
can't focus on talking , listening and typing at the same time
good for you ๐ฆ
i wish i could multitask would make life easier
it's not possible to actively talk listen and type a meaningful reply at the same time
what you can do is half way listen and type
and then after done typing recall the context and assume what was said
you're hearing the radio but not actively listening to radio
RTP Payload Format for H.264 Video (RFC 6184)
attention is a pretty interesting topic in cognitive psychology i suggest reading into it
import signal
import sys
def signal_handler(sig, frame):
print('Shutting down bot!')
# cleanup code if needed
sys.exit(0)
signal.signal(signal.SIGINT, signal_handler)
I have a question, what steps do you usually take before starting to build a new personal project?
what is the preparation you take before writing the code? Do you build any graphs/ diagrams, such as class diagram/ flow chart?
I wish I could say that I take those smart steps
Mostly I just start writing general notes
General prompt. Or blindly rely on my memory in the hopes that I do actually remember the following day
Or the following 20 minutes
Sorry, what were we talking about?
What is the year and country that has the lowest life expectancy in the dataset?
What is the year and country that has the highest life expectancy in the dataset?
Allow the user to type in a year, then, find the average life expectancy for that year. Then find the country with the minimum and the one with the maximum life expectancies for that year.
the lowest life expectancy is : 17.76 in 1543
The highest life expectancy is : 86.751 in 2019
Rust!
!stream 945485344420265984
โ @rocky hearth can now stream until <t:1657302429:f>.
"rtc connecting"
can you help?
With?
im trying to join the cal
ouch!
thats a lot of poeple in the vc bruh
be a cultured man like me and watch hentai through minecraft internet plugin
np
sure
yo guys
i got a quick question
currentbundle = data['FeaturedBundle']['Bundle']['DataAssetID']
skinsavailable = data['SkinsPanelLayout']['SingleItemOffers']
timebundle = data['FeaturedBundle']['BundleRemainingDurationInSeconds']
timeoffers = data['SkinsPanelLayout']['SingleItemOffersRemainingDurationInSeconds']
timebundlehrmin = str(datetime.timedelta(seconds=timebundle))
timeoffershrmin = str(datetime.timedelta(seconds=timeoffers))
key = currentbundle
key2 = skinsavailable
displayname = filter(lambda i: isinstance(i, dict), map((lambda d: d if d['uuid'] == key else 'test'), bundleids['data']))
print(key2)
skinsdisplayname = []
for item in key2:
skinsdisplayname = dict(*filter(lambda i: isinstance(i, dict), map((lambda d: d if d['uuid'] == key2 else 'test'), skinids['data'])))
print(dict(*displayname)['displayName'])
print(dict(*skinsdisplayname))```
im trying to basically get the display name by seraching for the uuid
how would i do that?
use a for loop
i did
but it doesnt print what i want
it just prints
"{}"
for i in data, if i[uuid] == whatever you want, print i[displayName]
cba to type it properly with left hand only
right hand was stung
๐
shes a blood
t3 sub
look at the pfp you goofy ahh mf
JAHBWDhiwAD
ADW\ADWD
"
wDA
WAD
HOMIE WHAT
Both of you chill
Isnt that exploitation??
is someone playing snake game
in most sensible languages, this would be ~2 lines
Keep it server appropriate.
True
You really think so?
yea whatas wrong with it?
it's not relevant to anything that is being said in voice chat
okay? we are trying to bring up a new topic
Or anything that this server is about
Right
worried about a picture rather than somone breaking discord tos??
Sorry. I'm a bit busy as are other moderators. We can't see everything all at once all the time.
@gentle flint sucktion
dude you just saw a ss of him saying the n word ๐
@gentle flint ice packs work wonders
something like this https://www.bugbitething.com/ @gentle flint
don't have that
sdfds
bro ๐
?
something is really wrong with you 0_0
4k ๐ธ
anyone here play valorant?
Again, we don't share infraction information on other users. To me they don't appear to be in this server however.
thanks bbg ๐ฉ
Also as a note, we commonly mute users if they are being disruptive and modify infractions afterwords. I don't appreciate having my moderation questioned across 3 channels btw
Sorry BBG ๐ฉ
yes you are @zenith radish
@rugged root what u driving rn?
VANIEL
The name of his van
tf
๐
WHAT
BRO WHAT
OH NAH
????
LP
WHAT DID YOU JUST SAY
YOU HAVE A KITTEN
LMFAOO
OH I MEANT U HAD A DISCORD KITTEN
LMFAO
Please don't spam @steady saddle
sorry mod daddy
๐ฉ
@wind raptor I have a question
Yes?
how would i get to display name?
do something then @rugged root me personally i wouldnt let somone trash the earth like that
ok bye
but yea how would i get display name? @wind raptor
You'd loop through "data" in the dictionary and access "displayName" in each iteration
i figured out the loop
but for display name
would i have to go ['data']['displayname']
or
['data']['items']['displayname']
json_data['data'][0]['displayName'] where 0 is the first entry. At that level is where you need the loop to access all of them
Hard to take care of when I'm in a car behind them
ok
ty
No problem!
Whats Wrong with the way he organized his code? Seems to be named properly ๐คทโโ๏ธ
Back in a sec, talking to IT
who u talkin 2
?
"You know it's bad when IT has to call IT"
I may be in responding in the wrong voice chat.. ( i meant Voice Chat 0 )
Oh nah ur good
G2G. Cheers all!
Thank You sir
its very quiet in the vc innit?
I'm a Java + Python dev
Another tough Friday
didn't even get to work 4 hours before being sent home
you cannot hear me I take it
I finally found a job in software, I'm in a train to hire program at the moment
so they pay us for 8 hours a day at a 9-5, today the boss comes over at like 1:30 and asks how our project is coming along, and then says that we should hurry up because it's getting late
I've yet to see them stay till 5 on a Friday, though I've only been there 4 weeks now
Hourly but getting 8 hours
no
it's great, I get paid for 8
we have lunch from 12-1
8 hours atwork a day, not 8 hours working even
I don't understand
No, he just implies that we're ruining his weekend
so let's not stay there when we can go home
do you have a favorite place to learn go?
next week we begin learning go
I know there's the tour of go, but that's pretty basic
So I guess just make stuff in it... that is the way
@zenith radish - Would you consider a merger with an American?
I'll wait for it to hit disney+
And now I have to go to a meeting with another part of our IT folks
I'll be back eventually
How many IT folks do you have?
so is natalie portman already a superhero at this point, or does that happen in this movie?
I have an every other week meeting with the team lead and account manager
I had a mug "Just came from another meeting that should have been an email" or something like that, I brought it to my weeklong series of allday meetings when I was still at the bank
Honestly it's just nice to shoot the shit with them
I should see if they have it still, take it back if they do. Just stop in the main office, see how they react. lol
That's what most of the meetings end up being
That's good then
I always enjoy bullshitting on company time, rapport is critical for cross department productivity
read the email woman
why would you assume email describes the woman, and not waht is to be read?
so he wanted to read the email woman?
if it's negative, divide by max negative
if positive, divide by 1 less
What are we doing?
C-x C-+
hii
how do i screenshare
Mr.Hemlock, i trust you, how to screenshare sir?
I need help with somthing on pycharm professional
@rugged root
Give me like..... 5 minutes. I have to make a call. What's the issue you're having?
Im trying to install jupyter
Its not working..
I checked tutorials and everything, its odd.
Is it giving you errors or what's it doing
It says its downloading
but its been downloading for 3 hours
Best if i can screenshare and show you the problem
perhaps in dm?
While you're waiting for me, ask in #editors-ides. They may have seen this before
ok
Let me know when your done
can i screenshare now?
Can I get Voice Verified role early?
no
k
This week on Zero Punctuation, Yahtzee reviews Neon White.
Join YouTube Memberships and support our content for Early Access to new videos, exclusive Discord perks & more for just $2 per month โบโบ https://www.youtube.com/channel/UCqg5FCR7NrpvlBWMXdt-5Vg/join
Join our growing Discord community: https://discord.gg/A6T2gKrDwB
Subscribe to Escapis...
@glossy axle Okay, so. A few things to build up to where you're going. Here's a fairly ordinary use of linspace.
!e py import numpy as np p = 0 q = 12 steps = 20 result = np.linspace(p, q, steps) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [ 0. 0.63157895 1.26315789 1.89473684 2.52631579 3.15789474
002 | 3.78947368 4.42105263 5.05263158 5.68421053 6.31578947 6.94736842
003 | 7.57894737 8.21052632 8.84210526 9.47368421 10.10526316 10.73684211
004 | 11.36842105 12. ]
Now that's very floaty. Don't worry about that just for now.
What we see here is that we have travelled from p, which is zero, to q, which is 12 in steps steps.
20 steps.
Well, in 20 samples.
Even distribution.
Let's make that a bit easier to look at.
!e py import numpy as np p = 0 q = 12 steps = 20 result = np.linspace(p, q, steps, dtype=int) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
[ 0 0 1 1 2 3 3 4 5 5 6 6 7 8 8 9 10 10 11 12]
Let's change up p and q a bit.

!e py import numpy as np p = 0, 5 q = 12, 21 steps = 9 result = np.linspace(p, q, steps, dtype=int) print(result)
@somber heath :white_check_mark: Your eval job has completed with return code 0.
001 | [[ 0 5]
002 | [ 1 7]
003 | [ 3 9]
004 | [ 4 11]
005 | [ 6 13]
006 | [ 7 15]
007 | [ 9 17]
008 | [10 19]
009 | [12 21]]
So from (0, 5) to (12, 21) in 9 steps.
Ohhh
And if i don't put the steps kwarg, it does it in however many steps it takes with 1 increment?
!e py import numpy as np p = 0, 5 q = 12, 21 result = np.linspace(p, q, dtype=int) print(result)
@glossy axle :white_check_mark: Your eval job has completed with return code 0.
001 | [[ 0 5]
002 | [ 0 5]
003 | [ 0 5]
004 | [ 0 5]
005 | [ 0 6]
006 | [ 1 6]
007 | [ 1 6]
008 | [ 1 7]
009 | [ 1 7]
010 | [ 2 7]
011 | [ 2 8]
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/qegawaqagi.txt?noredirect
oops ๐
numpy.linspace(start, stop, num=50, endpoint=True, retstep=False, dtype=None, axis=0)```
Return evenly spaced numbers over a specified interval.
Returns *num* evenly spaced samples, calculated over the interval [*start*, *stop*].
The endpoint of the interval can optionally be excluded.
Changed in version 1.16.0: Non-scalar *start* and *stop* are now supported.
Changed in version 1.20.0: Values are rounded towards `-inf` instead of `0` when an integer `dtype` is specified. The old behavior can still be obtained with `np.linspace(start, stop, num).astype(int)`
By default, it's 50 samples.
Oh interesting. What if i didn't want a specific number of samples, and instead however many it takes if you increment by 1?
What you will want is just enough steps such that you have enough to cover the entire span of the line.
Which brings me to the Euclidean magnitude function.
The function for calculating the distance between two points.
!d math.dist
math.dist(p, q)```
Return the Euclidean distance between two points *p* and *q*, each given as a sequence (or iterable) of coordinates. The two points must have the same dimension.
Roughly equivalent to:
```py
sqrt(sum((px - qx) ** 2.0 for px, qx in zip(p, q)))
``` New in version 3.8.
You can write your own, but store bought is fine.
Now the problem with this is that so often, the magnitude between two points is not an integer.
But using int on that result might leave you with one missing pixel somewhere.
So instead, we round up
Not with round
!d math.ceil
math.ceil(x)```
Return the ceiling of *x*, the smallest integer greater than or equal to *x*. If *x* is not a float, delegates to [`x.__ceil__`](https://docs.python.org/3/reference/datamodel.html#object.__ceil__ "object.__ceil__"), which should return an [`Integral`](https://docs.python.org/3/library/numbers.html#numbers.Integral "numbers.Integral") value.
Ohh
Numpy has a ceil ufunc, too, but it likes floats.
You can cast, but you might as well use math's ceil.
!e
import math
s = (0, 0)
e = (2, 2)
print(math.dist(s, e))
@glossy axle :white_check_mark: Your eval job has completed with return code 0.
2.8284271247461903
Though if you were doing something more in terms vectorised operations on arrays, I'd be warning you off math entirely.
Oo why is that?
Numpy is good at mass operations on entire arrays at once.
It's something called vectorisation.
But that's not what's going on here.
Well, you will be.
Ignore me for now.
This some big brain stuff, thanks again for helping!
Guy is there any project site of this channel where i can take some beginner friendly project as reference for learning
!kindling
Kindling Projects
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
hello
tobo
@limber helm
how are you doing
i am also doing fine
do you sue arduino
use
i use something similar called fritzing
@somber heath hello'
how are you doing @somber heath
tobo can you tell me some projects
i want to do something fun
@limber helm
@limber helm
yup
can you tell something fun
with areduino
try something like this for fun
arduino
IK
XDDDDDD
it means 25:29
i have an arduino uno
please message if you want to tell me something
Dialect coach Erik Singer takes us on a tour of different accents across English-speaking North America. Erik and a host of other linguists and language experts (Nicole Holliday, Megan Figueroa, Sunn mโCheaux, and Kalina Newmark), take a look at some of the most interesting and distinct accents around the country.
Host: Erik Singer
Director...
@limber helm do you use windows
@limber helm how to setup a microphone
yes
yup
yes
my headphone has mic
how to go in settings
hehe
yes
14
yeah
i joined a week
ago
ok
wait for a sec
im back
We're a large, friendly community focused around the Python programming language. Our community is open to those who wish to learn the language, as well as those looking to help others.
!e
for x in range(5):
print(f'number {x}')
@wind raptor :white_check_mark: Your eval job has completed with return code 0.
001 | number 0
002 | number 1
003 | number 2
004 | number 3
005 | number 4
!e
print("helllo worl")
@jagged island :white_check_mark: Your eval job has completed with return code 0.
helllo worl
!voice @honest heart
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
kakistocracy
You can run Python in two main ways.
You can say "Here's a file/folder structure with my script, go away and run it.
Or you can say "Give me a thing where I can type in a line of code, press enter and have it run, giving me the result."
The latter has >>> as a prompt.
"Type your code here and I'll run it right away"
The latter is also known as the Python REPL.
Read Eval Print Loop.
Ah okay thanks ๐
Read code, evaluate code, print result, rinse/repeat.
@somber heath come in voice caht o
chat
@somber heath what did you just said
@somber heath
thankyou for coming
@somber heath hiii
could someone help me do my first bit of code or is there a channle to help with that>
?
questions was related to secret key and csrf token in django trying to understand them
Corey Schafer. Youtuber. Playlist for Python Beginners.
ok thanks
you can also try @wheat haven codewithharry
thanks for that
but code with harry language is hindi @wheat haven
nah its available in English as well
yes im english
@warped raft you new to python?
ok ok
im going to go and start learning about python so SEE YA LATER
@warped raft have you worked with django ?
nope
hello
hi
is there any chance any of you could help me with the insatllation
of python
if i call you
yup
yeah sure
who shall i call
anyone of us
There are installation instructions available at python.org.
i cant speak
you can share screen in voice channel
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Only by prior arrangement with moderator level users and above.
Certain IDEs might also have installation instructions specific to them.
Check their webpages for information, too.
yup. you can call me. and share your problem
thanh do you have any experience in web development coz i have lots of problems lmao
its really fun to talk about creating and designing something
I develop some apps using flask ๐ for serving APIs ๐
@autumn forge really that's cool man
hello
i can help you with machine learning
Pardon?
i heard you in the voice channel.....seeking some help
I'm afraid not.
ok no worries....๐
@zenith radish?
@zenith radish can you lower the quality a little bit my internet is a bit bad
enjoy your meal ๐
that is a bit odd
cinnamon toast?
@quasi condor why don't you run it in a virtual machine?
Interesting
spiky
@vocal abyss we generally chat here when in voice chat
hey verboof
hi
do you know the library opencv?
unfortunately not
xf
not sure what that's supposed to mean
nothing
k
if the problem is with opencv I doubt I can help
beauty is in the eye of the beholder
yes but this is kinda commercial
thats why i need to know if it is ยจsalableยจ
basically you control the whole pc without touching it
well, I'm not a salesman
and my approach to software has always been to release it for free
so I really don't think I'm the right person to ask
Just read one piece manga for 6 hours straight and am officially caught up
๐ nice
me too
10/10
Pretty
hello @lethal thunder
ok
@lethal thunder do you see my messages
ok
how are you doing
i am also fine
yes i am having a pretty good day
what did you said
use high contrast option
that looks good
!sharescrening
!voiceverify
i dont have a freaking mic
hello jck
jock
how are you doing @wet parcel
australia
@wet parcel australia
@wet parcel vietna
vieatnam
#voice-verification
i am from india
you guessed the wrong person
nice
@lethal thunder irsn
irns
iran
(764802555427029012)
@lethal thunder it sounds interesting
i dont have a mic
iam 14 years
ols
old
anyone use arduino
where
how are you doing @whole bear @rain jungle
what
hello
yeah
iam doing fime
Tehran
can you tell me some interesting projects
i made this abstacle avoiding car
ooo i see
where you use this supersonic sensor
ultrasonic
to detect walls
lol
sure
again
