#voice-chat-text-0

1 messages ยท Page 1034 of 1

terse terrace
#

i was just learning python and tried making a bmi calculator but had some issues with it

rugged tundra
terse terrace
#

yah bmi calculator

#

bmi calculator

name1 = "Anish"
height_m1 = 2
weight_kg1 = 90

name2 ="Anika"
height_m2 = 1.8
weight_kg2 = 70

name3 ="Ravi"
height_m3 = 2.5
weight_kg3 = 160

def bmi_calculator(name, height_m, weight_kg):
bmi = weight_kg / (height_m ** 2)
print("bmi: ")
print(bmi)
if bmi < 25:
return name + " is not overweight"
else:
return name + " is overweight"
result1 = bmi_calculator(name1, height_m1, weight_kg1)
result2 = bmi_calculator(name2, height_m2, weight_kg2)
result3 = bmi_calculator(name3, height_m3, weight_kg3)
print(result1)
print(result2)
print(result3)

#

this is the code

#

i had problems getting the results with it

#

ahhh no worries

whole bear
vocal isle
terse terrace
#

it works but the problem i had was when i changed the sequence from def bmi_calculator(name, height_m, weight_kg) to def bmi_calculator(name, weight_kg, height_m) the value also changes i wamted to know the reason behind this

vocal isle
#

you switched parameters in function, but didn't change them in function call

terse terrace
#

can u pls explain it in a little more detail

fresh python
#

@rugged root do you know any way to do SSO integration of social media, with Python? using Django Rest Framework like login and such authentication?

rugged root
#

I know it's possible but I've never done it myself. #web-development would be the folks to ask

fresh python
#

thank you man

whole bear
lavish rover
whole bear
lavish rover
wise cargoBOT
#

msym/linalg/matrix.py lines 5 to 10

def __init__(self, rows, cols, name="M", fstr='{}_{}{}'):
    self.rows = rows
    self.cols = cols
    self.name = name
    self.fstr = fstr
    self.data = [[Symbol(fstr.format(name, i, j)) for j in range(cols)] for i in range(rows)]```
rugged root
lavish rover
vernal bridge
molten pewter
rugged root
#

Wait what?

#

Looks like AMD is towing the line on it

#

I think

#

Hard to see

lavish rover
#
from contextlib import contextmanager

@contextmanager
def cleanup():
  yeild
  exiter(True)
rugged root
#

Also wonder how much bit flipping and other issues you have at that number

lavish rover
#
from contextlib import contextmanager

@contextmanager
def openFile(filename):
  f = open(filename)
  yeild f
  f.close()
ebon sandal
quasi condor
#

!docs contextlib.contextmanager

wise cargoBOT
#

@contextlib.contextmanager```
This function is a [decorator](https://docs.python.org/3/glossary.html#term-decorator) that can be used to define a factory function for [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statement context managers, without needing to create a class or separate `__enter__()` and `__exit__()` methods.

While many objects natively support use in with statements, sometimes a resource needs to be managed that isnโ€™t a context manager in its own right, and doesnโ€™t implement a `close()` method for use with `contextlib.closing`

An abstract example would be the following to ensure correct resource management:
lavish rover
#
class contextmanager:
  def __init__(self, func):
    self.func = func
  def __call__(self):
    self.iter = self.func()
    return self
  def __enter__(self):
    return next(self.iter)
  def __exit__(self, exception_type, exception_message, traceback):
    try:
      next(self.iter)
    except:
      pass

@contextmanager
def foo():
  print("hello")
  yield 5
  print("bye")

with foo() as x:
  print(x)
wise cargoBOT
#

@quasi condor :white_check_mark: Your eval job has completed with return code 0.

001 | hello
002 | 5
003 | bye
rugged root
whole bear
#

Right guys, Ill head out now. Catch y'all later!

lavish rover
#
type(prov) is NatureProvider:
#
isinstance(prov, NatureProvider)
#
        index = providers.index(
            sorted(
                zip(
                    [i.curr.initiative for i in providers],
                    [1, 0],
                    providers
                )
            )[-1][-1]
        )
#

!d max

wise cargoBOT
#
max

max(iterable, *[, key, default])``````py

max(arg1, arg2, *args[, key])```
Return the largest item in an iterable or the largest of two or more arguments.

If one positional argument is provided, it should be an [iterable](https://docs.python.org/3/glossary.html#term-iterable). The largest item in the iterable is returned. If two or more positional arguments are provided, the largest of the positional arguments is returned.

There are two optional keyword-only arguments. The *key* argument specifies a one-argument ordering function like that used for [`list.sort()`](https://docs.python.org/3/library/stdtypes.html#list.sort "list.sort"). The *default* argument specifies an object to return if the provided iterable is empty. If the iterable is empty and *default* is not provided, a [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError "ValueError") is raised.
lavish rover
#
max(lst, key=lambda provider: provider.curr.initiative)
quasi condor
#

!timeit

import random
from dataclasses import dataclass

@dataclass
class Test:
    a = random.randint(1,10)

a_random_list = [Test() for i in range(10)]
sorted(a_random_list, key=lambda x: x.a)
#

!timeit

import random
import operator
from dataclasses import dataclass

@dataclass
class Test:
    a = random.randint(1,10)

a_random_list = [Test() for i in range(10)]
sorted(a_random_list, key=operator.attrgetter("a"))
rugged root
#

I am the wrong

quasi condor
lavish rover
#
        if random.choices([True, False],
                          weights=[(enem.curr.full_hp / enem.curr.hp)
                                   * chance + catch_chance,
                                   enem.curr.full_hp], k=1)[0]:
quasi condor
#

uniqlo

#

it is "wireless"- mind unblown

lavish rover
#
Mustafa Quraish <mustafaq9@gmail.com>
quasi condor
rugged root
woeful salmon
#

@amber raptor ^ all the ways for the different shells (there's also activate.bat for bat)

lavish rover
#

@vernal bridge

try:
  main()
finally:
  exiter(True)
alpine path
lavish rover
#
sudo rm -rf ./bin/ *
#
function rm() {
  mv "$@" /trash/
}
vernal bridge
lavish rover
#
len([poke for poke in pokes if poke.identifier != "__fallback__"])
sum(poke.identifier != "__fallback__" for poke in pokes)
quasi condor
#

@woeful salmon why neovim over vim?

lavish rover
#

In this video I'll dive into some of the ways Git allows us to rewrite commit history. Specifically I cover: amending commits, rewording commit messages, deleting commits, reordering commits, squashing commits and splitting commits.

Check out my full writeup and reference guide here: https://www.themoderncoder.com/rewriting-git-history/

Or if ...

โ–ถ Play video
molten pewter
#

Doom vs Dune

lavish rover
#

carpainter?

#

/s

quasi condor
#

I appreciated it

vernal bridge
mild quartz
quasi condor
mild quartz
molten pewter
#

tracrRNA

high spear
#

sup guys

#

@molten pewter learn to aim your pee better

mild quartz
molten pewter
#

aneuploidy

mild quartz
quasi condor
#

the guy is Chinese - he got his bachelors from Fudan University

gritty shell
#

oh rip i can't speak ;-;

somber heath
wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

robust quiver
#

hello

#

anyone?

ebon sandal
#

hi

golden viper
#

Hi @magic obsidian

magic obsidian
#

Hi

quaint oyster
#

fun fact chmod 777, in binary, is chmod 111 111 111, referring to the permissions you're giving to the files

#

so chmod 744 would be chmod 111 100 100, meaning you're giving full rwx permissions to owner, and only r permissions to group and user

#

It's surprising how many very knowledgable people don't know that so

somber heath
#

!e py octal = "777" decimal = int(octal, base=8) binary = format(decimal, "b") print(octal) print(decimal) print(binary)

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | 777
002 | 511
003 | 111111111
quaint oyster
#

Opal octal is a base 8 system, so to convert to decimal you would just do this: (7*(8^2)) + (7*(8^1))+(7*(8^0))

#

similarly binary is a base two system, so 111 would be (1(2^2)) + (1(2^1))+(1*(2^0))

#

hence 7

#

so instead of memorizing the chmod codes or look them up everytime, it's easy to figure them out based on the permissions you want to give the files

foggy bridge
#

test

mossy cedar
#

oppo

#

th phone

sturdy panther
#

.!opalmist voice-verify-help

woeful salmon
sturdy panther
#

sets up recording for next time.

lyric moss
somber heath
#

!e ```py
def func_a():
for i in range(10000):
if i % 2 == 0:
yield i

def func_b():
result = []
for i in range(10000):
if i % 2 == 0:
result.append(i)
return result

for n in func_a():
if n == 100:
print("Found")
break

for n in func_b():
if n == 100:
print("Found")
break```

wise cargoBOT
#

@somber heath :white_check_mark: Your eval job has completed with return code 0.

001 | Found
002 | Found
somber heath
#

Terry Pratchett

#

Nation

#

Snuff
Going Postal

sturdy panther
#

@woeful salmon Do you use textual on Windows? Does it just work โ„ข๏ธ ?

lyric moss
#

Malcolm Gladwell

#

Outliers

woeful salmon
#

but it does seem to be working

sturdy panther
#

Mm. Thanks for confirming. There is something wrong with my setup then.

woeful salmon
#

and ran it

sturdy panther
#

Is this in Windows Terminal?

woeful salmon
#

yeah it is

#

let me test in the default window as well :x

sturdy panther
#

You can test with -m textual.app.

woeful salmon
# sturdy panther You can test with `-m textual.app`.

ok powershell 7 and windows terminal just works but powershell 7's default window still has artifacts left after closing app

windows powershell and command prompt both give blank screens when started and magically start working on resizing window but also leave behind artifacts after closing

sturdy panther
#

That fits my experience too.

woeful salmon
#

alacritty also works xD

#

i forgot i had that installed on windows

#

lol

sturdy panther
#

Thanks for testing!

#

Gotta go with non-default terminals then.

woeful salmon
#

np xD i was curious anyways tho

#

as textual does look convenient

sturdy panther
#

I will update this on the GitHub discussion. I can credit you for testing if I can know your username!

woeful salmon
#

it has this issue after closing the app

#

no blank screen but this still happens

#

so it doesn't clear the screen :x

sturdy panther
#

Oh. So buggy even on PowerShell 7.

lyric moss
#

samurai ra

#
def solution(string, ending):
    if ending is string:
        return True
    if ending in string[1:]:
        return True
    return False```
woeful salmon
sturdy panther
#

Ooh?

vernal bridge
#
def solution(string, ending):
  return ending == string[-len(ending):]
sturdy panther
#

Hope I did not spam everyone with my edits on GitHub!

woeful salmon
#

manually copying an example and adding import os; os.system("") to the top of the example

#

makes it work on cmd

#

and powershell

#

both 7 and windows

#

its a common fix for making ANSI work on windows idk why it makes textual work too but it does (i would've assumed them to already be doing a windows ANSI fix if they're using it :x)

woeful salmon
# sturdy panther Hope I did not spam everyone with my edits on GitHub!

try testing with ```py
import os; os.system("")
from textual.app import App
from textual.reactive import Reactive
from textual.widgets import Footer, Placeholder

class SmoothApp(App):
"""Demonstrates smooth animation. Press 'b' to see it in action."""

async def on_load(self) -> None:
    """Bind keys here."""
    await self.bind("b", "toggle_sidebar", "Toggle sidebar")
    await self.bind("q", "quit", "Quit")

show_bar = Reactive(False)

def watch_show_bar(self, show_bar: bool) -> None:
    """Called when show_bar changes."""
    self.bar.animate("layout_offset_x", 0 if show_bar else -40)

def action_toggle_sidebar(self) -> None:
    """Called when user hits 'b' key."""
    self.show_bar = not self.show_bar

async def on_mount(self) -> None:
    """Build layout here."""
    footer = Footer()
    self.bar = Placeholder(name="left")

    await self.view.dock(footer, edge="bottom")
    await self.view.dock(Placeholder(), Placeholder(), edge="top")
    await self.view.dock(self.bar, edge="left", size=40, z=1)

    self.bar.layout_offset_x = -40

    # self.set_timer(10, lambda: self.action("quit"))

SmoothApp.run(log="textual.log", log_verbosity=2)

lyric moss
#
    if not ending: return True
    return ending == string[-len(ending):]```
sturdy panther
vernal bridge
#
def solution(string, ending):
    return ending == string[-len(ending):] if ending else True
woeful salmon
#

i think colorama also somehow handles this when you do convert=True in initializing it

#

but idk how they've implemented the fix

lyric moss
sturdy panther
#

Another alternative is not ending or other_condition, I think.

woeful salmon
#

๐Ÿ‘‹ anyways i need to go now so cya later ig

whole bear
#

Oh?

#

String has endwith???

#

Didnt knew that

#

Nice

#

Noted

sturdy panther
#

Fairly new, I think.

whole bear
#

Cool

sturdy panther
somber heath
#

!d str.endswith

wise cargoBOT
#

str.endswith(suffix[, start[, end]])```
Return `True` if the string ends with the specified *suffix*, otherwise return `False`. *suffix* can also be a tuple of suffixes to look for. With optional *start*, test beginning at that position. With optional *end*, stop comparing at that position.
whole bear
#

Oh wait its not a string module thing Xdd

#

I trought it as from string module

#

Coooolllllll

#

I can finally spare the [:-3]

#

Lol

somber heath
#

Mm.

whole bear
#

If test[:-3] == "rld":

#

But now if test.endswith("rld")

#

Cooollll

sturdy panther
#

Ooh. endswith has always been there. I confused it with removesuffix.

whole bear
#

Removesuffix does what?

somber heath
#

!d str.removesuffix

wise cargoBOT
#

str.removesuffix(suffix, /)```
If the string ends with the *suffix* string and that *suffix* is not empty, return `string[:-len(suffix)]`. Otherwise, return a copy of the original string:

```py
>>> 'MiscTests'.removesuffix('Tests')
'Misc'
>>> 'TmpDirMixin'.removesuffix('Tests')
'TmpDirMixin'
```   New in version 3.9.
lyric moss
whole bear
#

Sooo removesuffix only removes the string at the end

#

If im correct

#

Usefull for pathing?

somber heath
#

I don't have an answer to that.

sturdy panther
#

The last time I wanted to use it, it was for parsing an program stdout.

#

Something like this.

prefix = line.removesuffix(static_ending)
if prefix == line:
    raise RuntimeError("Unexpected output from program.")
proud gull
#

Is python great for mobile app development?

#

i wanna create a mobile app and i only know python, what should I do? Should I learn the syntax of another language and with what programs/apps should i work with? If anybody has any suggestion tag me or dm me pls.

somber heath
#

Do check out Kivy and Beeware.

#

Web deployment may be a viable alternative to apps.

dusk quarry
#

Hi, where do I find a course that explains Python very well?

#

Please send me in DM

stray swan
#

hey why is everyone in the staff chat?

stuck furnace
stray swan
#

like amongus?

stuck furnace
#

It's every other week at 19:30 UTC, and we just discuss improvements to the server etc.

stray swan
#

emergency meeting?

#

๐Ÿ˜œ

stuck furnace
#

Right now we're talking about possibly changing a server rule.

woeful salmon
glass kite
#

@somber heath bruh

glass kite
toxic hawk
terse needle
#

[num for num in range(1, 10**38) if "9" in str(num)] still can't handle 10**38

lyric moss
terse needle
swift valley
#

shall i do live coding

terse needle
swift valley
#

I feel like there's definitely gonna be flood of people though haha

#

anyhow

#

I'll start in a few mins

terse needle
#

@swift valley I don't know quite know how hemlock likes to enforce the rules but we have the channel #764232549840846858

swift valley
#

@distant kestrel could you paste the traceback?

#

i shall move down

rugged root
distant kestrel
rugged root
distant kestrel
rugged root
#

py -m pip install selenium

#

@whole bear Probably better to ask your question here. More eyes on a problem means more people to see and help

whole bear
#

Ah okay!

#

So, pretty much I have this python bot which I have complied to an exe file. Every-time I open the exe file it flashes and then dissapears instantly. The bot does commands etc.

#

I just followed the instructions of the github.

#

It's a specific website bot

#

I may have an idea on how to resolve this issue without compling which isn't needed

rugged root
#

Good. Yeah, putting it into an exe, especially for a discord bot, isn't really the best practice

distant kestrel
whole bear
#

You'll need pip @distant kestrel

distant kestrel
#

i have installed it

whole bear
#

Ah!

ivory stump
#
from functools import lru_cache

@lru_cache
def sol(n):
    #print(n)
    if not n: return 0
    if n == 9: return 1

    l = int(math.log10(n))+1
    s = str(n)
    total=0

    #print('try',10**(l-1)-1,(int(s[0])-1))

    # total += sol(10**(l-1)-1)*int(s[0])
    total += (10**(l-1)-9**(l-1))*int(s[0])

    if s[0] == '9': total += int(s[1:])+1
    elif len(s)>1: total += sol(int(s[1:]))
    
    #print(f'total for {n} is {total}')
    return total
rugged root
#

Okay, Andersson. Go to File -> Settings -> Project: [project name here] -> Python Interpreter

#

Should look something like: @distant kestrel

peak copper
rugged root
#

There's a + sign that you'll need to click, and then look up selenium

distant kestrel
#

it works now

rugged root
#

Nice

rugged root
peak copper
#

Just realized that I didn't have windows power settings to adjust based on whether or not I'm charging.

rugged root
#

So like what, was it in high power mode both ways?

peak copper
peak copper
rugged root
#

Niiiiice

peak copper
#

Yay so much lost performance.

rugged root
#

Dude your memory consumption

peak copper
distant kestrel
rugged root
#

Hit Use Python 3.10 blah blah blah

distant kestrel
#

ah

woeful salmon
#

teaching memoization nice

peak copper
rugged root
#

Agreed

#

That's tough to do, though

#

Especially with JS. The best we can do there is minifying

woeful salmon
#

i have so much i hate here from the if and else with the next line in the same line and the 1000 files in a single folder

peak copper
woeful salmon
#

in the screenshare

peak copper
#

It took me a second to understand that first half.

rugged root
#

PDFs are huge

#

And aburden

#

They're going to take a lot of room regardless

woeful salmon
swift valley
#

I recently worked on a PureScript library that eliminated recursion errors for free

#

Had to do some very magical tricks but it ended up being super fast

somber heath
#

NetPBM.

#

One of several iterations of the format.

#

What I first used before I came across Pillow.

swift valley
#

In functional programming, continuation-passing style (CPS) is a style of programming in which control is passed explicitly in the form of a continuation. This is contrasted with direct style, which is the usual style of programming. Gerald Jay Sussman and Guy L. Steele, Jr. coined the phrase in AI Memo 349 (1975), which sets out the first versi...

rugged root
#

Oo, neat

somber heath
#

Pirate programming. Arrrgs.

swift valley
#

bottom two is my library

#

It's really fast

rugged root
#

Dude, host

#

WHyyyyyyyyy would you do that to yourself

#

Just looking at the example in the wiki

swift valley
#

A purescript core team member walked me through the approach ๐Ÿ˜„

#

Frankly I have a very surface level understanding of it but I'm confident my package already being used in production somewhere

#

@ivory stump why not use a dict at the global level then mutate that?

woeful salmon
#

@rugged root ๐Ÿ‘€ i hate that cuz finally runs after exceptions too which means it will run cleanup after SIGINT but it does not handle SIGTERM

mossy cedar
#

too complex

woeful salmon
#

it doesn't gracefully shutdown

woeful salmon
#

ye if you want graceful shutdown with your cleanup code properly running you need to use the signal module

#

to handle SIGTERM

rugged root
#

Another library I forgot existed

sour willow
#

its been two hours , yet stackoverflow is offline

woeful salmon
sour willow
#

๐Ÿ˜ข

sweet lodge
#

Oh hey Cheeki's talking

sour willow
#

im sad

#

WHYYYY

woeful salmon
#

@ivory stump you're moderator

#

moderate yourself

#

hemlock doesn't need to do it lol

dire pecan
#

ello @ivory stump

willow lichen
#

cheeky

sour willow
#

how is he replying soo quickly

willow lichen
#

he's cracked

sour willow
#

i just realized

#

how good golang is

#

i literally made a decent backend in less than an hour without prior experience

#

meanwhile

#

java spring boot :/

ivory stump
#
        ctx = inspect.stack()[1].code_context[0]
        if re.search(rf"^(.*?)(\bawait (.*?){coro.__name__}\b)(.*)$", ctx):
woeful salmon
#

@peak copper ???

#

^ this vs code with nothing opened

#

just the welcome screen

peak copper
woeful salmon
#

meanwhile my neovim which has almost all features vscode has at this point

woeful salmon
#

in task manager

willow lichen
#

If I paste a small piece of code could someone explain plz

#
class Client(object):

    @property
    def client(self) -> Tuple[cloudscraper.CloudScraper, str]:
        platforms: list = [
            'ios',
            'android',
            'windows',
            'darwin',
            'linux'
        ]

        session: cloudscraper.CloudScraper = cloudscraper.create_scraper(
            browser={
                'browser': 'chrome',
                'mobile': True,
                'platform': random.choice(platforms)
            }
        )
        ua = session.headers['User-Agent']
        return session, ua
#

What does the @property decorator really do here

#

I don't get the point of it

woeful salmon
#

i only see like 6 processes

#

its a feature of the PSFzf powershell module

#

uses fzf with Get-Process and kills the one i selected

ivory stump
willow lichen
#

yeah I don't get what's the point of it

#

why add it

ivory stump
#

in the latter case, its a little strangely done as it makes a new client each time so looks like it should be used only once

#

in which case why save the brackets instead of a constructor method

#

you might argue that it looks neater for threading purposes

willow lichen
#

well yeah, I just call it once further down in the script

client, ua = Client().client
peak copper
#

about:memory

sour willow
#

wow

#

that must be hella hard

woeful salmon
willow lichen
#

@ivory stump Like what's the benefit of the @property there, if I just remove it and call ```py
client, ua = Client().client()

ivory stump
#

i'd say literally none, at least in your case

woeful salmon
#

gives me lsp autocompletion, refactoring, snippets, auto generates getters , setters and all that for me

#
  • has a git client much better than vs code's built in
willow lichen
#

So what's with the threading

sour willow
#

i just use git cli

woeful salmon
#

me too but some things are easier to do from inside the editor

#

also its much faster as in Neogit which is the git client every action is 1 key away

#

rather than 1 command

ivory stump
willow lichen
#

oh

#

I still don't get the point of @property decorator

woeful salmon
# sour willow i just use git cli

an easy example scenario where the commandline would be slower
i wanna commit 5 out of the 10 changes i made from my current file, need to reset all the other changes and then change branch and then commit and push

Neogit and Gitsigns i press <leader>hs on each hunk of changes i wanna stage, then <leader>hr to reset other hunks of changes, <leader>ng to start neogit and then b to change branch and choose using j and k or fuzzy search branch name and C to commit and P to push :x

commandline git add --patch <- already more than half keypresses and now i have to interactively find the hunks and do all that crap

#

then type out all the full commands for git checkout <branch_name>, git commit, git reset --hard HEAD, git push origin HEAD

ivory stump
#

ima go now, cya

whole bear
#

hello

spiral halo
#

hi

mystic kernel
#

i have a doubt with object detectio

#

detection*

honest pier
amber raptor
rugged tundra
#

Looking ahead, there is a month remaining of my internship here at COMPANY..
Working here I have learned a lot about software development with the help of our team's developers.

I would like to discuss converting this into a full-time role as a Junior Backend Software Developer.
What do you think?

I look forward to continuing to work with our team here at COMPANY NAME until July 29th.

rugged tundra
whole bear
#

Do you know how I can fix this? bit confused.

rugged root
#

Can you link the repo? It's likely a library wasn't installed or something

whole bear
#

Of course, let me upload it

#

I'm new to learning coding so I ain't a pro or anything lmfao, I'm learning by re-writing etc

rugged root
#

No no, more talking about needing to see the code. Better to just upload the scripts themselves rather than a zip

whole bear
#

Ah alrigh!

unborn storm
# sour willow that must be hella hard

even if you don't want to take time making a good configuration, there is "space vim" (i don't like it but it exists) that is especially good for java

honest pier
#

@rugged tundra educated by tara westover

#

one of my favorite books ^

rugged root
wise cargoBOT
#

page/__init__.py lines 25 to 26

from acc import Account
from privacy import Privacy```
rugged root
#

It's the only thing I can think of off the top of my head

sweet lodge
whole bear
#

Alright, I'll try it

#

Like this?

rugged root
#

Yep

#

No idea if that'll work or not

sweet lodge
#

Should

whole bear
#

Getting this

sweet lodge
#

Did you create your own console?

whole bear
sweet lodge
#

Have you installed all the requirements?

whole bear
#

I have yeah

wise cargoBOT
#

util/console.py line 104

class Console(ChatLogger):```
sweet lodge
#

Yeah, they're all there

#

You'll just have to go through all the local imports and add the . to make them relative

whole bear
#

Alright

distant kestrel
#

How do I fix the "Cookies must be enabled to use GitHub." problem?
doing some work with the request module.


url = "https://github.com/session"

# disposable account is used so dont try anything :)

data = {
   "login": "EllieBellieFellie",
   "password": "@Abdddd",
}

r = requests.post(url, data=data)
print(r.text)
print(r.status_code)

https://i.imgur.com/tiNJEzW.png

sweet lodge
#

Don't try to scrape

rugged tundra
sweet lodge
sour willow
#

ayo

distant kestrel
sour willow
#

gordon ramsay is a developer

distant kestrel
sweet lodge
distant kestrel
#

trying to login

#

using python

#

and maybe do something afterward

sour willow
#

what are u trying to do??

distant kestrel
#

Say that i want to search for "Cute rabbits"

rugged root
#

What's the site? Ideally if they have an API it's better to use that

sweet lodge
#

They most definitely do

rugged root
#

Ah right right

#

Missed that

sour willow
distant kestrel
sour willow
#

they have a good documentation

distant kestrel
#

oh

rugged root
#

@vernal bridge I'll have to think about this, but I think #game-development would know more

#

Nothing I'm coming up with is good yet

distant kestrel
sour willow
#

the only use

#

of what u were doing is

#

deleting user accunts

#

or stealing passwords, emails, 2fa, mobile

#

wow vc is weird todday

#

lmao

rugged root
#

Not quite.

sour willow
#

everyone is talking randomly

#

its a mess imo

mossy cedar
rugged root
#

Selenium's original purpose is to do automated site testing

#

It's only later that they started to label themselves as a tool for scraping

sour willow
#

i used it to farm youtube views ๐Ÿ’€

rugged root
vernal bridge
lavish rover
sweet lodge
#

Rust

whole bear
#

Nothing is wroking aha

sweet lodge
#

Still no .

rugged root
sour willow
#

@rugged root you guys look channel by id?

sweet lodge
#

What do you look by?

sour willow
#

if you look by name

#

you can make a server template

#

and easy as that

sweet lodge
#

As opposed to the soft ID?

sour willow
#

or the bot can just make the channels

sweet lodge
rugged root
sour willow
#

all of them slash commands?

sweet lodge
sour willow
#

uh no

#

the bot

#

it uses slash commands, or also prefix

#

ye its a pain

sweet lodge
#

You can do it @rugged root !

#

Actually - @rugged root - Do you want to join my thing?

#

"let's build a x"

sour willow
#

haha

#

i don't see ruby

#

:god-bless:

#

ruby on rails sucks

#

7B devices use Java

#

Simcards

#

are among the most notable

#

Also, all major comapnies use Java

#

it has a very weird way of doing things, but you can get used to it

#

c# is microsoft java clone ripoff

#

syntax says it all

sweet lodge
#

Thoughts on this?

#

I remember someone saying not to do this because it's less readable

rugged root
#

Which lines specifically?

sour willow
#

good company

rugged root
#

The sum?

sour willow
#

santa knocks

sweet lodge
#

Found it

#

"no questions plz"

sweet lodge
#

You should use Rust

sour willow
#

@sweet lodge they don't even have a study for ruby on rails

halcyon yew
#

children are just expensive dlc

sour willow
#

jetbrain has no respect for ruby on rails

rugged root
#

I mean they should

#

They have an IDE for it

sour willow
#

they don't even accept it as a framework

#

for ruby?

sweet lodge
rugged root
#

Yeah

#

That

sour willow
#

what

sweet lodge
#

But why am I in trouble for this?

#

I saw the light and switched to Flask years ago

sour willow
#

it is easy to bully u

sweet lodge
#

๐Ÿ˜ข

sour willow
#

u are ruby fanboy

lavish rover
sweet lodge
#

You the aspiring developer shouldn't use it

#

I wonder what GitHub will look like when they leave RoR?

mossy cedar
#
class DCMotor:      
  def __init__(self, pin1, pin2, enable_pin, min_duty=750, max_duty=1023):
        self.pin1=pin1
        self.pin2=pin2
        self.enable_pin=enable_pin
        self.min_duty = min_duty
        self.max_duty = max_duty

  def forward(self,speed):
    self.speed = speed
    self.enable_pin.duty(self.duty_cycle(self.speed))
    self.pin1.value(0)
    self.pin2.value(1)
    
  def backwards(self, speed):
        self.speed = speed
        self.enable_pin.duty(self.duty_cycle(self.speed))
        self.pin1.value(1)
        self.pin2.value(0)

  def stop(self):
    self.enable_pin.duty(0)
    self.pin1.value(0)
    self.pin2.value(0)
    
  def duty_cycle(self, speed):
   if self.speed <= 0 or self.speed > 100:
        duty_cycle = 0
   else:
    duty_cycle = int(self.min_duty + (self.max_duty - self.min_duty)*((self.speed-1)/(100-1)))
    return duty_cycle
sour willow
mossy cedar
sour willow
#

i doubt they actually use ruby that much nowadays

#

i don't know how reliable go is in production

amber raptor
#

It's fine in production?

sour willow
#

but in a development sate , imo its among the best languages

#

its quite easy to learn the language, and its straightforward

#

unlike java per say

sweet lodge
sour willow
#

but yk, its a new community so

#

not that many import options

#

but very good documentation

#

if you were to use SQLx for example.

#

very powerful and well documented

amber raptor
#

it's just not the "Kubernetes is easy" that everyone makes it out to be

sour willow
#

this is quite bold

#

but you really don't need kubernetes imo

#

its just like redis

#

just adds complexity

sweet lodge
#

You take that back

sour willow
#

no

#

never

#

just write better code and don't use redis

#

problem solved

sweet lodge
#

On a more serious note - it's pretty neat
It's automated away almost my environment. It configures networking and DNS for me, it even gets a certificate from Let's Encrypt, and renews it, all on it's own
It runs multiple containers, handles all the ups and downs

#

Good code can't abstract away the need for caching

mossy cedar
vernal bridge
#

that's a bummer

whole bear
#

jeu

#

hey\

#

@distant kestrel

#

or @somber hearth

#

i neeed yhelp with my coe

vernal bridge
#

@rugged root u down for voice 0?

lavish rover
#
from pathlib import Path

SAVEDIR = Path.home() / ".local" / "share"
with open(SAVEDIR / "x.json", "w") as f:
  ...
#
with SAVEDIR:
  ...
#

!d runpy

wise cargoBOT
#

Source code: Lib/runpy.py

The runpy module is used to locate and run Python modules without importing them first. Its main use is to implement the -m command line switch that allows scripts to be located using the Python module namespace rather than the filesystem.

Note that this is not a sandbox module - all code is executed in the current process, and any side effects (such as cached imports of other modules) will remain in place after the functions have returned.

Furthermore, any functions and classes defined by the executed code are not guaranteed to work correctly after a runpy function has returned. If that limitation is not acceptable for a given use case, importlib is likely to be a more suitable choice than this module.

vernal bridge
#

?

sweet lodge
weak nymph
sweet lodge
#

Maybe

#

If I experience in what it's about

#

What's this about?

quasi condor
whole bear
#

okay

#

lemme re-joyn server

woeful salmon
#

if i said it in time

#

it resets the requirements if you rejoin

whole bear
#

oh shit

#

alr done : (

#

How can this be fixed? need help aha.

#

Hey!

#

I am unsure mate, if I was to get teamspeak could you possibly help? aha. I have no idea, I searched it up but I am confused

#

Teamviewer*

#

Ah! what could I use for remote access?

#

Oh sure!

#

I'll just upload it on replit

wind raptor
#

!paste

wise cargoBOT
#

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.

rugged root
#

On in a bit. Have to change some lightbulbs here in the office

whole bear
#

Did pip install web3

whole bear
#

I don't quite understand it ๐Ÿฅฒ

#

It's a web bot

#

Downloaded it

#

It's a bot with commands

#

I am using python3

#

Yeah

#

OH

#

Didn't see that lmfao

#

Got it from this

#

Trying to get this to work

#

It's a room bot

#

I kept getting errors so I was looking up and trying to resolve the issues

#

Nope

#

This is just a chat bot

#

With commands

#

Webclient socket

woeful salmon
#

pip uninstall web3 then cd to the project folder

#

run it and tell us the errors

#

so we can help you through them ๐Ÿ™‚

whole bear
#

Still getting the same error

woeful salmon
#

oh then 1 sec

#

try running pip install websocket-client requests colorama beautifulsoup4 simplejson

#

then try running again

whole bear
woeful salmon
#

ah it says it only supports python 2.7

whole bear
#

๐Ÿ˜ข

#

Anyway to change the code so it supports with the latest version of python3?

woeful salmon
#

he says it should work with python3 if you make some changes to client.py....

whole bear
#

True ๐Ÿ˜ข

#

Urgh

#

I just want a bot that can run commands and take action for this website, this whole process has been frustating

livid flame
#

have you ever voice with a programmer girl

rugged root
#

I mean... yes? We have plenty of users here that are programmers that also happen to be female

woeful salmon
#

also you need to fix the imports

rugged root
sweet lodge
#

Hi @rugged root

sweet lodge
#

I only spent like five minutes on it so far, so it's not very pretty

#

I'm curious to see if people think there should be more or less details

rugged root
somber heath
#

Mark Twain left school at 11 to become a typesetter's apprentice. I don't know what bell was ringing in my head. Might have been getting confused with Tom Sawyer or Huck Finn.

rugged root
somber heath
#

๐Ÿข
๐Ÿชต

tranquil shoal
#

bruh moment

#

anyone wana play valorant

#

or csgo

lavish rover
#

im down for some csgo

#

I'm like silver 1 though

tranquil shoal
somber heath
#

Unpaid internships are a class based gatekeeping system. If you can afford to not be paid while you get the training experience, then you have an inner track advantage over others who can't.

quasi condor
#

I'm currently in a "nutrition" seminar that is mandatory for work

somber heath
#

Or at least that's something I've read that made sense at the time.

quasi condor
#

and it is unbelievably painful

somber heath
#

Nootrition?

lavish rover
#

@rugged root a-noise you?

quasi condor
steady acorn
tranquil shoal
#

Can't wait for the new monogatari season :Dใ€€็ต‚็‰ฉ่ชž2ๆœŸๆฅฝใ—ใฟ๏ฝžโ™ช

I released a new mini album at the Spring M3 on April 29th in Japan! Check out the album crossfade in the link below! ไปŠๅนดใฎๆ˜ฅM3ใงใƒŸใƒ‹ใ‚ขใƒซใƒใƒ ๅ‡บใ—ใพใ—ใŸ๏ผใ‚ขใƒซใƒใƒ ใ‚ฏใƒญใ‚นใƒ•ใ‚งใƒผใƒ‰ใฏใ“ใกใ‚‰: https://www.youtube.com/watch?v=FNjoQE3inZw

โ€ปใ“ใฎๅ‹•็”ปใฏๅฃฐ็œŸไผผใงใฏใ‚ใ‚Šใพใ›ใ‚“ใ€‚

โœป ๅ‹•็”ปใฏใ“ใกใ‚‰ใ‹ใ‚‰ใŠๅ€Ÿใ‚Šใ—ใพใ—ใŸ / sm31119358

โœป Mix & Encode / OFFๆง˜ (mylist/5938950...

โ–ถ Play video
rugged root
#

!tvmute 927893607850061826 3d Given your past infraction history, I think you've earned a time out. When someone asks you to stop being disruptive with a noise and asks you to mute, the proper response isn't "Just ignore it." Please review our #rules and #code-of-conduct. If this kind of attitude happens again, you will lose voice permissions permanently.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied voice mute to @tranquil shoal until <t:1656082066:f> (2 days and 23 hours).

quasi condor
#

what's the past infraction history

#

don't leave us in the dark

tranquil shoal
#

bruh why did i get muted

#

i never got muted befoee

#

i sent this before also

quasi condor
#

do !user

#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

tranquil shoal
#

!user

wise cargoBOT
#

You are not allowed to use that command here. Please use the #bot-commands channel instead.

quasi condor
#

or don't

rugged root
#

#bot-commands

quasi condor
#

allow it in this channel!

#

this channel is so un-prone to spam, it should be fine

tranquil shoal
#

@rugged root :(

rugged root
#

Did you read the infraction message at all?

tranquil shoal
#

I did

#

I got muted for ignoring

rugged root
#

It was for the noise and refusing to mute for it

quasi condor
#

You can never get away from JavaScript - we just need to accept it

#

embrace the jjquery

tranquil shoal
#

SOMEONE WAS SNORING AT MY ROOM

rugged root
#

Several of us said your name. Multiple times.

tranquil shoal
#

idk how i missed it

#

no i wasn't trolling

mossy cedar
#
except ImportError:
  import ustruct as struct
_BME680_CHIPID = const(0x61)
_BME680_REG_CHIPID = const(0xD0)
_BME680_BME680_COEFF_ADDR1 = const(0x89)
_BME680_BME680_COEFF_ADDR2 = const(0xE1)
_BME680_BME680_RES_HEAT_0 = const(0x5A)
_BME680_BME680_GAS_WAIT_0 = const(0x64)
_BME680_REG_SOFTRESET = const(0xE0)
_BME680_REG_CTRL_GAS = const(0x71)
_BME680_REG_CTRL_HUM = const(0x72)
_BME280_REG_STATUS = const(0xF3)
_BME680_REG_CTRL_MEAS = const(0x74)
_BME680_REG_CONFIG = const(0x75)
_BME680_REG_PAGE_SELECT = const(0x73)
_BME680_REG_MEAS_STATUS = const(0x1D)
_BME680_REG_PDATA = const(0x1F)
_BME680_REG_TDATA = const(0x22)
_BME680_REG_HDATA = const(0x25)
_BME680_SAMPLERATES = (0, 1, 2, 4, 8, 16)
_BME680_FILTERSIZES = (0, 1, 3, 7, 15, 31, 63, 127)
_BME680_RUNGAS = const(0x10)
_LOOKUP_TABLE_1 = (2147483647.0, 2147483647.0, 2147483647.0, 2147483647.0, 2147483647.0,
  2126008810.0, 2147483647.0, 2130303777.0, 2147483647.0, 2147483647.0,
  2143188679.0, 2136746228.0, 2147483647.0, 2126008810.0, 2147483647.0,
  2147483647.0)
_LOOKUP_TABLE_2 = (4096000000.0, 2048000000.0, 1024000000.0, 512000000.0, 255744255.0, 127110228.0,
  64000000.0, 32258064.0, 16016016.0, 8000000.0, 4000000.0, 2000000.0, 1000000.0,
  500000.0, 250000.0, 125000.0)
#

halp meh whats happening here

quasi condor
#

no one can tell you what is happening, no

mental rock
#

hmm, can't hear anything... ok, back later

quasi condor
#

"religious people are more understanding" is definitely a bait

whole bear
#

No amount of guilt can change the past, and no amount of anxiety can change the future.
locked for 1 week

quasi condor
#

Unitarians and Episcopalians are usually pretty reasonable

whole bear
somber heath
molten pewter
quasi condor
#

We're getting UK census results within the next few weeks, and I'm excited to see "no religion" become 60+% of the population

whole bear
somber heath
#

Grounded?

#

Jibbers Crabst.

quasi condor
#

there's lots of lightning gods - but you've got to go to Blind Io for yer' thunder

molten pewter
dry onyx
#

Anyone knows what i need to do here ?

#

i tried setting pass here

molten pewter
rugged root
quasi condor
#

2?

#

recursion is not a loop

molten pewter
#

Includes: Jesus Christ Vampire Hunter, Life of Brian...

dry onyx
dense ibex
quasi condor
#

Basketball is the biggest sport in China

molten pewter
#

Also, South Park: Bigger, Longer, Uncut

rugged root
quasi condor
#

yeah, baseball is Japan

molten pewter
dry onyx
quasi condor
#

I remember seeing a map about this exact thing on Reddit the other day

molten pewter
#

it is apparently free on Tubi.

rugged root
# dry onyx Termius

I mean if you don't have a backup key or your passphrase key, then I don't know. Did you try the "Forgot passphrase?" button?

molten pewter
#

Jesus Christ Vampire Hunter is a 2001 Canadian horror parody film from Odessa Filmworks which deals with Jesus' modern-day struggle to protect the lesbians of Ottawa, Ontario, from vampires with the help of Mexican wrestler El Santo (based on El Santo, Enmascarado de Plata, and played by actor Jeff Moffet, who starred as El Santo in two other Od...

gray perch
#

@rugged root voice chats have built in chats by the way

#

u should look into it its cool

quasi condor
#

if you're holding your breath, it is emphatically not Scuba

#

because there is no self contained breathing apparatus

molten pewter
#

Odessa Filmworks.... not the same as Abraham Lincoln Vampire Hunter, Done by: Bazelevs Company, Dune Entertainment, and Tim Burton Productions

rugged root
gray perch
#

fair. You cant use them on phone im pretty sure

rugged root
somber heath
#

"Alright. So if you want to die, feel free to ignore everything I'm about to tell you. Just let me know so you can die on someone else's watch."

quasi condor
#

I think you know Lucky Catonally

dry onyx
molten pewter
#

Exotropia

#

4

rugged root
#

I'm unsure

dry onyx
wraith portal
#

Men.

#

woota

quasi condor
#

!charinfo \โ˜•

wise cargoBOT
quasi condor
#

!charinfo \๐Ÿต

wise cargoBOT
rugged root
wraith portal
#

love

#

it

#

hot

molten pewter
rugged root
mossy cedar
#

check this

#

it explains everything here

#

woops gotta go dinner see yall later

sour willow
quasi condor
#

The high tape-to-head speed created by the rotating head results in a far higher bandwidth than could be practically achieved with a stationary head. VHS tapes have approximately 3 MHz of video bandwidth and 400 kHz of chroma bandwidth, which is lower than the 6 MHz in NTSC broadcasts, and the 5 MHz in Type C videotape. The luminance (black and white) portion of the video is recorded as a frequency modulated, with a down-converted "color under" chroma (color) signal recorded directly at the baseband. Each helical track contains a single field ('even' or 'odd' field, equivalent to half a frame, see interlaced video) encoded as an analog

sour willow
#

what

hallow karma
#

hi

sour willow
#

out of a turn of events

#

ima start leaning django

#

im going to rewrite my codebase into django

#

i feel like its easier

somber heath
sour willow
#

also web5 is the future

steady acorn
#

brb

somber heath
#

There's opinions then there's champignons.

#

A weed is any plant that's growing where you don't want it to.

molten pewter
quasi condor
woeful salmon
#

@lavish rover

#

its not going to be free anymore soon

#

lmao

quasi condor
#

honestly seems worth 10$/m

lavish rover
#

I'd pay $10 a month

woeful salmon
#

nvm its gone

#

its already not free anymore

#

i'm not buying it

#

i'd much rather google than spend 10$ per month on this

rugged root
#

I'm guessing there would be a free tier

woeful salmon
#

nope

#

you buy or you don't

rugged root
#

Huh

#

Odd choice

lavish rover
#

it increases my productivity enough while coding for me to justify it

#

there's a free trial

#

not a free tier

woeful salmon
#

yeah trial but only 60 days and then you need to pay

#

so basically saying

lavish rover
#

yeah that's the point

woeful salmon
#

hey come get used to this convenient thing so you need to buy it later

quasi condor
#

This was openly going to be the case though

#

it was only ever a temporary beta

lavish rover
#

I don't blame them, it's very convenient and I don't imagine it was cheap building / maintaining it

quasi condor
#

and they said monetisation was coming pre-launch

woeful salmon
#

yeah xD i already uninstalled it honestly don't care enough

molten pewter
quasi condor
#

hydrogenating

rugged root
#

!e

print("babies" < "ham")
wise cargoBOT
#

@rugged root :white_check_mark: Your eval job has completed with return code 0.

True
quasi condor
zenith radish
woeful salmon
#

@quasi condorhttps://github.com/salt-die/nurses_2/tree/main/examples/rubiks

#

use this to get faster

rugged root
willow light
quasi condor
#

I need those 3 opinions

lavish rover
#
  1. Rust is better than C++
  2. LP's code is ass
  3. Pringles are superior to other chips
zenith radish
willow light
#
  1. Groovy is superior to Kotlin
quasi condor
#

you've been added

#

it is thoroughly uninteresting

willow light
#

!e

using DifferentialEquations
f(u,p,t) = 1.01*u
u0 = 1/2
tspan = (0.0,1.0)
prob = ODEProblem(f,u0,tspan)
sol = solve(prob, Tsit5(), reltol=1e-8, abstol=1e-8)

using Plots
plot(sol,linewidth=5,title="Solution to the linear ODE with a thick line",
     xaxis="Time (t)",yaxis="u(t) (in ฮผm)",label="My Thick Line!") # legend=false
plot!(sol.t, t->0.5*exp(1.01t),lw=3,ls=:dash,label="True Solution!")
wise cargoBOT
#

@willow light :x: Your eval job has completed with return code 1.

001 |   File "<string>", line 11
002 |     plot!(sol.t, t->0.5*exp(1.01t),lw=3,ls=:dash,label="True Solution!")
003 |                                ^
004 | SyntaxError: invalid decimal literal
willow light
#

hmmm

quasi condor
willow light
#

Oh this looks interesting

quasi condor
#

@zenith radish do you want to work on this? I'm fine with both doing the frontend and/or doing the backend by myself - my plan was to do the frontend today

quasi condor
#

!server

wise cargoBOT
#
Server Information

Created: <t:1483877013:R>
Roles: 96
Member status: status_online 62,777 status_offline 287,655

Members: 350,432

Helpers: 145
Moderation Team: 40
Admins: 14
Owners: 3
Contributors: 41
Leads: 9

Channels: 261

Category: 32
Forum: 1
News: 8
Staff: 65
Stage_Voice: 2
Text: 143
Voice: 10

quasi condor
#

!e print(4400/(287655+62777))

willow light
#

Just out of curiosity, does this work

wise cargoBOT
#

@quasi condor :white_check_mark: Your eval job has completed with return code 0.

0.012555930965208656
willow light
#

!e
print(4400//(287655+62777))

wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

0
quasi condor
#

!e

import math
print(dir(math))
wise cargoBOT
#

@quasi condor :white_check_mark: Your eval job has completed with return code 0.

['__doc__', '__file__', '__loader__', '__name__', '__package__', '__spec__', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atan2', 'atanh', 'ceil', 'comb', 'copysign', 'cos', 'cosh', 'degrees', 'dist', 'e', 'erf', 'erfc', 'exp', 'expm1', 'fabs', 'factorial', 'floor', 'fmod', 'frexp', 'fsum', 'gamma', 'gcd', 'hypot', 'inf', 'isclose', 'isfinite', 'isinf', 'isnan', 'isqrt', 'lcm', 'ldexp', 'lgamma', 'log', 'log10', 'log1p', 'log2', 'modf', 'nan', 'nextafter', 'perm', 'pi', 'pow', 'prod', 'radians', 'remainder', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'tau', 'trunc', 'ulp']
quasi condor
#

!docs math.gamma

wise cargoBOT
#

math.gamma(x)```
Return the [Gamma function](https://en.wikipedia.org/wiki/Gamma_function) at *x*.

New in version 3.2.
quasi condor
wise cargoBOT
#
Argument parsing error

Unexpected quote mark, '"', in non-quoted string

lavish rover
#

!e print(import("math").gamma(4))

wise cargoBOT
#

@lavish rover :white_check_mark: Your eval job has completed with return code 0.

6.0
quasi condor
#

!e print(iอŸmอŸpอŸoอŸrอŸtอŸ("math").gamma(4))

wise cargoBOT
#

@quasi condor :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'iอŸmอŸpอŸoอŸrอŸtอŸ' is not defined
lavish rover
#

!e

print(__import__("math").gamma(-1))
wise cargoBOT
#

@lavish rover :x: Your eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ValueError: math domain error
willow light
#

!e

from math import gamma, factorial

x = 5

print(f"Gamma(x) is {gamma(x)}, (x-1)! is {factorial(x - 1)}")
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

Gamma(x) is 24.0, (x-1)! is 24
willow light
#

!e

from math import gamma as ฮ“
from math import factorial

x = 6
print(f"ฮ“(x) is {ฮ“(x)}, (x-1)! = {factorial(x-1)}")
wise cargoBOT
#

@willow light :white_check_mark: Your eval job has completed with return code 0.

ฮ“(x) is 120.0, (x-1)! = 120
lavish rover
rugged root
#

Huh, fair enough

#

0.00000001 BTC

willow light
#

Huh, that's a thing

whole bear
#

hi!

frigid panther
#

what ya upto @rugged root

willow light
#

This is when I take issue with Fortran

lavish rover
#
ids = {d['name']:d['id'] for d in lst if d['name'] in names}
mossy cedar
amber raptor
#

Bald eagle scream!

faint ermine
#

20 billion parameter language model demo https://20b.eleuther.ai/

(its open source if you happen to have too much storage and gpu power)

spring shoal
#

I think the main limitation is the GPU memory that you need to load the model

willow light
sweet lodge
willow light
#

That was one of several captcha's I had to solve just to finish step 2 of 6 to sign up to make doctor appointments online.

#

screw this, I'm just using the phone

#

American Healthcare System right there.

mossy cedar
#

ig i'm the last one tonight ;-;

willow light
#

Right, this should work...despite it giving me a red squiggle

#

and yet....it don't work

bleak stirrup
willow light
bleak stirrup
woeful salmon
#

@lyric talon ๐Ÿ‘‹

lyric talon
willow light
sinful jay
#

mythroathurts.py

import pyttsx3
engine = pyttsx3.init()
engine.setProperty('rate', 120)
while True:
    engine.say(input())
    engine.runAndWait()
lavish rover
#

Have fun walking your dogs @wind raptor

#

Send cute dog pics

sinful jay
#

yes please

wind raptor
#

Will do!

molten pewter
quaint oyster
#

anyone wanna call

#

I like that filtration

#

might have gotten banned pulling a stunt like that

#

XD catwiggle

vivid palm
#

nah we just disable those ping permissions

#

but yes, please don't do that

dry onyx
wind raptor
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

wind raptor
#

@whole bear

whole bear
#

thats nice

#

mostly i hopped on cuz i got bored

#

learning for loops

#

having a bit of a struggle

#

nested loops aswell as for loops

#

kinda hard to grasp for my tiny mind

#

welp

#

pretty much also if i am given a exercise to something i cant really make the code out in my mind

#

pretty to use nested loops to type a messeage

#

no worries

#

i am very much used to it

wind raptor
#

@surreal wyvern

surreal wyvern
#

Ohh here i can chat๐Ÿ˜€

#

Actually I'm new to dc

whole bear
#

oh thats cool

#

first server you joined?

#

no i think he means discord

surreal wyvern
#

No but 2nd one

#

I mean discord yes !!

whole bear
#

thats nice

#

XD

#

i been in here for about like 3 years now

#

discord i mean

#

the server i pretty much just joined

#

i like the fact thats it so peaceful

surreal wyvern
surreal wyvern
whole bear
#

dont get used to it though as most servers can be pretty damn chaotic

vocal isle
#

who asked for help?

surreal wyvern
whole bear
#

mind if i ask you something chris

#

how long have been programming

#

pretty damn long compared to me so yeah

#

i started like 2 weeks

#

ago

surreal wyvern
#

I have a python code made with request and it's making request synchronslly .
But I want to do that with httpio
I mean asynchronousouly .
I'm not able to convert that code

surreal wyvern
whole bear
#

what includes the basics if you dont mind me asking

whole bear
vocal isle
whole bear
#

what the hell even is oop

vocal isle
#

yikes, you should know this abbr

whole bear
#

Meh i dont really care trying to take it at my own pace

#

since i have other stuff going on

#

yeah i agree

#

i am guessing with data types and methods it becomes muscle memory

#

am guessing flow is identation/spacing

#

yh i think i have that kinda covered

#

plus python is helpful

vocal isle
whole bear
#

uhhh i didnt think classes were that deep

#

tbh

#

cuz when i was reading a bit into it when i first started i was a using a whole like 6 hour video

#

and he kinda introduced me to classes but didnt go as deep as you just did

#

tbh i also dont think have the creativity right now

#

tbh i can understand learning new concepts but i struggle putting them in use

#

eh i can understand that thats why i aint worrying to much about it right now

wind raptor
#
my_list = [[1, 2, 3],
           [4, 5, 6],
           [7, 8, 9]]

for x in my_list:
    for y in x:
        print(y)
whole bear
#

ok

#

wouldnt this return with a error tho

#

as i did try this

#

i wish i could talk right now

#

hate it

agile pier
#

Hi

#

Bro I am not sound verified

whole bear
#

obv the first loop will grab the first value from the list which is 1

#

but then i get confused

agile pier
#

@wind raptor

#

M not verified by voice

whole bear
#

!voice

wise cargoBOT
#

Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

whole bear
#

go to this