#voice-chat-text-0

1 messages ยท Page 229 of 1

vocal basin
#

raspberry pi is ARM

#

whereas that one is x86-64

#

it still needs to be open enough for air to circulate

#

brb

rapid chasm
#

For each game you are playing, you randomly gain between 15 and 25 XP.

vocal basin
#

is 10.6K representing XP?

#

Experience
10.6K (L44)

#

you can also rebrand Level to something

#

(custom game level)

eager thorn
#
 Experience 
10.6k (Lvl 44)

#

maybe

#

just a thought.

rapid chasm
vocal basin
#

two main bots I maintain only support prefix commands

mystic lily
#
import math

def level_for_xp(xp, base=2, scaling_factor=50):
    return int(math.log(xp / scaling_factor, base))

# Example usage:
xp_amount = 400
resulting_level = level_for_xp(xp_amount)
print(f"{xp_amount} XP corresponds to Level {resulting_level}")
vocal basin
#

2 might be a bit too high

#

I'd prefer something around 1.072 -- 10 levels for doubling

mystic lily
#
[Running] python -u "c:\Users\pc\Desktop\stock_price_prediction_application-master\app.py"
100 XP corresponds to Level 1

[Done] exited with code=0 in 0.066 seconds

[Running] python -u "c:\Users\pc\Desktop\stock_price_prediction_application-master\app.py"
300 XP corresponds to Level 2

[Done] exited with code=0 in 0.068 seconds

[Running] python -u "c:\Users\pc\Desktop\stock_price_prediction_application-master\app.py"
400 XP corresponds to Level 3

[Done] exited with code=0 in 0.067 seconds
vocal basin
#

!e

import math

def level_for_xp(xp, base=2, scaling_factor=50):
    return int(math.log(xp / scaling_factor, base))

xp_amount = 40000000000000000000000000000000000
resulting_level = level_for_xp(xp_amount)
print(f"{xp_amount} XP corresponds to Level {resulting_level}")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

40000000000000000000000000000000000 XP corresponds to Level 109
vocal basin
#

as far as I've seen, quadratic seems more widespread than exponential

stuck furnace
#

Bit tinny

obsidian dragon
#

@vocal basin can you express that as math

vocal basin
#

TeX?

obsidian dragon
#

I have an intrrest in logrimic function for xp

vocal basin
#

base and scaling_factor just influence how the output gets transformed linearly

math.log(xp / scaling_factor, base)
math.log(xp / scaling_factor) / math.log(base)
(math.log(xp) - math.log(scaling_factor)) / math.log(base)
#

scaling_factor defines where 0 is in the source space
and base defines the scale

obsidian dragon
stuck furnace
#

The logarithm is just like, the number of times you need to repeatedly divide a number by the base to get to 1.

vocal basin
#

how wide is !e output allowed to be?

stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

vocal basin
#

I have 160 in plotting code I have saved

#

!e

print(*("".join(" #"[abs(__import__('math').log(x/80+2)+y*.05)<.05]for x in range(-80,81))for y in range(-25, 5)),sep="\n")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 |                                                                                                                                                                  
002 |                                                                                                                                                                  
003 |                                                                                                                                                                  
004 |                                                                                                                                                      ############
005 |                                                                                                                                           #######################
006 |                                                                                                                                ######################     
... (truncated - too long, too many lines)

Full output: https://paste.pythondiscord.com/4H3DMUQZ7WPDNWXEFQMWJSZYS4

vocal basin
#

it failed, I guess

#

(but full output looks fine)

willow gate
#

@vocal basin chess?

vocal basin
#

wait, responding for work

willow gate
rapid chasm
#

!e

import math

def level_for_xp(xp, base=1.072, scaling_factor=50):
    return int(math.log(xp / scaling_factor, base))

xp_amount = 10600
resulting_level = level_for_xp(xp_amount)
print(f"{xp_amount} XP corresponds to Level {resulting_level}")
wise cargoBOT
#

@rapid chasm :white_check_mark: Your 3.12 eval job has completed with return code 0.

10600 XP corresponds to Level 77
vocal basin
#

base: output scaling
scaling_factor: input scaling

stuck furnace
#

It might be easier to reason about: py int(factor * math.log10(xp)) math.log10(xp) is just the number of digits in xp.

mystic lily
#

!e

import math

def level_for_xp(xp, base=1.5, scaling_factor=50):
    return int(math.log(xp / scaling_factor, base))

for x in range(100, 10000, 25):
    xp_amount = x
    resulting_level = level_for_xp(xp_amount)
    print(f"{xp_amount} XP corresponds to Level {resulting_level}")
``
wise cargoBOT
#

@mystic lily :x: Your 3.12 eval job has completed with return code 1.

001 |   File "/home/main.py", line 1
002 |     `
003 |     ^
004 | SyntaxError: invalid syntax
vocal basin
mystic lily
#

!e```
import math

def level_for_xp(xp, base=1.5, scaling_factor=50):
return int(math.log(xp / scaling_factor, base))

for x in range(100, 10000, 25):
xp_amount = x
resulting_level = level_for_xp(xp_amount)
print(f"{xp_amount} XP corresponds to Level {resulting_level}")

wise cargoBOT
#

@mystic lily :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 100 XP corresponds to Level 1
002 | 125 XP corresponds to Level 2
003 | 150 XP corresponds to Level 2
004 | 175 XP corresponds to Level 3
005 | 200 XP corresponds to Level 3
006 | 225 XP corresponds to Level 3
007 | 250 XP corresponds to Level 3
008 | 275 XP corresponds to Level 4
009 | 300 XP corresponds to Level 4
010 | 325 XP corresponds to Level 4
011 | 350 XP corresponds to Level 4
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/OIXGLTRVNMQDMBJSL6OYT4CZWQ

willow gate
vocal basin
#

5|0? 1|0? 3|2?

mystic lily
#

!e


def level_for_xp(xp, base=1.1, scaling_factor=100):
    return int(math.log(xp / scaling_factor, base))

for x in range(100, 10000, 15):
    xp_amount = x
    resulting_level = level_for_xp(xp_amount)
    print(f"{xp_amount} XP corresponds to Level {resulting_level}")
wise cargoBOT
#

@mystic lily :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 100 XP corresponds to Level 0
002 | 115 XP corresponds to Level 1
003 | 130 XP corresponds to Level 2
004 | 145 XP corresponds to Level 3
005 | 160 XP corresponds to Level 4
006 | 175 XP corresponds to Level 5
007 | 190 XP corresponds to Level 6
008 | 205 XP corresponds to Level 7
009 | 220 XP corresponds to Level 8
010 | 235 XP corresponds to Level 8
011 | 250 XP corresponds to Level 9
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/2NQRZOGNO2MIRYQ2HJOKNWRKWE

willow gate
stuck furnace
vocal basin
willow gate
#

one min

stuck furnace
rapid chasm
#
xp_increase = random.randint(15, 20)

await collection.bulk_write([
    UpdateMany(
        {
            "discord_id": {"$in": team_member_ids},
            "last_activity": {"$lt": time_threshold}
        },
        {
            "$set": {"last_activity": discord.utils.utcnow()},
            "$inc": {"games_played": 1, "experience": xp_increase}
        }
    )
])
#

!stats

vocal basin
#

there are reasons to store

#

specifically if you decide to change the algorithm

#

so that levels don't get reset

#

print(level)

rapid chasm
#

!e

def experience_to_level(experience):
    # Define the base experience needed for the first level
    base_exp = 100

    # Calculate the level based on the experience
    level = 0
    while experience >= base_exp:
        level += 1
        experience -= base_exp

        # Increase the base experience for the next level
        base_exp *= 1.1

    return level

experience = 25
level = experience_to_level(experience)
print(level)
wise cargoBOT
#

@rapid chasm :white_check_mark: Your 3.12 eval job has completed with return code 0.

0
rapid chasm
#

!e

def experience_to_level(experience):
    # Define the base experience needed for the first level
    base_exp = 50

    # Calculate the level based on the experience
    level = 0
    while experience >= base_exp:
        level += 1
        experience -= base_exp

        # Increase the base experience for the next level
        base_exp *= 1.072

    return level

experience = 100
level = experience_to_level(experience)
print(level)
#

!e

def experience_to_level(experience):
    # Define the base experience needed for the first level
    base_exp = 35

    # Calculate the level based on the experience
    level = 0
    while experience >= base_exp:
        level += 1
        experience -= base_exp

        # Increase the base experience for the next level
        base_exp *= 1.072

    return level

experience = 200
level = experience_to_level(experience)
print(level)
wise cargoBOT
#

@rapid chasm :white_check_mark: Your 3.12 eval job has completed with return code 0.

4
vocal basin
#

it may also be a mix of quadratic and exponential

modern yacht
#

@vocal basin finally figured it out
there is a special dunder method called __name__ for each cls object
doing something like this returns you and empty object with the same attributes as the class instance itself

def create_dummy_class(cls, **kwargs):
      dummy = cls.__name__(cls)
      print(dummy.__dict__)  # will be initally empty dict
      dummy.update(**kwargs)  # from x10x4n solution
      return dummy

the update function from @warm jackal

def update(self, **kwargs):
  approved_attrs = set('id', 'foo', 'bar', 'baz') # Not 100% sure if I remember how to instantiate a set correctly
  update_values = {
    attr_name: attr_value,
    for attr_name, attr_value
    in **kwargs # Or `kwargs.items()`
    if attr_name in approved_attrs
  }
  for name, value in update_values.items():
    setattr(self, name, value)

hope this helps @vocal basin

rapid chasm
#

!e

def experience_to_level(experience):
    # Define the base experience needed for the first level
    base_exp = 50

    # Calculate the level based on the experience
    level = 0
    while experience >= base_exp:
        level += 1
        experience -= base_exp

        # Increase the base experience for the next level
        base_exp *= 1.072

    return level

level = experience_to_level(600)
print(level)
wise cargoBOT
#

@rapid chasm :white_check_mark: Your 3.12 eval job has completed with return code 0.

8
vocal basin
#

Elo rating is a logarithm of performance, in some sense

#

(difference corresponds to the logarithm of score ratio)

#

200 points is 1:2, iirc
(I might be way off on that)

#

((I was off on that))

#

* 120 points

vocal basin
scarlet halo
#

:O

modern yacht
warped raft
#

hello everyone

#

how are you guys doing

rugged root
#

I am Hemlock zombie

woeful salmon
rugged root
#

Wait that's STILL in early access?

woeful salmon
#

yes and there's still nothing you can do in the game other than die

rugged root
#

Kind of like real life

woeful salmon
#

the game's description literally asks you, how will you die this time?

#

xD

wind raptor
#

base_exp * level + 10 * level

wise cargoBOT
#

@rapid chasm :white_check_mark: Your 3.12 eval job has completed with return code 0.

4
rapid chasm
#

15-25 random for each game

vocal basin
#

gambling journey

sour willow
#

Sup

#

AF server muted?

vocal basin
#

it shows all without speaking priveleges as server muted

sour willow
vocal basin
#

such a broken update

vocal basin
vocal basin
wind raptor
woeful salmon
#

brb my windows explorer bugged out while i was in fullscreen in vm ๐Ÿ˜ฆ gotta restart

#

ducky_concerned what? i just rejoined

#

@rapid chasm did you say you own a warehouse? i'm a bit confused

rugged root
#

Warehouse worker rather than owner

stuck sky
#

xD

rapid chasm
#
    # Create a new Embed object
    embed = discord.Embed(title=f"{summoner_name} #{tagline}'s stats", timestamp=datetime.datetime.now(), color=discord.Color.blue())

    # Add the relevant information to the Embed object using the add_field method
    embed.add_field(name="Level", value=f'{summoner_level}', inline=True)
    embed.add_field(name="Solo/DuoQ", value=f'{tier_and_rank}', inline=True)
    embed.add_field(name="Estimated Elo", value=f'{elo_rating}', inline=True)
    if winrate:
        embed.add_field(name="Win/Loss", value=f'{wins}/{losses}', inline=True)
        embed.add_field(name="Win Rate", value=f'{winrate}%', inline=True)
    embed.add_field(name="Experience", value=f'{experience} (L{level})', inline=True)```
wind raptor
#

\200b

rapid chasm
#

embed.add_field(name="Server Stats", value=f'\200b', inline=false)

wind raptor
#

\u200B

rapid chasm
#

embed.add_field(name="Server Stats", value='\u200b', inline=false) NameError: name 'false' is not defined

wind raptor
rapid chasm
wind raptor
#

embed.add_field(name='\u200b', value='\u200b', inline=False)

rapid chasm
#
    # Add the relevant information to the Embed object using the add_field method
    embed.add_field(name="Level", value=f'{summoner_level}', inline=True)
    embed.add_field(name="Solo/DuoQ", value=f'{tier_and_rank}', inline=True)
    embed.add_field(name="Estimated Elo", value=f'{elo_rating}', inline=True)
    if winrate:
        embed.add_field(name="Win/Loss", value=f'{wins}/{losses}', inline=True)
        embed.add_field(name="Win Rate", value=f'{winrate}%', inline=True)
    embed.add_field(name='\u200b', value='\u200b', inline=False)
    embed.add_field(name="Server Stats", value=f'\u200b', inline=False)
    embed.add_field(name="Level", value=f'{level}', inline=False)
    embed.add_field(name="Experience", value=f'{experience}', inline=False)```
wind raptor
#
    embed.add_field(name='\u200b', value='\u200b', inline=False)
    embed.add_field(name="Server:", value=f'\u200b', inline=False)
    embed.add_field(name="Level", value=f'{level}', inline=True)
    embed.add_field(name="Experience", value=f'{experience}', inline=True)
whole bear
#

yo

#

can i talk in vc?

eager thorn
#

!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
#

lmao

eager thorn
#

still working on embeds i see.

round stratus
#

is there a way to see my progress on getting voice perms?

eager thorn
#

How's it coming along @rapid chasm

round stratus
#

!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.

stark river
#

@woeful salmon

rugged root
round stratus
#

thanks man

woeful salmon
molten pewter
ionic jasper
#

hey supp guys

molten pewter
ionic jasper
#

im very new to programming and thought of learning python whats ur opinion?

#

also is cs50 worth it?

stark river
#

no opinion

wind raptor
ionic jasper
woeful salmon
#

pithink cs50 is a nice introduction yes but it does not focus on a single language and goes through a bunch so it might also help you decide whether you wanna start with a low level language like c or a high level langauge like python

woeful salmon
#

oh ๐Ÿ˜ฎ

whole bear
molten pewter
#

pootie?

whole bear
#

Pookie

#

Whatever

eager thorn
#

u gotta be careful with them embeds, other wise might end up sending one that has a avatar like this hemlock

rugged root
#

The implication is that you're gassy

ionic jasper
molten pewter
#

As in "Pootie tang" ?

whole bear
#

I need help is anyone available in dms?

woeful salmon
#

i still think the general one is good since it goes through both python and c

i think starting with either have their own benifits
starting with c comes with a more fundamental understanding of how your programs work but it takes alot more code to write more basic stuff so it can also feel boring at start

starting with python gives you a really fast start as the language itself is easy and safe, and it lets you build out programs with gui, etc with very little code and understanding of how the thing works so it can be great to keep you motivated early on

wind raptor
molten pewter
eager thorn
ionic jasper
woeful salmon
woeful salmon
stark river
#

this is why you never ask for opinions from devs

woeful salmon
# ionic jasper is it neccesary to really start with scratch

either ways its perfectly good to start with python and do the python cs50 that @wind raptor is talking about, but i do recommend later when you're proficient at python i recommend also learning a lower level language as it will give you a deeper understanding of how your programs work :3

ionic jasper
ionic jasper
woeful salmon
wind raptor
#

Yeah, you do have to pay for it I think

#

But I wouldn't

#

It's not going to mean anything to an employer

ionic jasper
vernal root
ionic jasper
wind raptor
#

it's an intro cert though, it doesn't really mean that you know the languages well

woeful salmon
#

and the base concepts are the same in each language just the words / syntax for it is what defers

ionic jasper
wind raptor
#

I could be wrong, but I don't think CS50 holds a lot of weight.

#

I only put certs on my linkedIn anyways, not on my resume.

#

It's hard enough to keep it to one page

woeful salmon
#

then since you're already doing a C course you can just learn C first ig

ionic jasper
woeful salmon
stark river
#

what a time to live in

stark river
#

@woeful salmon is that bumblebee status bar?

#

i made an audio module for them ๐Ÿซถ

potent carbon
#

What distro you using @woeful salmon

#

Loll

coral tusk
#

Hi

#

What did you ask?

#

@whole bear how are you?

eager thorn
#

heard my name?

coral tusk
#

Doing good

eager thorn
#

doing alright, tired. dreading work today.

#

been working like 60+ hours this week.

coral tusk
#

Mayor charizard, how good are you with python

#

0? Haha

#

Actually?

#

Oh damn

rugged root
coral tusk
#

Zed

molten pewter
#

Vertex, CCH ProSystem fx Tac

#

Sovos?

coral tusk
#

What you guys doing

#

Using sfml as a graphical driver?

coral tusk
#

I'd say chromebooks are less unlocked than windows/macs

#

Google sheets just work, thats it

#

Chromebooks are less usable than regular pcs

#

All in all chromebooks are a nightmare

rugged root
#

For an accounting firm especially

#

Be back later, my brain is too hazy right now

forest pagoda
#

@woeful salmon ever tried hyprland?

#

Oh, nah ๐Ÿ˜„

#

Oh, okay. I switched from i3 to hyprland recently myself

#

Cool

#

XD

signal gust
#

hey do you guys know how to install pygame in VS code?

eager thorn
forest pagoda
#

XD

eager thorn
#

!pypi pygame

wise cargoBOT
rapid chasm
#

@wind raptor@rugged root@mystic lily

forest pagoda
#

If I'm allowed to say, the second one is a little out of place, no?

#

I mean the color selection

#

Yea

#

No no. Just the colors

#

Um

#

How about a lighter shade of grey?

#

Yes, the green is fine. Just replace the light green. Say #1A1A1A?

#

Yes, second one is better

#

Wait

#

OOH, my bad. In my head it sounded like light grey ๐Ÿ˜„

#

Yes, on it

#

#a7ab9f

#

Could you check that one? Not entirely sure about it though.

#

Um, I think the previous one was better.

rapid chasm
forest pagoda
#

The lightness here is perfect imo

#

No, the recent one.

#

Yes the one you just posted

#

I don't think so

#

How would your empty progress bar look?

#

Mostly bg with a tinge of the green?

whole bear
#

added depth

forest pagoda
#

Yes, that looks good too

whole bear
#

how is it rendered?

#

is it an image?

rapid chasm
whole bear
#

custom emojis right

#

@rapid chasm try this

rapid chasm
rapid chasm
whole bear
#

im sure you can do it

#

hemlocky can i stream

#

did you try

rapid chasm
whole bear
#

you just have to draw pixels with decreasing brightness

#

and add a 1px bright line on top for highlight

gilded rivet
whole bear
#

because its super low resolution

#

yea its the anti-aliasing

#

gimp

gilded rivet
#

@rapid chasm Here is a thing

rapid chasm
whole bear
#

did you just try to bribe me lol

#

help !== spoonfeed

#

forgive me ive been doing javascript

gilded rivet
whole bear
#

you literally have to draw a few lines

#

then learn

minor sage
gilded rivet
gilded rivet
rapid chasm
gilded rivet
#

Willy Wonka & the Chocolate Factory movie clips: http://j.mp/2ihVyyo
BUY THE MOVIE: http://bit.ly/2hAlh58
Don't miss the HOTTEST NEW TRAILERS: http://bit.ly/1u2y6pr

CLIP DESCRIPTION:
Veruca (Julie Dawn Cole) breaks into song to let everyone know about her insatiable desires.

FILM DESCRIPTION:
Enigmatic candy manufacturer Willy Wonka (Gene Wild...

โ–ถ Play video
rapid chasm
forest pagoda
stuck furnace
#

A bit less than a dash

gilded rivet
rapid chasm
gilded rivet
whole bear
#

hey

rugged root
minor sage
whole bear
#

lol

hallow warren
#

<small>nevermind...</small>

minor sage
rapid chasm
rapid chasm
#

@gilded rivet Thank you agreeGe

gilded rivet
edgy nymph
#
  • Have 50 messages in the server
  • Have been in the server for 3 days
  • Have messages from three different ten-minute blocks
rugged root
#

I'll be back later, my brain is just failing

sweet lodge
#

Be safe!

#

Get well soon!!

short owl
#

world domination via firefox

short owl
#

adult males wearing furry outfits

elfin moth
#

sorry guys

minor sage
#

as/400

#

RPG is a high-level programming language for business applications, introduced in 1959 for the IBM 1401. It is most well known as the primary programming language of IBM's midrange computer product line, including the IBM i operating system. RPG has traditionally featured a number of distinctive concepts, such as the program cycle, and the colum...

tepid mantle
#

f(x) = $x^3+(p+1)x^2-18x+q$
factors are (x-4) and (x-p)

question: show that $p^2+18p+q$

oblique ridge
#

!latex f(x) = $x^3+(p+1)x^2-18x+q$

#

.latex f(x) = $x^3+(p+1)x^2-18x+q$

viscid lagoonBOT
tepid mantle
#

.latex f(x) = $x^3+(p+1)x^2-18x+q$
factors are (x-4) and (x-p)

question: show that $p^2+18p+q = 0$

viscid lagoonBOT
tepid mantle
#

.latex f(x) = $x^3+(p+1)x^2-18x+q$
factors are (x-4) and (x-p)

question: show that $p^2+18p+q = 0$

viscid lagoonBOT
minor sage
#
tepid mantle
#

.latex f(x) = $x^3+(p+1)x^2-18x+q$
factors are (x-4) and (x+p)

question: show that $p^2+18p+q = 0$

viscid lagoonBOT
fierce urchin
#

mmm

#

i see

whole bear
#
class Role:
    def __init__(self, name):
        self.name = name

    def __str__(self):
        return self.name

class Roles:
    def __init__(self, src, aux, des):
        self.src = Role(src)
        self.aux = Role(aux)
        self.des = Role(des)

def swap(x, y):
    x.name, y.name = y.name, x.name

def print_step(step, src, des):
    print(f"\t\t\t Step {step}: Move from {src} to {des}")

class Solution:
    def __init__(self, units, src = 'A', aux = 'B', des = 'B'):
        self.units = units
        self.roles = Roles(src, aux, des)

    def solve(self):
        roles = self.roles
        units = self.units
        src, aux, des = roles.src, roles.aux, roles.des
        case = 0
        binary = 0
        height = units

        for step in range(1, 2 ** units):
            case %= 4

            if case == 0:
                self.top(height)
                print_step(step, src, des)
                swap(aux, des)
                binary += 1

            if case == 1:
                print_step(step, src, des)
                swap(src, aux)

            if case == 2:
                self.top(1)
                print_step(step, src, des)

    def top(self, height):
        roles = self.roles
        src = roles.src
        aux = roles.aux
        des = roles.des
        i = height

        while (i >= 1):
            print("Destination is: ", des)
            print(f"Towers ({src}, {des}, {aux})")
            swap(aux, des)
            i -= 1

        swap(aux, des)
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

whole bear
oblique ridge
#
Destination is:  B
Towers (A, B, B)
Destination is:  B
Towers (A, B, B)
Destination is:  B
Towers (A, B, B)
             Step 1: Move from A to B
             Step 2: Move from A to B
Destination is:  B
Towers (B, B, A)
             Step 3: Move from B to B
             Step 4: Move from B to B
Destination is:  B
Towers (A, B, B)
Destination is:  B
Towers (A, B, B)
Destination is:  B
Towers (A, B, B)
             Step 5: Move from A to B
             Step 6: Move from A to B
Destination is:  B
Towers (B, B, A)
             Step 7: Move from B to B
cinder dawn
#

evening

minor sage
#

Beware of the scammers

minor sage
potent carbon
#

You using Django Haven?

elder knot
somber heath
#

@bronze kernel ๐Ÿ‘‹

#

Django ( JANG-goh; sometimes stylized as django) is a free and open-source, Python-based web framework that follows the modelโ€“templateโ€“views (MTV) architectural pattern. It is maintained by the Django Software Foundation (DSF), an independent organization established in the US as a 501(c)(3) non-profit.
Django's primary goal is to ease the creat...

#

@kindred marsh ๐Ÿ‘‹

kindred marsh
#

๐Ÿ‘‹

vocal basin
#

distributed django

trim night
#

##result =(vector16 + vector32) % math.floor(3.14159 ** 5) / (X) <<< whats this?

vocal basin
#

!e

print(int(3.14159 ** 5))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

306
bronze kernel
trim night
#

thank you

vocal basin
#

math.floor(3.14159 ** 5) should always be 306

#

idk for everything else

#

/ (X) part is weird

eager thorn
#

isn't it just dividing the result operation by x if x is a scalar?

vocal basin
#

yes but

  1. mixing % and /
  2. extra parentheses
  3. capital letter sugests it's a constant
eager thorn
#

so in other words, would this make more sense?


result = (vector16 + vector32) % math.floor(3.14159 ** 5) / X

#

right.

trim night
#

X = np.random.rand(100, 10)

vocal basin
#

bitwise precedence is hard

vocal basin
trim night
#

is that poop

#

the model hit 50% accuracy just trying to refine it

vocal basin
#

how is the accuracy measured?

trim night
#

but i broke the code alongthe way with no git commits :\

#

one of the lines i deleted had that function

#

"C:/Program Files/JetBrains/PyCharm 2023.1.3/plugins/python/helpers/pydev/pydevconsole.py" --mode=client --host=127.0.0.1 --port=58831
import sys; print('Python %s on %s' % (sys.version, sys.platform))
sys.path.extend(['C:\Users\username\PycharmProjects\scientificProject'])
PyDev console: starting.
Python 3.10.13 | packaged by Anaconda, Inc. | (main, Sep 11 2023, 13:24:38) [MSC v.1916 64 bit (AMD64)] on win32
runfile('C:\Users\user\PycharmProjects\scientificProject\main.py', wdir='C:\Users\user\PycharmProjects\scientificProject')
Accuracy: 0.40

#

๐Ÿ˜ฆ

#

40% there but it was getting better

somber heath
#

@whole bear @whole bear ๐Ÿ‘‹

vocal basin
#

0.40 is worse than random

trim night
#

๐Ÿ˜ฎ

#

thanks ill go back to the white board

vocal basin
#

if it was, as the comment states, 0 or 1, then 50% would be like random

#

for [0;2], 33% might be the random result

somber heath
#

@woven bough ๐Ÿ‘‹

vocal basin
#

ah

woven bough
vocal basin
#

nvm, numpy's randint is not like random's randint

trim night
#

am i doing any good?

somber heath
#

!d numpy.random.randint

wise cargoBOT
#

random.randint(low, high=None, size=None, dtype=int)```
Return random integers from *low* (inclusive) to *high* (exclusive).

Return random integers from the โ€œdiscrete uniformโ€ distribution of the specified dtype in the โ€œhalf-openโ€ interval [*low*, *high*). If *high* is None (the default), then results are from [0, *low*).

Note

New code should use the [`integers`](https://numpy.org/devdocs/reference/random/generated/numpy.random.Generator.integers.html#numpy.random.Generator.integers) method of a [`Generator`](https://numpy.org/devdocs/reference/random/generator.html#numpy.random.Generator) instance instead; please see the [Quick start](https://numpy.org/devdocs/reference/random/index.html#random-quick-start).
somber heath
#

!d random.randint

wise cargoBOT
#

random.randint(a, b)```
Return a random integer *N* such that `a <= N <= b`. Alias for `randrange(a, b+1)`.
vocal basin
#

[low,high) and [a,b]

somber heath
#

@gentle goblet ๐Ÿ‘‹

vocal basin
#

there is no inherent correlation
and predicting random values is somewhat hard

trim night
#

PyDev console: starting.

Accuracy: 0.60

#

ahhh im scared

vocal basin
#

!e

from random import randrange
from statistics import mean
print(mean(randrange(2) for _ in range(20)))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

0.5
vocal basin
trim night
#

i see

vocal basin
#
X = np.random.rand(100, 10)
Y = X.sum(axis=1) > 5
#

(the program might achieve better accuracy with this as input)

#

just to check that it works at all

bronze kernel
#

a = {1: 2, -2: 3}; b = a.keys(); print(b[0])
what will print?

somber heath
#

Have you tried running the code?

#

The result may be variable depending on the Python version.

whole bear
#

Yo

#

Wassup

bronze kernel
#

Yeah, itโ€™s a mystery without running code

vocal basin
#

since some version, keys have fixed order

somber heath
#

But are they indexable?

vocal basin
#

well, that part will fail always

somber heath
#

@worthy canopy @abstract gyro @hushed flume ๐Ÿ‘‹

#

When I said variable, I meant as to the specific wording.

#

Because they've been changing that up.

kindred marsh
vocal basin
#

list(a.keys()) should be [1, -2]
(in latest versions, dict behaves mostly like OrderedDict)

somber heath
eager thorn
#

but you could convert it to a list right?

somber heath
#

Yes.

kindred marsh
somber heath
#

!e py a = {1: 2, -2: 3} b = a.keys() print(type(b)) print(b[0])My point.

wise cargoBOT
#

@somber heath :x: Your 3.12 eval job has completed with return code 1.

001 | <class 'dict_keys'>
002 | Traceback (most recent call last):
003 |   File "/home/main.py", line 4, in <module>
004 |     print(b[0])
005 |           ~^^^
006 | TypeError: 'dict_keys' object is not subscriptable
kindred marsh
somber heath
#

Well aware.

kindred marsh
#
x[1].append(2)
print(x)

what will be the output?

vocal basin
somber heath
#

Wut?

kindred marsh
#

??

vocal basin
vocal basin
#

ah

#

I can't read

eager thorn
#

yeah was about to say

kindred marsh
vocal basin
#

print(int("เงชเญจ")) requires too much knowledge to predict the output

eager thorn
#

because ||[[]] * 2 || || would make a list, that includes 2 references, to that same list ||

vocal basin
#

!e

print(f"{'':0เงชเญจ}")
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

000000000000000000000000000000000000000000
vocal basin
#

where else could non-ascii decimals be allowed?

somber heath
#

@opal mantle ๐Ÿ‘‹

vocal basin
#

!e

print(f"{'':{'':1<เงชเญจ}}")
wise cargoBOT
#

@vocal basin :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 1, in <module>
003 |     print(f"{'':{'':1<เงชเญจ}}")
004 |             ^^^^^^^^^^^^^^
005 | ValueError: Too many decimal digits in format string
vocal basin
#

first time seeing this specific error

eager thorn
#

to long i guess for the specifier.

vocal basin
#

it's trying to pad it to the length of 10**42//9

somber heath
#

@edgy saffron ๐Ÿ‘‹

kindred marsh
vocal basin
#

!e

print(int("เงชเญจ"))
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

42
edgy saffron
vocal basin
#

because Python allows any decimal character to be used there, not only 0123456789

kindred marsh
vocal basin
#

!charinfo เงชเญจ

wise cargoBOT
kindred marsh
#

@vocal basin do you know what is bengali and oriya?

vocal basin
#

iirc, two Indian languages

kindred marsh
#

yes

vocal basin
#

(for Bengali I knew that, but wasn't sure about Oriya)

kindred marsh
vocal basin
kindred marsh
#

both are used in different different states of India

vocal basin
#

(as names)

kindred marsh
#
result = (lambda x: x + 1)(4) if (lambda x: x * 0)(2) else (lambda x: x * 3)(4)
print(result%2==1)

anyone ?

abstract gyro
modern yacht
#

i wanna read a bunch of ips with the following pattern from regex

pattern = re.compile(r'(\d+\.\d+\.\d+\.\d+) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')

the problem is in the first field am still reading invalid ips
<IP Address> - [<date>] "GET /projects/260 HTTP/1.1" <status code> <file size>
ips begining with larger values other than 255

777.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400

i think i have a problem with my first group but i have no idea of how i am supposed to capture ips within the range of 1-255.

kindred marsh
modern yacht
#

!e

import re

log_entry = "777.62.69.251 - [2017-02-05 23:30:52.087970] \"GET /projects/260 HTTP/1.1\" 404 400"
match_pattern = re.compile(r'(\d+\.\d+\.\d+\.\d+) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')

match = match_pattern.match(log_entry)

if match:
    ip_address = match.group(1)
    timestamp = match.group(2)
    status_code = match.group(3)
    response_size = match.group(4)

    print(f"IP Address: {ip_address}")
    print(f"Timestamp: {timestamp}")
    print(f"Status Code: {status_code}")
    print(f"Response Size: {response_size}")
else:
    print("No match found.")
wise cargoBOT
#

@modern yacht :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | IP Address: 777.62.69.251
002 | Timestamp: 2017-02-05 23:30:52.087970
003 | Status Code: 404
004 | Response Size: 400
modern yacht
#

001 | IP Address: 777.62.69.251 that's a wrong ip address

rapid chasm
kindred marsh
#
# this pattern help you for fetch correct ip

re.compile(r'^(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}$)

#

@modern yacht

abstract gyro
#

just to absorb knowledge for now then maybe later figure what my first task in learning is also adhd

mystic lily
abstract gyro
#

pique4d my interest

#

absolutly im disabled and board lol

modern yacht
#

!e

import re

log_entry = "777.62.69.251 - [2017-02-05 23:30:52.087970] \"GET /projects/260 HTTP/1.1\" 404 400"
# this pattern help you for fetch correct ip

match_pattern = re.compile(r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')

match = match_pattern.match(log_entry)

if match:
    ip_address = match.group(1)
    timestamp = match.group(2)
    status_code = match.group(3)
    response_size = match.group(4)

    print(f"IP Address: {ip_address}")
    print(f"Timestamp: {timestamp}")
    print(f"Status Code: {status_code}")
    print(f"Response Size: {response_size}")
else:
    print("No match found.")
wise cargoBOT
#

@modern yacht :x: Your 3.12 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "/home/main.py", line 6, in <module>
003 |     match_pattern = re.compile(r'^(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}$)')
004 |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
005 |   File "/lang/python/default/lib/python3.12/re/__init__.py", line 228, in compile
006 |     return _compile(pattern, flags)
007 |            ^^^^^^^^^^^^^^^^^^^^^^^^
008 |   File "/lang/python/default/lib/python3.12/re/__init__.py", line 307, in _compile
009 |     p = _compiler.compile(pattern, flags)
010 |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
011 |   File "/lang/python/default/lib/python3.12/re/_compiler.py", line 743, in compile
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/VWGWHIYN67WXMLPGZ3ZQ7OVWN4

eager thorn
#

!d re.escape

wise cargoBOT
#

re.escape(pattern)```
Escape special characters in *pattern*. This is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it. For example...
mystic lily
#

r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})'

stark river
modern yacht
#

!e

import re

log_entry = "777.62.69.251 - [2017-02-05 23:30:52.087970] \"GET /projects/260 HTTP/1.1\" 404 400"
# this pattern help you for fetch correct ip

match_pattern = re.compile(r'(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')

match = match_pattern.match(log_entry)

if match:
    ip_address = match.group(1)
    timestamp = match.group(2)
    status_code = match.group(3)
    response_size = match.group(4)

    print(f"IP Address: {ip_address}")
    print(f"Timestamp: {timestamp}")
    print(f"Status Code: {status_code}")
    print(f"Response Size: {response_size}")
else:
    print("No match found.")
abstract gyro
#

portabellas ? jk

stark river
#

so to go from 0.0.0.0 to 255.255.255.255 would need
([0-2][0-5][0-5])\.([][][])\.([][][])...and so on

modern yacht
#

still the 777 invalid

kindred marsh
# modern yacht !e ```python import re log_entry = "777.62.69.251 - [2017-02-05 23:30:52.087970...
import re

log_entry = '777.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400'

# Define the regular expression pattern for IPv4 address
ipv4_pattern = re.compile(r'\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}\b')

# Extract the IP address from the log entry
ip_match = re.search(ipv4_pattern, log_entry)
if ip_match:
    ip_address = ip_match.group()
    
    # Check if each part of the IP address is between 0 and 255
    is_valid_ip = all(0 <= int(octet) <= 255 for octet in ip_address.split('.'))
    
    if is_valid_ip:
        print(f'Found valid IP address: {ip_address}')
        print(f'Complete log entry: {log_entry}')
    else:
        print(f'Invalid IP address: {ip_address}')
else:
    print('No valid IP address found in the log entry.')

#

!e
import re

log_entry = '777.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400'

Define the regular expression pattern for IPv4 address

ipv4_pattern = re.compile(r'\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}\b')

Extract the IP address from the log entry

ip_match = re.search(ipv4_pattern, log_entry)
if ip_match:
ip_address = ip_match.group()

# Check if each part of the IP address is between 0 and 255
is_valid_ip = all(0 <= int(octet) <= 255 for octet in ip_address.split('.'))

if is_valid_ip:
    print(f'Found valid IP address: {ip_address}')
    print(f'Complete log entry: {log_entry}')
else:
    print(f'Invalid IP address: {ip_address}')

else:
print('No valid IP address found in the log entry.')

wise cargoBOT
#

@kindred marsh :white_check_mark: Your 3.12 eval job has completed with return code 0.

No valid IP address found in the log entry.
kindred marsh
#

!e
import re

log_entry = '77.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400'

Define the regular expression pattern for IPv4 address

ipv4_pattern = re.compile(r'\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}\b')

Extract the IP address from the log entry

ip_match = re.search(ipv4_pattern, log_entry)
if ip_match:
ip_address = ip_match.group()

# Check if each part of the IP address is between 0 and 255
is_valid_ip = all(0 <= int(octet) <= 255 for octet in ip_address.split('.'))

if is_valid_ip:
    print(f'Found valid IP address: {ip_address}')
    print(f'Complete log entry: {log_entry}')
else:
    print(f'Invalid IP address: {ip_address}')

else:
print('No valid IP address found in the log entry.')

wise cargoBOT
#

@kindred marsh :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | Found valid IP address: 77.62.69.251
002 | Complete log entry: 77.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400
abstract gyro
#

nope been here

#

just found out i have to message 45 more times

verbal cliff
#

Sorry gents, new to the server so can't talk apparently

abstract gyro
verbal cliff
#

hah lol

abstract gyro
#

yup lol

kindred marsh
#
import re

log_entry = '77.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400'

# Define the regular expression pattern for IPv4 address
ipv4_pattern = re.compile(r'\b(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}\b')

# Extract the IP address from the log entry
ip_match = re.search(ipv4_pattern, log_entry)
if ip_match:
    ip_address = ip_match.group()
    
    # Check if each part of the IP address is between 0 and 255
    is_valid_ip = all(0 <= int(octet) <= 255 for octet in ip_address.split('.'))
    
    if is_valid_ip:
        match_pattern = re.compile(r'(\d+\.\d+\.\d+\.\d+) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')
        match = match_pattern.match(log_entry)
        ip_address = match.group(1)
        timestamp = match.group(2)
        status_code = match.group(3)
        response_size = match.group(4)

        print(f"IP Address: {ip_address}")
        print(f"Timestamp: {timestamp}")
        print(f"Status Code: {status_code}")
        print(f"Response Size: {response_size}")
    else:
        print(f'Invalid IP address: {ip_address}')
else:
    print('No valid IP address found in the log entry.')

@modern yacht check this

verbal cliff
abstract gyro
#

bypassing i cloud locks but just hardqare wise as for coding no i am relearning

#

the most i have done was hello world lol and software exploits in the past

#

yup

#

i can do it on all devices made 2017 or older

#

its the 2018 forward that's the fun challenge

#

direction on where to start in learning path wise

#

im green as can be when it comes to py i have 2 versions downloaded

#

little bit

#

i studied html and java in high but its been 10 years since

#

gotchya

#

10 line projects and what was the second wa amking notes lol

verbal cliff
#

A fun way to learn some of the more mid range ideas is to use codewars, they have some fun puzzels that get you brain working.

abstract gyro
#

and thank you

verbal cliff
#

I would send a link but not sure if I am allowed to so.

abstract gyro
#

lol

modern yacht
verbal cliff
abstract gyro
#

i am about to start playing with esp32 stuff my it mentor is hooked and is getting me interested in them as well

#

thank you'

verbal cliff
#

On an unrelated note, is anyone doing advent of code this year?

kindred marsh
modern yacht
rapid chasm
kindred marsh
rapid chasm
#
    # Create a new Embed object
    embed = discord.Embed(title=f"", timestamp=datetime.datetime.now(), color=discord.Color.blue())
    embed.set_author(name=f"{summoner_name} #{tagline}", icon_url=user.display_avatar.url)

    # Add the relevant information to the Embed object using the add_field method
    embed.add_field(name="General Information", value=f'Summoner Level: {summoner_level}\nEstimated Elo: {elo_rating}', inline=False)

    # Prepare the "Ranked Stats" field
    ranked_stats = f'Solo/DuoQ: {tier_and_rank}'
    # Conditionally add the "Wins", "Losses", and "Win Rate"
    if winrate:
        ranked_stats += f'\nWins: {wins}'
        ranked_stats += f'\nLosses: {losses}'
        ranked_stats += f'\nWin Rate: {winrate}%'

    # Add the "Ranked Stats" field to the Embed object
    embed.add_field(name="Ranked Stats", value=ranked_stats, inline=False)
    embed.add_field(name="Custom Stats",
                    value=f'Games Played: {games_played}\nXP: {experience}\nLevel: {level}\n{progress_bar}',inline=False)
kindred marsh
#

import re

log_entry = '777.62.69.251 - [2017-02-05 23:30:52.087970] "GET /projects/260 HTTP/1.1" 404 400'

# Define the regular expression pattern for the entire log entry
combined_pattern = re.compile(r'(?:(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)(?:\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]\d?|0)){3}) - \[(.*?)\] "GET /projects/260 HTTP/1.1" (\d+) (\d+)')

# Match the entire log entry
match = combined_pattern.match(log_entry)

if match:
    ip_address = match.group(1)
    
    # Check if each part of the IP address is between 0 and 255
    is_valid_ip = all(0 <= int(octet) <= 255 for octet in ip_address.split('.'))
    
    if is_valid_ip:
        timestamp = match.group(3)
        status_code = match.group(4)
        response_size = match.group(5)

        print(f"IP Address: {ip_address}")
        print(f"Timestamp: {timestamp}")
        print(f"Status Code: {status_code}")
        print(f"Response Size: {response_size}")
    else:
        print(f'Invalid IP address: {ip_address}')
else:
    print('No valid IP address found in the log entry.')

@modern yacht you can try this

eager thorn
rapid chasm
whole bear
#

joining vc in discord makes all audio mono

#

bluetooth sucks

#

@rapid chasm you could use images for more aesthetics

#

yea a sec

#

the entire card is an image

vocal basin
#

!kindling

wise cargoBOT
#
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.

rapid chasm
whole bear
#

better

rapid chasm
abstract gyro
#

im back had to mute my self for a minute

#

question for voice verification do i have to meet all or one of the listed

abstract gyro
#

lol im one my self but mostly in games

#

only where it counts telling new people alt f4 for lots of money small stuff

#

off topic is irc dead or do you guys know

#

i used to hope in anon chat rooms back in the day for fun never could get hex chat to be noce like it used to be

whole bear
#

hardest vc

abstract gyro
#

aaahahhahqahhahahhahaha

whole bear
#

what

rapid chasm
#

!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 Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.

rapid chasm
#

@stoic cloud

stoic cloud
#

its suppose to be a notetaking app for now

rapid chasm
#

Hey @eager thorn

eager thorn
#

get the embed, looking the way u wanted?

rapid chasm
#

Yeah pretty much

eager thorn
#

good deal.

rapid chasm
eager thorn
rugged root
woeful salmon
#

!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.

rugged root
ripe salmon
#

hi

#

how you doing

rugged root
#

@junior heron Talk in here so you can get your messages up, too

junior heron
#

hi

rugged root
#

!pypi auto-py-to-exe

wise cargoBOT
junior heron
#

i need to hide this from task bar

rugged root
#

What's the program you're trying to hide from view?

junior heron
#

keyboard sound effect

dense ibex
rugged root
#

If only you could do strike throughs in file names

#

keyloggerpressboop.exe

willow light
#

Now I want to figure out if I can use strikethroughs in passwords on Windows

rugged root
#

I shudder to think

willow light
#

I shudder for more than just thinking

rugged root
#

Although spaces in passwords are super nice

willow light
#

And commas

#

Given how many times a password leak is in a csv

rugged root
#

Granted doesn't help a whole heck of a lot when it comes to dictionary attacks

#

But always good to pump up your char numbers

willow light
#

Being able to pwn the csvs is a nice trick though

#

People are lazy enough that it'll still work for a while

#

I wonder if I should put a tab char in there too just to screw with the folks using tsv as a workaround

rugged root
#

Is that... sanitizable?

#

Maybe with quotes or something?

stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

ivory flower
#

ยฏ\( " - __ -)/ยฏ

faint ermine
#

ยฏ_(ใƒ„)_/ยฏ

sinful phoenix
#

ยฏ_(ใƒ„)_/ยฏ

rugged root
kindred marsh
#
f = open("D:\Programming\h.txt","w")
f.write("Hii \n I'mare creating a new file")
f.close()

i don't know why i'm getting FileNotFoundError: error. i'm using python 3.10.5
earlier didn't get this error but now it is coming.
can anyone help me out why it is coming now

stark river
#

buck buck buck

#

only one return

rugged root
#

Yeah, it only triggers on first word

#

Can you give the error and traceback?

#
with open(r"D:\Programming\h.txt", "w") as file:
  file.write("Hii\nI'm creating a new file")
kindred marsh
rugged root
#

Can you give the error and traceback then? Is it pointing to a specific line?

kindred marsh
#
Traceback (most recent call last):
  File "d:\Programming\try.py", line 39, in <module>
    with open(r"D:\Programming\h.txt", "w") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'D:\\Programming\\h.txt'

rugged root
#

Da fuq?

#

And you do have a d drive, right?

#

... yes you do

#

It's right there

#

Hemlock, seriously

kindred marsh
rugged root
#

Can you try "h.txt" instead?

#

See if it's fine with the relative path

kindred marsh
rugged root
#

And that worked?

kindred marsh
#

same error coming

kindred marsh
rugged root
#

Okay that's weird...

kindred marsh
rugged root
#

Wait, idea

#
from pathlib import Path

file_path = Path(r"D:\Programming\h.txt")
with open(file_path, "w") as file:
  file.write("Trying to see if this writes, yo")
#

No idea if that'll make a difference

#

Although it's sounding more and more like a permissions issue

#

But that feels weird as well

rugged root
#

Can you make a new file on the c drive?

kindred marsh
#

ok wait i try

rugged root
#

Because my gut is telling me it's a permissions issue now

#

If THAT doesn't work

#

Then try opening a terminal as admin

stuck furnace
rugged root
#

Seeing if that makes a difference

sinful phoenix
#

Whatโ€™s the food called @gentle flint?

kindred marsh
rugged root
whole bear
#

hey can i stream

stuck furnace
#

Oh pithink

rugged root
#

File "d:\Programming\try.py", line 39, in <module>

#

!stream 939196353362419722

wise cargoBOT
#

โœ… @whole bear can now stream until <t:1702404549:f>.

whole bear
#

thank you

kindred marsh
#

same error coming

rugged root
#

Try running as admin then

stuck furnace
kindred marsh
rugged root
#

For the path

gentle flint
rugged root
#

Translation, "I am fried rice"

#

Translated from Spanish

kindred marsh
rugged root
# kindred marsh

Wait are you doing all of these from the built in terminal in VS Code?

#

Try opening a new terminal window like PowerShell or something

kindred marsh
#

still same error

#

i don't why this error coming even i did everything right

rugged root
#

Yeah, it's weird

#

And can you open up a PowerShell terminal as admin?

#

Then try once again. After that it'll honestly be me recommending rebooting the machine, as dumb as that sounds

whole bear
#

textuer pack

kindred marsh
whole bear
#

and the command is called gal

#

as opposed to man

#

i have

#

wait

#
has_command() {
  command -v "$1" &> /dev/null
}

get_command_pip() {
  if has_command pip3.11; then
    PIP=pip3.11
  elif has_command pip311; then
    PIP=pip311
  elif has_command pip3; then
    PIP=pip3
  elif has_command pip; then
    PIP=pip
  else
    get_command_python
    if ! test -z "$PYTHON"; then
      PIP="$PYTHON -m pip"
    fi
  fi
  if ! test -z "$PIP"; then
    set +e
    $PIP install --break-system-packages &> /dev/null
    if test "$?" -eq 1; then
      PIP_INSTALL="$PIP install --break-system-packages"
    else
      PIP_INSTALL="$PIP install"
    fi
    set -e
    echo "PIP_INSTALL=$PIP" >> log.out
    echo "PIP=$PIP" >> log.out
  fi
}

get_command_python() {
  if has_command python3.11; then
    PYTHON=python3.11
  elif has_command python311; then
    PYTHON=python311
  elif has_command python3; then
    PYTHON=python3
  elif has_command python; then
    PYTHON=python
  elif has_command py3.11; then
    PYTHON=py3.11
  elif has_command py311; then
    PYTHON=py311
  elif has_command py3; then
    PYTHON=py3
  elif has_command py; then
    PYTHON=py
  fi
}```
whole bear
#

had to do this to make a portable installer script

rugged root
whole bear
#

yea

#

for unix?

#

my installer works even on haiku os

kindred marsh
rugged root
#

I know, still thinking

whole bear
#

don't use the run button

rugged root
#

Can you open up the python shell/repl thing?

#

Try and see if you can open files that you specifically know exist that way

#

Or make files that way

whole bear
#

you know you can use python in xml

#

not sure if thats helpful in your case

stuck furnace
#

Does excel have a QUERY function like google docs sheets?

whole bear
#

i mean xl

#

excel to sql?

#

or excel to csv then just use regular python

stuck furnace
#

It lets you do kind of like an SQL query on a table.

#

Oh pithink

stark river
#

powerquery, powershell, powerbi, powerpoint, powertools
who is in charge of naming projects in microsoft and what is their obsession with "power"

whole bear
#

jquery

kindred marsh
whole bear
#

websocket server or client?

rugged root
teal ginkgo
#

hey guys how do I install a module in vs studio

whole bear
#

firefox

#

has that feature

teal ginkgo
#

I can not figure this out

rugged root
#

Or how do you mean

whole bear
#

so im looking in windows settings to see how a modal looks like

#

because im trying to make my ui look like it

#

so i click the forget button on my wifi

teal ginkgo
#

Yeah it says this when I try to install a library

whole bear
#

and it just disconnected me

#

didnt ask for confirmation

teal ginkgo
#

pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
again.

teal ginkgo
rugged root
#

py -m pip install <package_name_here>

#

If you're on Windows, that'll install it to your latest Python version

teal ginkgo
#

thank you

#

I have the basics and am trying to code something I could use to learn and couldn't even figure that out ๐Ÿ˜ฆ

hallow warren
wind raptor
rugged root
#

Those amounts feel weirdly specific

wind raptor
vivid palm
rugged root
#

Fair point, didn't think of that

vivid palm
#

i'm kind of a little surprised that intuit is in canada

kindred marsh
wind raptor
#

Oh yeah, they have a free tier here that covers most people

rugged root
#

Potentially less bullshit

vivid palm
#

does the average canadian use turbotax to file their taxes every year?

wind raptor
#

Oh wait, sorry, it's H&R block that has the free one

vivid palm
#

is it not one of those countries where payroll/gov't just does it for you?

kindred marsh
hallow warren
rugged root
#

Maybe uninstall your Python versions and reinstall the one you specifically need for right now

#

See if it's just some weird thing that way

#

Dude I hate this code highlighting

kindred marsh
#

btw thankyou so much for giving me your time @rugged root

stark river
#

@rugged root share ur super script?

rugged root
#

Uhhhhh one sec

whole bear
rugged root
#

Keep running into an issue where when we're getting the financial statements, we're sometimes getting dupe names (Accounting CS makes me mad)

#

Just going to fix the file name manually

#

Just annoyed that I have to because of the dumb downloading

#

Yeah but you can't use that website as a self defense weapon

#

I do not like error handling in VBA

#

It feels so messy

wind raptor
vivid palm
#

10/10

#

did you use chatgpt

stark river
#

don't believe everything he says @rugged root

rugged root
#

Was gonna say

#

I remembered reading some of those

stark river
#

i live "across the pond" from dubai

wind raptor
whole bear
#

bbl, got to do some stuff at home

runic drum
#

what are you talking about?

#

what are you talking about @whole bear

whole bear
runic drum
whole bear
runic drum
whole bear
#

(not that I wouldn't sell out and code for them)

runic drum
#

Why do you think it is shit?

#

but so many people are using it? Why do you think people dont learn like this?

runic drum
#

a dog xD

#

be a D O double G

#

to me it is crazy how many people in the USA get addicted to drugs because of pain medication

#

I am using chatGPT and I KNOW i am getting dumber xD

#

I would raTher learn the 30 things but I agree, for example with grammar correction I am now becoming illiteral

#

But what if NeuraLink comes and we dont need to learn anymore xD

flat perch
#

why is my code printing out the email 2x

runic drum
#

Which high level have you reached @terse garden

#

ah I see thanks ๐Ÿ‘

#

Can I make a controversial comment @terse garden xD?

#

I think "reaching the top" and "using it to learn" are different things @terse garden

#

ChatGPT invites you to be superficial

#

but you CAN definitely use it for learning as well but it is easy to abuse

#

At least you can in biochemistry xD there are like hundreds and thousands of unnecesasry results

#

@terse garden in computer science there are also a lot of mediocre publications

#

@whole bear I have studied biochemistry and biotech and I feel you xD

#

I worked in ML and there are papers were they literally have "just" changed some hyperparameters

#

BUT unfortunetly ...I CANT SPEAK xD so I have to right messages

#

I need a counter to see when my 50 messages are reached

#

do you know Alan Watts @whole bear ?

whole bear
#

he's not studied in academic philosophy

runic drum
#

But it has less to do with Logic what he says so I guess thats why it is not really thought

rapid chasm
runic drum
#

I finished learning

#

League is nice`? You are a mad man sir

#

Lies , lies, lies @whole bear nobody enjoys this game

#

5years

whole bear
rapid chasm
#

@junior marsh

runic drum
rapid chasm
#
### Code here ###
junior marsh
#

noun = input(" Noun: ")

verb = input("Verb:")
noun2 = input(" Noun: ")
noun3 = input(" Noun: ")
verb2 = input("Verb:")
noun4 = input(" Noun: ")

madlibs = (f'Hey welcome to my {noun}. Today we will be {verb} an experience about {noun2}. The important thing is to '
f'try and make the {noun3} last longer than the {noun4}, and make sure you are {verb2} aswell.')

print(madlibs) ###

whole bear
#

@terse garden sorry, gtg, we can talk about this later. interesting topic

junior marsh
#
CODE HERE 
 noun = input(" Noun: ")
verb = input("Verb:")
noun2 = input(" Noun: ")
noun3 = input(" Noun: ")
verb2 = input("Verb:")
noun4 = input(" Noun: ")







madlibs = (f'Hey welcome to my {noun}. Today we will be {verb} an experience about {noun2}. The important thing is to '
           f'try and make the {noun3} last longer than the {noun4}, and make sure you are {verb2} aswell.')

print(madlibs)


runic drum
#

Have you used chatGPT to learn @junior marsh

junior marsh
#

no

#

just watched youtube

#

is it bad

runic drum
#

no it is pretty good but only if you already know the language because sometimes you need to correct things.

#

So you are good with just learning the language first and then try it out . However it helps if you are blocked and maybe just overlooking some syntax because it will find it

#

so basically you just ask:
"What is wrong with the following code:

...."
and it will find out

junior marsh
#

ok

rapid chasm
# junior marsh ```py CODE HERE noun = input(" Noun: ") verb = input("Verb:") noun2 = input(" ...
inputs = []
while len(inputs) < 6:
    user_input = input(f"Enter input {len(inputs) + 1}: ")
    if user_input:
        inputs.append(user_input)
    else:
        print("Please enter a value.")

noun, verb, noun2, noun3, verb2, noun4 = inputs

madlibs = (f'Hey welcome to my {noun}. Today we will be {verb} an experience about {noun2}. The important thing is to '
           f'try and make the {noun3} last longer than the {noun4}, and make sure you are {verb2} aswell.')

print(madlibs)```
runic drum
#

I am hoping off, see you guys, have a nice evening

#

You too bud !

somber heath
#

!e py for letter in 'abc': print(letter)

wise cargoBOT
#

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

001 | a
002 | b
003 | c
somber heath
#

!e py for iv in enumerate('abc'): print(iv)

wise cargoBOT
#

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

001 | (0, 'a')
002 | (1, 'b')
003 | (2, 'c')
somber heath
#

!e py a, b = 1, 2 print(a) print(b)

wise cargoBOT
#

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

001 | 1
002 | 2
vocal basin
#

slightly refactored stuff from #code-help-voice-text

from itertools import pairwise

def missing_number(values):  # I would put `-> str` here but discord hates it
    for prev, next_ in pairwise(values):
        expected = prev + 1
        if expected != next_:
            return f"Your missing number is {expected}"
    return "No missing number"

print(missing_number(map(int, input().split(","))))
somber heath
#

!e py for a, b in ((1, 2), (3, 4), (5, 6)): print(a) print(b)

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
004 | 4
005 | 5
006 | 6
vocal basin
#

prev, next_ is syntax sugar for (prev, next_), in some sense

somber heath
#

!e py for i, v in enumerate('abc'): print(i, v)

wise cargoBOT
#

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

001 | 0 a
002 | 1 b
003 | 2 c
vocal basin
#

!e

(a, b) = (1, 2)
wise cargoBOT
#

@vocal basin :warning: Your 3.12 eval job has completed with return code 0.

[No output]
vocal basin
#

same as

a, b = 1, 2
#

!e

t = (1, 2)
(a, b) = t
print(a)
print(b)
print(t)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 1
002 | 2
003 | (1, 2)
vocal basin
#

() are usually omitted in patterns

somber heath
#

!e py a, (b, c) = 1, (2, 3) print(a) print(b) print(c)

wise cargoBOT
#

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

001 | 1
002 | 2
003 | 3
vocal basin
#

!e

a, (b, c) = 1, (2, 3)
print(a, b, c)
(a, b), c = (1, 2), 3
print(a, b, c)
a, b, c = 1, 2, 3
print(a, b, c)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 1 2 3
002 | 1 2 3
003 | 1 2 3
vocal basin
#

nested patterns are rare, but they appear sometimes when you combine things like enumerate and pairwise

#

!e

from itertools import pairwise

values = ['a', 'b', 'c']

for i, (p, q) in enumerate(pairwise(values)):
    print(i, p, q)

for (i, p), (j, q) in pairwise(enumerate(values)):
    print(i, p, j, q)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

001 | 0 a b
002 | 1 b c
003 | 0 a 1 b
004 | 1 b 2 c
somber heath
#

!e py import random print(random.randint(1, 6))

wise cargoBOT
#

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

2
somber heath
#

!e py from random import randint print(randint(1, 6))

wise cargoBOT
#

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

6
somber heath
#

!e py from random import randint as fart print(fart(1, 6))

wise cargoBOT
#

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

6
vocal basin
#

there is a functional difference, but it's about partially initialised modules, somewhat too advanced even for me

#

(you will encounter that when you write your own modules and run into circular import errors)

somber heath
#

!e py letters = 'abcd' numbers = '1234' symbols = '@#ยฃ_' for letter, number, symbol in zip(letters, numbers, symbols): print(letter, number, symbol)

wise cargoBOT
#

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

001 | a 1 @
002 | b 2 #
003 | c 3 ยฃ
004 | d 4 _
vocal basin
#

for just checking if all are same: all(starmap(eq, pairwise(values)))

#

for max(0, length-1) of longest single-valued prefix: sum(takewhile(bool, starmap(eq, pairwise(values))))

somber heath
#

!e py for i, v in enumerate('abc', start=50): print(i, v)

wise cargoBOT
#

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

001 | 50 a
002 | 51 b
003 | 52 c
vocal basin
somber heath
#

@hollow jewel ๐Ÿ‘‹

vocal basin
whole bear
#

๐Ÿ’€

candid pike
#

Yo

#

Morning guys

#

Then your up 100k

#

Is being up 100k not enough?!?

#

Yea but 100k is more than most people ever see lol

#

It's a small project if you can make 100k off the project and move on and start working on the next lol

#

I'll through 100$ in lol

#

throw*

#

What are you writing it in?

#

Could you take an existing stock alert bot and use it for what you are wanting to do?

#

I don't have permissions to talk

high token
candid pike
#

Haven't been here long enough I guess

#

I've been in the discord like a year lol

vocal basin
#

you seem to have enough messages

candid pike
#

Hey it worked lol

mystic lily
vocal basin
#

@rapid chasm the more people know how it works, the worse it works, generally

vocal basin
#

if you want it fast, you can also go with Rust

#

(both for computation and IO)

#

and without pain of C

#

it's like C but with type system similar to Haskell

#

statically compiled

#

(not interpreted)

#

also has no garbage collection

candid pike
#

Gotta hop off I'll talk to yall in a but

#

bit*

languid copper
#

l8r

abstract lantern
#

Why this happens?

vocal basin
#

missing .

#

Firstwebsite/manage.py

abstract lantern
#

Same...

#

With python3 command also no effort.

vocal basin
languid copper
#

byee

vocal basin
wraith frigate
#

Hi

#

I don't have a microphone.

#

๐Ÿ˜ฆ

somber heath
#

!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.

wraith frigate
#

Yes, I need to write 50 messages.

#

It is very long and tedious to deal with this topic

somber heath
#

@bronze cargo ๐Ÿ‘‹

bronze cargo
#

Hello @somber heath

#

@somber heath

#

@mystic lily

#

I want to have a mic access on this voice chat @rugged root

#

please help me

wise cargoBOT
#
Voice verification

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

rugged root
#

Gotta do shred, back in a bit

somber heath
#

@celest stream ๐Ÿ‘‹

celest stream
#

hi

#

i dont think I can speak

#

oh i see

#

i havent sent 50 messages

#

oh well

stuck sky
#

@somber heath

somber heath
#

@foggy osprey ๐Ÿ‘‹

foggy osprey
rugged root
#

!stream 120274865973493761

wise cargoBOT
#

โœ… @trim night can now stream until <t:1702481047:f>.

rugged root
#

Sorry, brb one sec

trim night
#

@vocal basin hey

vocal basin
#

!e

print((1+5**.5)/2)
wise cargoBOT
#

@vocal basin :white_check_mark: Your 3.12 eval job has completed with return code 0.

1.618033988749895
vocal basin
#

I guess not this phi

#

wave function in non-Euclidean space?

#

where does it appear?

#

what subfield of maths/physics?

#

i.e. why have a notion of wave function in a non-Euclidean space?
(the purpose)

#

just start a new terminal

#

if you selected the interpreter, it will be activated

somber heath
#

!e ```py
def wave():
print('๐Ÿ‘‹')

wave()```

wise cargoBOT
#

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

๐Ÿ‘‹
vocal basin
#

at first, verify that it's not in a venv yet
(it might be already activated)

rugged root
#

./.venv/Scripts/activate

vocal basin
#

sometimes VSC activates venvs without setting PS1

#

prefix

#

or whatever it is the name of that variable

obsidian dragon
vocal basin
#

> opens a directory called "bomb"
> "do you trust the authors of this folder?"

trim night
#

i was then about to write the word bombarded

#

then got scared

vocal basin
#

it auto-activates venv for me and does set the prefix

trim night
#

lmfao bomb

vocal basin
#

but
I've seen it do it without a prefix, mostly in Dev Containers

#

it's "bomb" because I was testing whether multiprocessing might accidentally lead to a fork bomb

#

results of that test were indecisive

trim night
#

ooo i love me a fork bomb looks like a load of emojis

#

but i lost the file , a typical response

#

sorta like a dog ate my home work

rugged root
woeful salmon
#

and it is shell aware i think so if you use gitbash or a container's shell which runs bash it will leave the .ps1 out as the bash script has no extension and is supposed to be sourced not run

vocal basin
#

sometimes it's very dumb and pastes the activation command on docker logs

woeful salmon
#

๐Ÿ˜ฎ no clue i tend to develop on my pc and only test and deploy on docker if needed

vocal basin
#

when it's inside docker, it works fine but without a prefix

woeful salmon
#

depends on the shell

#

your container probably isn't using powershell xD

trim night
#

i should write it down im using barebone metal with a ubuntun install

woeful salmon
#

wait prefix? i thought you meant suffix

trim night
#

half tempted to install globally lmfao

vocal basin
#

outside docker, it's only activating with a command for me

vocal basin
woeful salmon
#

oh that ๐Ÿ˜ฎ

vocal basin
#

isn't it to the left of everything?

woeful salmon
#

you can disable that

#

there's an environment variable you can use to disable that if you want

vocal basin
#

yeah, I know how to disable it

willow gate
vocal basin
#

I think VSC in some context understands what it actually needs to change to activate venv
and bypasses running the script