#voice-chat-text-0
1 messages · Page 8 of 1
✅ @whole bear can now stream until <t:1661193534:f>.
Python adapter for PostgreSQL
@plain needle Sup?
Is it possible to read two jsons at once?
Yeah, you can
I like you
You all need to go to your Linux computers and run btmgmt name something-longer-than-hostname something-longer-than-hostname
It totally won't buffer overflow the Bluez stack and hose all Bluetooth on kernels 5.18 and 5.19
My bluetooth doesn't work now until I reboot 😦
@whole bear https://github.com/oracle/python-oracledb
kk
write it let me try
@rugged root
!stream 713431503610183760
✅ @whole bear can now stream until <t:1661197602:f>.
#include <iostream>
using namespace std;
string sike;
int main(){
cout << "enter the name of the most coolest person" << endl;
cin >> sike;
cout << sike << " is the most coolest person";
}
~182cm
so tall
1.49m
no way
1.5m
55
no way
its like kevin heart
98 kilos
Lower
85kilos
Lower
Yep
mean you are very skinny
Truth
It's mainly the meds
#career-advice @quaint oyster They'll be able to give you way better suggestions
is 79kg light for 5 11 ???????????????????
@whole bear is that michael Jackson in your pfp
I am very medicated
I am very dedicated
Interesting 🤔
aha
brb going to get some food 🍔
I'd just recommend using godbolt to decompile examples
vue + quasar
yeah haha nice
npm init vite@latest
/r/restofthefuckingowl
@viral laurel If you're wonder why you can't talk, check out the #voice-verification channel
That'll tell you what you need to know about our voice gate
ok tnx
@full basalt If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate
ok thank you
Apparently I don't exist
func(1:2, 2:3, 4:5)instead of func({1:2, 2:3, 4:5})
func({1:2}, {2:3}, {4:5})
You could do a horrific thing with __getitem__. I mean, just no.
no hacky code
0::Numpad0
!e ```py
class MyClass:
def getitem(self, *args):
print(args)
mc = MyClass()
mc[1:2, 2:3, 3:4]```I want to be clear...I think this is a terrible thing to be using to do this.
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
((slice(1, 2, None), slice(2, 3, None), slice(3, 4, None)),)
Oh huh
!e ```py
class MyClass:
def getitem(self, args):
print(args)
mc = MyClass()
mc[1:2, 2:3, 3:4]```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
(slice(1, 2, None), slice(2, 3, None), slice(3, 4, None))
!e print(slice(1.1, 2, 3))
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice(1.1, 2, 3)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice('a', <class 'bytes'>, (1+2j))
!e print(slice([1, 2, 3], {1: 2, 3: 4}))
@hollow bough :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice([1, 2, 3], {1: 2, 3: 4}, None)
!e ```py
class MyClass:
def getitem(self, args):
print(args)
mc = MyClass()
mc["a":"b":"c", 1:2:3]```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
(slice('a', 'b', 'c'), slice(1, 2, 3))
!e print(slice([1, 2, 3], {1: 2, 3: 4}, "asd"))
@hollow bough :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice([1, 2, 3], {1: 2, 3: 4}, 'asd')
!e print(slice(slice(1, 2, 3), {1: 2, 3: 4}, "asd"))
@hollow bough :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice(slice(1, 2, 3), {1: 2, 3: 4}, 'asd')
!e print(slice(slice(1, 2, 3), {1: 2, 3: 4}, "asd"))
@slow wigeon :white_check_mark: Your 3.11 eval job has completed with return code 0.
slice(slice(1, 2, 3), {1: 2, 3: 4}, 'asd')
[1, 2]
!e print( ({1: 3}, [1, 3]) )
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
({1: 3}, [1, 3])
!e
ham = (1, {2:3})
ham[1]["pork"] = "spam"
print(ham)
@rugged root :white_check_mark: Your 3.11 eval job has completed with return code 0.
(1, {2: 3, 'pork': 'spam'})
!e ```py
t = ([1, 2], 7)
try:
t[0].append(3)
except Exception as e:
print(e)
print(t)
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
([1, 2, 3], 7)
!e ```# Code to demonstrate use
of getitem() in python
class Test(object):
# This function prints the type
# of the object passed as well
# as the object item
def __getitem__(self, items):
print (type(items), items)
Driver code
test = Test()
test[5]
test[5:65:5]
test['GeeksforGeeks']
test[1, 'x', 10.0]
test['a':'z':2]
test[object()]```
@hollow bough :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | <class 'int'> 5
002 | <class 'slice'> slice(5, 65, 5)
003 | <class 'str'> GeeksforGeeks
004 | <class 'tuple'> (1, 'x', 10.0)
005 | <class 'slice'> slice('a', 'z', 2)
006 | <class 'object'> <object object at 0x7ffa2e390160>
!e ```py
print([][1:3:4])
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
[]
!e print([][:][::])
@hollow bough :white_check_mark: Your 3.11 eval job has completed with return code 0.
[]
!e print([][:][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::][::])
@faint ermine :white_check_mark: Your 3.11 eval job has completed with return code 0.
[]
!e print([][:[]])
@hollow bough :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 1, in <module>
003 | TypeError: slice indices must be integers or None or have an __index__ method
!e py t = 1, 2, 3 t[0] = 0
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 2, in <module>
003 | TypeError: 'tuple' object does not support item assignment
That?
Yeah must have been
Because I don't remember ever seeing anything complaining about mutating referred-to mutables through containing tuples.
!e print([][:][::][:::][::::][:::::])
@astral wave :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 1
002 | print([][:][::][:::][::::][:::::])
003 | ^
004 | SyntaxError: invalid syntax
t = 1, 2, 3
print(type(t))
tuple
!e ```py
t = 1, 2, 3
print(type(t))
@astral wave :white_check_mark: Your 3.11 eval job has completed with return code 0.
<class 'tuple'>
You don't always need the parentheses. You will when you're giving them as arguments to callables and some other situations
But when they're standalone like that, you can drop the parentheses.
!e print([int((((1 + 5**0.5) / 2)n - ((1 - 50.5) / 2)n) / 50.5) for n in range(1, 21)].index(144[,[,]]))
tuples and tuple unpacking is why a, b = b, a works
!e print([int((((1 + 5**0.5) / 2)n - ((1 - 50.5) / 2)n) / 50.5) for n in range(1, 21)].index(144[,1[,20]]))
!e ```py
t = 1, 2, 3
print(type(t))
print(t[0])
print(len(t))
!e
t = 1, 2, 3
print(type(t))
print(t[0])
print(len(t))
@whole bear im sorry for my reaction, i've had quite a few people ask that and immediately say rude comments after... not trying to excuse, just to explain. sorry
@frozen owl https://i.laundmo.com/tENe0/sOVIXITa24.png
I appreciate it, and that sounds pretty awful hearing weird rude comments from strangers so I understand
I am too sensitive sometimes so thanks for explaining
The Cyber Swiss Army Knife - a web app for encryption, encoding, compression and data analysis
Hello everyone
imgur is canonically pronounced image-er.
lol
im-gurlllll
juf
FileNotFoundError
[WinError 2] The system cannot find the file specified
at ~\AppData\Local\Programs\Python\Python39\lib\subprocess.py:1420 in _execute_child
1416│ sys.audit("subprocess.Popen", executable, args, cwd, env)
1417│
1418│ # Start the process
1419│ try:
→ 1420│ hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1421│ # no special security
1422│ None, None,
1423│ int(not close_fds),
1424│ creationflags,
-vvv
Development\Personal\apples-to-apples>poetry run -v
FileNotFoundError
[WinError 2] The system cannot find the file specified
at ~\AppData\Local\Programs\Python\Python39\lib\subprocess.py:1420 in _execute_child
1416│ sys.audit("subprocess.Popen", executable, args, cwd, env)
1417│
1418│ # Start the process
1419│ try:
→ 1420│ hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
1421│ # no special security
1422│ None, None,
1423│ int(not close_fds),
1424│ creationflags,
!stream 617911120694607923
✅ @peak copper can now stream until <t:1661268238:f>.
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py - --uninstall
Introduction Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
System requirements Poetry requires Python 2.7 or 3.5+. It is multi-platform and the goal is to make it work equally well on Windows, Linux and OSX.
Note...
(Invoke-WebRequest -Uri https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py -UseBasicParsing).Content | python -
!stream 617911120694607923
✅ @peak copper can now stream until <t:1661269627:f>.
Hello! Who can talk? What are the rules? Answer, please
@rugged root - Do you actually know specifically when this change occured?
They also added the binary for OpenSSH at the same time
I just don't know when it occurred, or what version to have people check for
If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate
Thank you for flying @rugged root Air
good bot
!source
pythondiscord.com - A Django and Bulma web application. - site/admin.py at main · python-discord/site
@finite violet #❓|how-to-get-help
um how do i get to talk in the vc?
Hello! If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about our voice gate
Thank you for flying @rugged root Air
Shit. Sorry for ping
ok thanks
:incoming_envelope: :ok_hand: applied mute to @median acorn until <t:1661274172:f> (10 minutes) (reason: duplicates rule: sent 4 duplicated messages in 10s).
The <@&831776746206265384> have been alerted for review.
('Name')
# later on
("Name")
Both represent a string, so they're interchangeable so long as you have matching opening and closing
I just gotten myself into college, taking AI&ML with heavy emphasis in python. So, i'm really new and i don't know much of the math of it, which is involved in it but i want to learn something within this week because i have a lot of free time this week. What should I try out now?
@rugged root i hope you don't mind the ping! I can't speak in the vc yet.
I don't mind! I encourage the pinging, as my attention is usually split
Reading your question now
okay okay!
I guess it depends. Are you specifically needing something neat for Python or maths?
i want to learn stuff about AI/ML but i don't want to get any math aspects of it because it might be confusing and i would rather learn it with my profs
By the time Python 4 comes around, the world will look very different
If I spend all this time learning, and then Python just goes and changes everything, I'm going to be pissed
Don't be like this. There will always be breaking changes
Python changes, the libraries change, your computer updates and a library that depended on a OS call that was changed is now broken...
The folks in #data-science-and-ml might have better suggestions than I can over, Eid
I asked. but uhm, they started using terms that i didn't really understand because i'm really new too this.
oop!
thanks so much!
okay, i read a bit of it and it is actually helpful. I shall give it a full read later tonight.
It explains what kind of math is used and so
@finite violet Which country is this ?
Where has chat gone?
Lost in the woods
But we can go back
(10, 10, 10)
!stream 254407989576859648
✅ @finite violet can now stream until <t:1661276035:f>.
@serene glade Your mic is still really sensitive
!eval
lst=[10,10,10]
tpl=(10,10,10)
print(f"{lst=}")
print(f"{tpl=}")
@sweet lodge :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | lst=[10, 10, 10]
002 | tpl=(10, 10, 10)
We're hearing the fan noise and typing
Sorry
It might be a setting in the discord
# D20 of Doom!
import random
# range of the values of a dice
min_val = 1
max_val = 20
roll_again = "Yes"
# loop
while roll_again == "Yes" or roll_again == "Y":
print("Rolling The Dice of Doom...")
print("The Values are :")
print(random.randint(min_val, max_val))
print(random.randint(min_val, max_val))
roll_again = input("Roll the Doom Again?")
What do you need help with?
it is rolling
When I go to roll again, it dose not work.
I will
you are actually entering a space
Put print(f"{roll_again=}") underneath your input(), and see what it tells you
That fixed it
Now to make a d4, d10, d12, and d100.
Oh and the D8
🎲
I need to think how to be able to pick the dice you want to use, And roll them all together and what each one rolls.
@rugged root is it an accounting question?
i can't even do t accounts @rugged root if only if you were in my business classes SADSADSAD ALL I KNOW IS THAT assets = revenue - expenses - liabilities or some shit
accounting just sucks imo my brain's too fast to even read numbers 😵💫
WAIT i think it's like something = assets + revenue - expenses - liabilities
dr and cr tf i forgot those crap bye bye not relevant anymore
not taking business ever again :D
BRB
[[1, 2, 3], [4, 5, 6], [7, 8, 0]]
ham = [["pork", "beef"], ["eggs", "spam"]]
i = 0
j = 0
while i < len(ham):
while j < len(ham[i]):
...
Back
is this guy sorting pixels lmofa
@finite violet Note that I made sure to do both i = 0 AND j = 0
are you taking each pixel ROW?
why did it stop half way across the image?
the top part is rly beautiful
# D20 of Doom!
import random
# range of the values of a dice
min_val = 1
max_val = 20
roll_again = "Yes"
# loop
while roll_again.strip() == "Yes" or roll_again == "Y":
print("_-------------_")
print("Rolling The d20")
print("_-------------_")
print(random.randint(min_val, max_val))
print(random.randint(min_val, max_val))
roll_again = input("Roll the D4 Again?")
import random
max_val = 4
roll_again = "Yy"
# loop
while roll_again.strip() == "Yy" or roll_again == "Yyy":
print("_-------------_")
print("Rolling The d4")
print("_-------------_")
print(random.randint(min_val, max_val))
print(random.randint(min_val, max_val))
roll_again = input("Roll the D4 Again?")
How do make the dice roll for each one being the d20 and the other d4?
how do you impliment a threshold? id imagine this is quite easy to impliment without that in python
cudnt u do this in like 20 lines in python with a image reader liek cv2?
this some music video level shit..
now animate!
quicksort?
very cool
I have no idea anything about rust
can you do it without objects?
in C
what prompted you to learn rust
is it easy to switch it from horizonal to verticle sort
u cud make it drip across the screen diagonally downards too ?
thats a real challenge
wish i had time to learn a new lang. off to go practise sql for sadge boring job interviews, cya!
people[0]```
people[0][0]
people[0] = ["John", "Smith"]
people[0][0] = "John"
people[0][1] = "Smith"
while i < len(people):
person = ""
while j < len(people[i]):
person += people[i][j]
j += 1
i += 1
def print_names2(people):
"""Print a list of people's names, which each person's name
is itself a list of names (first name, second name etc)
"""
ans = []
i = 0
j = 0
person = ""
while i < len(people):
while j < len(people[i]):
person += people[i][j]
j +=1
i += 1
print_names2([['John', 'Smith'], ['Mary', 'Keyes'], ['Jane', 'Doe']])
print("\n")
print_names2([['Bilbo', 'Baggins'], ['Gollum'], ['Tom', 'Bombadil'], ['Aragorn']])
Traceback (most recent call last):
File "prog.py", line 48, in <module>
print(people)
NameError: name 'people' is not defined
!stream 254407989576859648
✅ @finite violet can now stream until <t:1661282976:f>.
@finite violet try running your code here, i find it useful https://pythontutor.com
yeah
it lets you step through the code and shows you all the variables and objects
you need to call your function i think
try one of the test cases
they used to have their own interactive chat box thing
but i think it was a bit of a liability
Yeah they got rid of that and then started pointing them to us
print("How is everyone doing? :) ")
add rax, 5
mov rbx, rax
sub rcx, rbx
Would that code error?
Which code,m
The assembly you just did
Why?
Can you add to an empty registry like that? I mean obviously this isn't a full thing
!stream 928250196889075762
✅ @vast fog can now stream until <t:1661285892:f>.
%%raw(`
// look ma, regular JavaScript!
var message = "hello";
function greet(m) {
console.log(m)
}
`)
im a little confused, inline c in js?
Just proposed syntax for inline C in my language
The JS block was an example of how it's done in JS
oh lol i thought it was all for js i was confused lol
Sass
$font-stack: Helvetica, sans-serif
$primary-color: #333
body
font: 100% $font-stack
color: $primary-color
SCSS
$font-stack: Helvetica, sans-serif;
$primary-color: #333;
body {
font: 100% $font-stack;
color: $primary-color;
}
<h1 class='text', id='big'>text</h1>
<h2 class='text', id='h2'>h2 here</h2>
#big{
font-family: sans-serif, monospace;
}
I cannot really distinguish between . and # in css lol
https://docs.microsoft.com/en-us/learn/modules/csharp-choose-data-type/3-exercise-integral-types I've never seen them called integrals before. Figured it was always just integers
like your guess is correct but you kept guessing so it says "max number of attempts exceeded"
if yk the password, break <-- keyword in py to break loop
c#? idk why does c# still exist when ts
this sounds a bit sus-y
show us the code
import random
wantedDifficulty = ""
#difficulties
easy = 5
medium = 10
hard = 15
NumberThatWasGenerated = 0
def chooseDifficulty():
wantedDifficulty = input("Input Difficulty: ")
if wantedDifficulty in ("easy", "medium", "hard"):
if wantedDifficulty == "easy":
difficulty = easy
elif wantedDifficulty == "medium":
difficulty = medium
else:
difficulty = hard
else:
chooseDifficulty()
return difficulty
def generateNumber():
NumberThatWasGenerated = random.randint(0, )
print(NumberThatWasGenerated)
return NumberThatWasGenerated
chooseDifficulty()
generateNumber()
I understood maybe
import random
#difficulties
levels = {
"easy": 5,
"medium": 10,
"hard": 15
}
def chooseDifficulty():
valid = ("easy", "medium", "hard")
wantedDifficulty = ""
while wantedDifficulty not in valid:
wantedDifficulty = input("Input Difficulty: ")
return wantedDifficulty
def generateNumber(difficulty):
return random.randint(0, levels[difficulty])
difficulty = chooseDifficulty()
print(difficulty)
number_that_wasn_generated = generateNumber(difficulty)
print(number_that_wasn_generated)
Thanks alot (=
# All of the Dice
import random
# range of the values of a dice
min_val = 1
max_val = 20
roll_again = "Yes"
# loop
while roll_again.strip() == "Yes" or roll_again == "Y":
print("_-------------_")
print("Rolling The d20")
print("_-------------_")
print(random.randint(min_val, max_val))
print(random.randint(min_val, max_val))
roll_again = input("Roll the D20 Again?")
import random
min_val = 1
max_val = 4
roll_again = "Yy"
# loop
while roll_again.strip() == "Yy" or roll_again == "Yyy":
print("_-------------_")
print("Rolling The d4")
print("_-------------_")
print(random.randint(min_val, max_val))
print(random.randint(min_val, max_val))
roll_again = input("Roll the D4 Again?")
_-------------_
Rolling The d20
_-------------_
5
6
Roll the D20 Again?yy
_-------------_
Rolling The d4
_-------------_
3
1
Roll the D4 Again?y
Process finished with exit code 0
import random
def roll_dice(min_val, max_val):
print("_-------------_")
print(f"Rolling The d{max_val}")
print("_-------------_")
return random.randint(min_val, max_val)
dice_type = int(input("How many sides are on the dice?: "))
roll_count = int(input("How many times would you like to roll?: "))
for i in range(0, roll_count):
print(roll_dice(1, dice_type))
ye this is exactly what i was thinking
nice
import random
def roll_dice(min_val, max_val):
print("_-------------_")
print(f"Rolling The d{max_val}")
print("_-------------_")
return random.randint(min_val, max_val)
dice_config = {}
sides = input("What type of dice would you like to roll (comma sepatated)? ").split(",")
for dice_type in sides:
dice_config[dice_type] = int(input(f"How many time would you like to roll the {dice_type} sided dice?: "))
for key,value in dice_config.items():
for _ in range(0, value):
print(roll_dice(1, int(key)))
Hello <@&831776746206265384> i want to see @hollow bough code, give him permission to stream in channel for some time.
we r in #voice-chat-text-0
It seems like no mods are available to moderate voice chat at this time, so we will not be granting this permission. If a moderator joins voice chat you may request them at that time.
ohh okay ,thanks Darr!
@whole bear here
all_jsons = [v for v in driver.requests if 'https://twitter.com/i/api/1.1/dm/conversation/' in v.url]
for jso in all_jsons:
headers = jso.headers
url_json = jso.url
response_json = json.loads(requests.get(url=url_json,headers=headers).text)
for enttry in response_json['conversation_timeline']['entries']:
item = dict()
# print(enttry)
try:
item['expand_url'] = enttry['message']['message_data']['attachment']['tweet']['expanded_url']
item['date'] = parser.parse(enttry['message']['message_data']['attachment']['tweet']['status']['created_at'])
# item['msgDate']=enttry['conversation_timeline']
print(enttry['message']['message_data']['time'])
timevalstamp=str(enttry['message']['message_data']['time'])
print(twitter_time_converter(timevalstamp))
print(enttry['message']['message_data']['attachment']['tweet']['expanded_url'])
item['timeline']=twitter_time_converter(timevalstamp)
checkTime = timeLogic(twitter_time_converter(timevalstamp))
print(checkTime)
# if ((checkTime) > int(userTime)):
# print("time post greater it stoped !")
# break
# else:
twitt_urls.append(item)
except:
try:
if 'https' in enttry['message']['message_data']['text']:
item['expand_url'] = enttry['message']['message_data']['text']
item['date'] = ''
twitt_urls.append(item)
a=1
except:
continue
# pass
Hey @whole bear!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
Watch Funny Videos, Use Auto Job Applying Software, and Share and Learn New Information!
Hey anyone know how I enable and disable mic in javascript ?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Hi
How do I get unsuppressed?
thank you
Great, how Are you
good to hear
I am debating on a GUI framework for my software
how about you?
I think I will just use python and the dash library. since it's a tiny software for personal use
nice
Dash library?
"Written on top of Plotly.js and React.js, Dash is ideal for building and deploying data apps with customized user interfaces. It's particularly suited for anyone who works with data." I am not share what "Written on top" means


does that mean that using React.js and plotly.js directly is faster?
using java script
got it, thanks
Into the sun is RIGHT
What do you think, streamlit or dash?
Another one I haven't heard of. One sec
Streamlit seems pretty neat
Not sure what their licensing is
Ah, Apache 2.0
Yeah seems pretty cool
NICE
Nice talking with you
@somber heath You're right, I has the dumb
It's talking about them as integral types of numbers
Not specifically integers
from torchvision.models import resnet50, ResNet50_Weights
model = resnet50(weights=ResNet50_Weights.DEFAULT)
class ResNet(ImageClassificationBase):
def __init__(self):
super().__init__()
# Use a pretrained model
self.network = models.resnet50(pretrained=True)
# Replace last layer
num_ftrs = self.network.fc.in_features
self.network.fc = nn.Linear(num_ftrs, len(dataset.classes))
def forward(self, xb):
return torch.softmax(self.network(xb))
model = ResNet()
my code didn't work
@mild quartz
Hey @frozen owl!
You either uploaded a .txt file or entered a message that was too long. Please use our paste bin instead.
App builder in Python?
Are you cheating on Flet?
weights = torch.hub.load("pytorch/vision", "get_weight", weights="ResNet50_Weights.IMAGENET1K_V2")
Someone else mentioned it
Looked interesting
You should know better than to think better of me
requests.get([...], verify=False) # FIXME: fix the certificate
OMG THIS LOOKS RIGHT
Don't ignore your certificate
verify=False is a crutch not production code
Oh god, I just looked at the stack the Flet has
dead on arrival lol
Is that bad?
WAT
oh
Pglet
Build internal web apps quickly in the language you already know.
A lot of that is just random crap
Like, the Ruby is just config files for building for Apple devices
Dude for fuck's sake. Why is there still not like standard doc style
what do you think is a good val_loss and val_acc
I asked what he wants help with, he wants to "think about it"
Should we just take over?
Vote out Feo...
How do you spell it?
No. Remember when we tried to get a bunch of that done and it changed before we could get a good grip on it
Okay, Streamlit's stack makes way more sense to me
make for Python
Oh hi Preocts
🤮
BTW - What would you use?
Just learn Typescript
Also - As an SRE, you'd be able to really appreciate one of their best security features -
When you execute their Python library, it automatically downloads and executes a Flutter binary without telling you
Just awesome
@mild quartz that's common tbh indian dudes hit on girls by indian names on discord .. lol 😂
Nice name tho @mild quartz
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
@whole bear
hii kush , is Anokhi a Girl?
Nah
Very nah
I see you're an SRE too
PFFT
I put the Stab in Stability
Who needs proof?
._.'
I'm the weirdo that goes kube c t l
Little trigger happy today?
Never work on Jenkins
I never liked Jenkins
spent three hours in an emergency rebuild of all of our containers yesterday
Turns out the devs never actually patched the log4j issue, and lied about it
oooh nice
Also Jenkins is cancer. One of the reasons I am excited our team is being added to the GitHub Enterprise pilot program, and with that is GitHub Actions.
GitHub Enterprise... pilot?
It's already out
I have it
Well - I have "enterprise" not "enterprise", but same difference
As if Finance corporations are with the times. We're part of the project of very slowly transitioning from git hosted on our mainframes to GitHub.
on.... a mainframe?
Sirens clip taken from Bewilderness DVD. Filmed at Grand Theatre, Swansea in 2000
Yup
I hate printers
Just on file storage? You create a folder for a remote and push to it?
Or do you have a different service?
Those would be better options than what we did
hello @somber heath Namste 🙏
Honestly, we don't know how Computer, Keyboard and Mouse put up with him all day. See more at http://www.collegehumor.com/originals
Printim, printer.
As to you.
remote into the server that hosts the code and directly change it. Version control was introduced to the company in 2017
that's significantly higher caliber than what I used on my old printer
Printers vex us all, but there are limits.
In my experience, a glock is quite sufficient to stop a compromised network-connected printer
The PBX?
We do VOIP here
On hold music: hardbass house music with Life of Boris on vocals
Cloudflare
recently twillo had data bridge be aware!
Here's a really well known website that uses Cloudflare: https://www.cloudflare.com/hp/
wat
ya
How is that relevant?
wat
Even plex had a data breach. At this point I'm going to the farmers' market with a bunch of hard drives and putting up a sign: "Selling my own damn data"
@willow light
Mines better, it's ::1
Well, the only site I own is currently located at localhost:8000
Proof verbal agreements have no legal standing: https://www.boston.com/news/local-news/2022/08/17/river-dave-banned-from-new-hampshire-site-moves-to-maine/
Lidstone didn't always show up for court, and he was in and out of jail as he resisted the injunction. Read more at Boston.com.
So we can sue you
Thanks
Going to hacks you now
my website is localhost
"Legal agreements are not binding." Good to know.
Mine too
verbal agreement is not a agreement specially on discord !
This whole discussion is /r/BadLegalAdvice in a nutshell
You guys are stealing my website ‼️‼️‼️
no your website is 127.0.0.1
At least I still have ::1
https://www.law.cornell.edu/wex/contract fwiw but i know he won't read it
.wa s how do I sue this guy?
Failed to get response.
damn
A deeper look into the german hacking laws to see what kind of actions are illegal. There are some surprising edge cases and lots of room for debates.
Obviously this video is not legal advice.
I forgot about StGB 263a "Computer Fraud" in this video. It's also interesting to speculate about interpretations, however it focuses on financial losse...
@whole bear
😴
Actually doesn't apply if you're a terrorist
All hail the Patriot Act
plaintiff has to prove their case
take the fifth?
You know, I'm surprised that no one has made a meme of like "Yeah my Mac has an M1" and they just have an M1 Garand taped to it
I can't be the first one to think of that
lol
a couple of years ago, i proudly put macbook sticker on my google pixel. a dissonance at its best lol
@lean urchin Sorry the stupid "Requested Message" system is messing with my DMs. What's your question?
Best of both worlds. The customization of an Android with the swag of an iPhone
#swagforlife
all you need is 100 amazon accounts for 100 years of life & use free tier forever
hello dude
is it ok if i ask for some help into this serv
i am kinda shy to talk within this serv
i dont wanna impose myself
Of course, what's your question?
scan it with your eye it's safe
sso
@dusky mortar do you play league ???
what's that rocket league?
league of legends
nope
have you ever played it?
This bugs me
int[] data = new int[3];
Like the first type part, it should be able to just know. For C# for context
But I guess I could just use var
Still annoys me
Go check out the original video, it's awesome.
Not an ad for Tom Scott's channel, by the way
Source:
https://youtu.be/L-x8DYTOv7w
The reverse version is so fking funny
Thanks to Alton Towers https://altontowers.com ■ AD: 👨💻 NordVPN's best deal is here: https://nordvpn.com/tomscottplus - with a 30-day money-back guarantee! ■ Pull down this description for a thorough video FAQ!
❓❓ FAQ (has spoilers)
🎢 Haven't you done stuff like this before?
My phobia's specifically about rollercoasters: the clack-clack of t...
This was a much tougher challenge than I thought. ■ AD: 📦 50% off your first monthly KiwiCo crate: https://kiwico.com/tomscott ■ Thanks to Chris Bullzini! https://www.bullzinifamily.com/
My main channel: https://www.youtube.com/tomscottgo
I'm at https://www.tomscott.com
Twitter: https://twitter.com/tomscott
Instagram: https://instagram.com/tom...
ok i am back
can i explain to you in voc
or you prefere here with everyone
This is the instrumental to 130 Moon Men by Jake Chudnow from The Moon EP (2008), the one Vsauce uses in his videos.
Video by Metro At Midnight:
https://www.youtube.com/watch?v=e3JUD4RXj7c
Subscribe to Metro At Midnight on YouTube:
https://www.youtube.com/channel/UCk0ffaYsp1pZNCxZK1DEmLg
Follow Jake on Soundcloud:
https://soundcloud.com/jakec...
I don't get it
in voice chat
u need to have voice verify role in order to talk
oh really
NileRed tutorials are getting scary
Subscribe now to join the NileGreen family: https://www.youtube.com/channel/UCP2cNcC-2pqDRCFeFO4JLLw
Go follow the real NileRed: https://www.youtube.com/user/TheRedNile
maybe one day he'll make sulfuric acid and make nitric acid or sodium metal. Perhaps vaporize gold in mercury and scary piranha solution. I ...
how can i ?
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
-music instantly cuts- Yeah they are wrong. -music cuts back in twice as loud-
NileGreen is the best video
how can i be verified ?
@Voice Verified
This role allows people to speak in our voice channels.
To get this role send the command !voice-verify in #voice-verification. Please note that there are requirements to getting this role. They are listed in the channel where you run the command.
!voice
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
Can any user look up how much activity left to get voice verification?
Yep!
If you go to the #bot-commands channel and run !user you should be able to see your current message count
Note that messages sent in #bot-commands don't count towards the total
you cant unmute me just so i can explain rlly quick
Oh, except these 2 Channels, all other counts?
Can you just write a quick gist of what the issue is?
mmmmm
quick question: can we see how much time we spent on discord?
@lean urchin Maybe ppl in vc can help and give solution, share SS/file/error.
okok
On Discord itself and how long you've been a part of the server yeah. But there is no way to view how long total in VC
There's too many issues with regards to lost events and stuff to make that count actually work
But !user in #bot-commands will tell you how old your account is and how long you've been in the server
so basically i am trying to make a bot, a script who click for me on specified coordinates OR on specified colors. i dont know how to create an input for the bot to when he see this specific colors he CLICKS on it
to explain in league of legends
u launch a queue for a certain time
then you need to accept the match
to annonce your champ
ban a champ
and then select and confirm your champ
Hey @lean urchin!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
yes just did it's been 2 years
Neat
how about you?
#league copilot
import os, sys, subprocess, PIL
import pyautogui, time
subprocess.call(['C:\Riot Games\Riot Client\RiotClientServices.exe', '--launch-product=league_of_legends', '--launch-patchline=live'])
#PlayColor = 0
#while (ImageGrab.grab().load()[440, 201] != ):
time.sleep(5)
pyautogui.click(440, 201)#play
time.sleep(2.8)
pyautogui.click(395, 706)#draft pick
time.sleep(2.5)
pyautogui.click(851, 849)#confirm
time.sleep(2.8)
pyautogui.click(975, 842)#select first role
time.sleep(0.6)
pyautogui.click(938, 784)#select mid ||||| pyautogui.click(1093, 776) select supp
time.sleep(1)
pyautogui.click(1011, 837)#select second role
time.sleep(0.6)
pyautogui.click(871, 788)#select top
time.sleep(0.6)
pyautogui.click(847, 845)#click on find match
import pyautogui,time
while True:
pyautogui.click(960,723)
time.sleep(5)
pyautogui.click(960, 723)#accept match
#pyautogui.click(, )#in champ select
sys.exit()
this is the code
and i want to replace this
so all you want to do is with clicks and and press keys right?
League's terms of service doesn't allow automation like this, so it's not something we can/will assist with. Sorry
sorry we can't assist
i dont want my champ to play for me
by definition it is a script
Using any unauthorized third party programs, including mods, hacks, cheats, scripts, bots, trainers and automation programs that interact with the Riot Services in any way, for any purpose, including any unauthorized third party programs that intercept, emulate, or redirect any communication relating to the Riot Services and any unauthorized third party programs that collect info about the Riot Services by reading areas of memory used by the Riot Services to store info;
just want to pick a champ for me
You still can't automate it
You cannot automate period, conversation over.
Just because you can doesn't mean you should.
WHY I SHOULD NOT
i doesnt hurts anyone
no, "any unauthorized third party programs" regardless of whether if it's cheating or not, by definition you are not allowed
... that interact with the Riot Services in any way, for any purpose...
just tell me why
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
it doesnt hurt anyone LITERALLY
since it's not allowed for any purpose, it is against tos so we can't help
COOL
sure
only if it doesn't violate rule 5
like a click on something and it gives me the good code to use it
wtf is that glassware?
there are plenty of online tools that do that for you
can you give one pls
open MS Paint then
What OS
windows
PowerToys has a color picker that's quite nice
80% traffic is to google analytics and fonts
and last question how can i make click it on this specified color pls
and you would be guys handsome
like whats the formula
We're not assisting with this
Nice try
We're not falling for that one
where you want it to click ? like browser or something
if you want to automate browser you can use selenium
how do I run python script from javascript?
you want to run in browser?
You can’t
@icy bobcat https://pyscript.net/ this might be what you need
Run Python code in your HTML.
on a specified color
<link rel="stylesheet" href="path/to/pyscript.css" />
<script defer src="path/to/pyscript.js"></script>
what you want to do with that ?
localhost
This is nightmare fuel
fast api
or the underlying https://pyodide.org/en/stable/
Just make a REST API in Python, and use fetch()
You can use this to send value to python and that will apply it's function and returns it
Or use gRPC lol
you can use node js on local system const spawn = require("child_process").spawn; const pythonProcess = spawn('python',["path/to/script.py", arg1, arg2, ...]);
to fetch images from websites and display them in wallpaper engine which uses HTML.
Just do it in JavaScript lol
You can do that using javascript
or even with css and html
I also want to purge old images every 10-20 minutes.
sudo rm -rf /
the python script does all that, I just want to run it with javascript instead of let's say with an external program like authotkey.
Make an API
That can be done by fast api
nah bud, use gRPC. we're all masochists lol
What's the wallpaper engine? You've got me curious
Wallpaper Engine enables you to use live wallpapers on your Windows desktop. Various types of animated wallpapers are supported, including 3D and 2D animations, websites, videos and even certain applications. Choose an existing wallpaper or create your own and share it on the Steam Workshop! In addition to that, you can use the free Wallpaper En...
$3.99
501109
@cunning monolith will it run python properly or print it in the console?
It should return images as per as your request
The GOES-R Series (a collaboration of NOAA and NASA) is the Western Hemisphere’s most advanced weather-monitoring satellite system.
I am currently making it to making api call to cloud
If you need help in setting that up you can message whenever I am free I will message you
Great!
I like Rust until I try to solve systems of linear differential equations with it
Can I DM you?
sure
@willow light this is basically why i know what a ABI is: https://fasterthanli.me/articles/proc-macro-support-in-rust-analyzer-for-nightly-rustc-versions
talks about how macro analysis was fixed
I'm groot
wheeze-
cat. burrito.
yes
im out
I need 50 messages to speak in voice chat but I am a shy person and would not speak anyway
Any other people with the same problem ?
Watch Funny Videos, Use Auto Job Applying Software, and Share and Learn New Information!
@vernal bridge
@bright coyote took me 1884 ms
milliseconds ?
seconds
1,884 seconds xD
@vernal bridge its "COMPUTATIONAL IDENTIFICATION OF TRANSLATION INITIATION FACTOR 1 AS A POTENTIAL DRUG TARGET OF THE PATHOGENIC BACTERIA CLOSTRIDIUM BOTULINUM"
@dusky crown here
No, anywhere on the server
Then the genral server chat is enough i guess
@dusky crown Try sending more texts, it says you still have less than 50
@rugged root gimme 5 minutes, the vaccuum is on
okay
!stream 589497499174043800
✅ @scenic wind can now stream until <t:1661373857:f>.
"Cows getting married with a crab acting as the minister"
"A programmer looking confused at a computer made of yams"
A cowboy sits around a campfire sharing a meal with a friendly bear, 35mm lens, f1.4 aperture, 1/1000 shutter speed
"a fish with sunglasses drinking from a coconut racing against a snake trying to untangle itself on a foot race"
"A fiddler crab playing a fiddle on a roof"
"A sloth wearing a beret, smoking a cigarette in the rain, in the style of Johannes Vermeer"
"a cow with sunglasses eating a darth vader-shaped apple"
"Hiphop album cover from the mid 1990's for a group called Hackerman, where every member is a computer hacker wearing a ski mask."
"futuristic techno aged neon colored database computer room in ancient egypt structure room, photorealistic"
"homer simpson as drawn by picasso"
HAKaRMAN
this was another lol
a
PyImGui
MeGaGiGaGon streams live on Twitch! Check out their videos, sign up to chat, and join their community.
#voice-chat-text-0 message "I want to be clear...I think this is a terrible thing to be using to do this."
hello can u herar me
TYPING TEST PROJECT
menign
so how to show you
do you have chrome
yes
i can describe it
it is a proejct in which we get an endless stream of words
and with in 60 sec we have to type as much words as we can
yes
ok
let me test it out
you have linux
first linux user to meet me
Hi
hello
what projects would u folks recommend to get a good overview of the stdlib ?
!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.
!resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
See what takes your fancy.
I'd look at the modules, see what they're used for and go from there.
It's well worth reading through the docs for functools and itertools, and making sure you understand what everything does - and when you don't understand, you just mess around with it in IPython til you do
here?
Thanks for the tip. I'll explore them that way.👍
can you help me with code???
its really spesific
When i use py -to-exe
print(os.popen("echo no"))
stops working, but it works when it is py
os.open
thankyou
this code works in py but not in exe
im making a "cmd" just to learn some of the os lib
acxedentaly tuned of the power switch on my power cord
@unique holly
waht
to do what
dont use python lol
Huh?
.
no
waht did u say?
@somber heath
time.process_time() → float
Return the value (in fractional seconds) of the sum of the system and user CPU time of the current process. It does not include time elapsed during sleep. It is process-wide by definition. The reference point of the returned value is undefined, so that only the difference between the results of two calls is valid.
@frozen owl https://docs.python.org/3/library/timeit.html
I think this could do the job as well
print("Hello World!")
mood = input("How are you doing? ")
yo
while true:
print("what the hell are you doing?")
keyboardInterrupt
print("Saying hello in an inordinate and creative way! :) ")
!voice @steep verge
Voice verification
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
class Rarity:
COMMON = 'COMMON'
RARE = 'RARE'
EPIC = 'EPIC'
LEGENDARY = 'LEGENDARY'
MYTHIC = 'MYTHIC'
class Race:
def __init__(self, name, rarity):
self.name = name
self.rarity = rarity
TABLE = {
Rarity.COMMON: {
'percentage': 40,
'list': [
Races.HUMAN,
Races.DEMON
]
},
Rarity.RARE: {
'precentage': 35,
'list': [
Races.TROLL
]
}
class Races:
HUMAN = Race(
name='Human',
rarity=Rarity.COMMON
)
DEMON = Race(
name='Demon',
rarity=Rarity.COMMON
)
TROLL = Race(
name='Troll',
rarity=Rarity.RARE
)
@willow lynx
@warped raft
hey
can irun this code
run
or do i need something anything else
ok
hello
@broken harbor
where did you define races.humn
class Races:
HUMAN = Race(
name='Human',
rarity=Rarity.COMMON
)
DEMON = Race(
name='Demon',
rarity=Rarity.COMMON
)
TROLL = Race(
name='Troll',
rarity=Rarity.RARE
)
here
@willow lynx :x: Your 3.11 eval job has completed with return code 1.
001 | File "<string>", line 14
002 | TABLE = {
003 | ^
004 | SyntaxError: '{' was never closed
!e !e ```py
class Rarity:
COMMON = 'COMMON'
RARE = 'RARE'
EPIC = 'EPIC'
LEGENDARY = 'LEGENDARY'
MYTHIC = 'MYTHIC'
class Race:
def init(self, name, rarity):
self.name = name
self.rarity = rarity
TABLE = {
Rarity.COMMON: {
'percentage': 40,
'list': [
Races.HUMAN,
Races.DEMON
]
},
Rarity.RARE: {
'precentage': 35,
'list': [
Races.TROLL
]
}
}
class Races:
HUMAN = Race(
name='Human',
rarity=Rarity.COMMON
)
DEMON = Race(
name='Demon',
rarity=Rarity.COMMON
)
TROLL = Race(
name='Troll',
rarity=Rarity.RARE
)
@willow lynx :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "<string>", line 9, in <module>
003 | File "<string>", line 18, in Race
004 | NameError: name 'Races' is not defined
class Rarity:
COMMON = 'COMMON'
RARE = 'RARE'
EPIC = 'EPIC'
LEGENDARY = 'LEGENDARY'
MYTHIC = 'MYTHIC'
class Race:
def init(self, name, rarity):
self.name = name
self.rarity = rarity
TABLE = {
Rarity.COMMON: {
'percentage': 40,
'list': [
Races.HUMAN,
Races.DEMON
]
},
Rarity.RARE: {
'precentage': 35,
'list': [
Races.TROLL
]
}
}
class Races:
HUMAN = Race(
name='Human',
rarity=Rarity.COMMON
)
DEMON = Race(
name='Demon',
rarity=Rarity.COMMON
)
TROLL = Race(
name='Troll',
rarity=Rarity.RARE
)
sorry
X, Y, Z, T, C Width, height, depth, temporal, colour.
think of dimensions as attributes
tzyxc
A lion named Daniel.
Dan de lion.
.
...
...
...
...
... ... ...
... ... ...
... ... ... etc
!d itertools
This module implements a number of iterator building blocks inspired by constructs from APL, Haskell, and SML. Each has been recast in a form suitable for Python.
The module standardizes a core set of fast, memory efficient tools that are useful by themselves or in combination. Together, they form an “iterator algebra” making it possible to construct specialized tools succinctly and efficiently in pure Python.
For instance, SML provides a tabulation tool: tabulate(f) which produces a sequence f(0), f(1), .... The same effect can be achieved in Python by combining map() and count() to form map(f, count()).
!e ```py
import itertools
result = [" ".join(v) for v in itertools.product("-.", repeat=3)]
print(*result, sep=" | ")
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
- - - | - - . | - . - | - . . | . - - | . - . | . . - | . . .
(a & b) or (c & d)
if 1 and 2 or 3 and 4:
so it's either or either 1& 2 or 3 &4
===
cya
@somber heath Hey
bruh
thanksss
thanks
start with the second one
okay!
(skip to 14.2)
so start from 14.2?
read the intro
then skip 14.1
since i think it is too hard
14.2 is what you were asking about
gtg meeting
!e ```python
print("Hello World!")
@steel lodge :white_check_mark: Your 3.10 eval job has completed with return code 0.
Hello World!
The Bayraktar TB2 is a medium-altitude long-endurance (MALE) unmanned combat aerial vehicle (UCAV) capable of remotely controlled or autonomous flight operations. It is manufactured by the Turkish company Baykar Makina Sanayi ve Ticaret A.Ş., primarily for the Turkish Armed Forces. The aircraft are monitored and controlled by an aircrew in a gro...
@rugged root where are you
I want to bait you about breaking rules
1. Follow the Python Discord Code of Conduct.
View over 4000 Corporate ESG ratings and data. Sustainalytics’ high-quality insights lets you compare corporate sustainability performance.
def game():
return 642
score = game()
with open('highscore.txt') as f:
highscoreStr = f.read()
if highscoreStr == " ":
with open('highscore.txt', 'w') as f:
f.write(str(score))
elif (highscoreStr)<score :
with open('highscore.txt' , 'w') as f:
f.write(str(score))
