#ot1-perplexing-regexing

1 messages · Page 575 of 1

gritty zinc
#

you can always do some codingame projects 😉

acoustic moss
#

i gotchu

#

yw

edgy crest
acoustic moss
#

idk what you're talking about

gritty zinc
edgy crest
#

oh i have seen this one

gritty zinc
#

it's the popularest on the site by a wide margin

edgy crest
#

unfortunately i am that stubborn guy who wants to do the graphics too

gritty zinc
#

pretty hard too because it's multiagent

winter terrace
#

oh yeah i recently figured out compute shaders in unity and now i can make cool visual stuff by representing an agent with a pixel

night reef
#

I came here just to know the age of joe does anyone know the age of Joe

last mantle
#

17

acoustic moss
#

who's joe

gritty zinc
#

dunno, what's joe with you?

twilit shore
#

j-j-joe m-m-mama

vapid nymph
round rose
#

That would've been very interesting had it been true

tardy rain
#

Why would they sell this as nft

#

Wouldnt it lose all value instantly if it was taken off youtube

dry flume
#

this is joe

acoustic moss
#

pro editing

dry flume
dry flume
acoustic moss
#

yes

#

how did you find it so fast wtf

dry flume
acoustic moss
#

bruh lmfao

dry flume
#

im not going to let that go

#

joe just came online

acoustic moss
dry flume
#

ping 👀

#

joe went offline again

acoustic moss
#

sadge

dry flume
#

he probably saw the image and went offline

bleak lintel
inland wolf
#

nft

rough sapphire
#

Lmfao

rough sapphire
#

Whomsoever pinged me

#

not me 👀

calm dawn
#

What's a good color for strings in VSCode? The brown is kinda ugly.

#

maybe more reddish?

latent scaffold
calm dawn
#

😕

#

I actually think it fits in poorly and that a teal would be better

#

I'll see...

latent scaffold
#

teal would be too much blue

#

f-strings are blue, variables are blue, operators are blue, arguments/parameters/attributes are blue

gritty zinc
#

I just saved myself some hour+ of homework by making a script to automate calculating coefficients for angular momenta addition

edgy crest
#

angular momentum is mass * velocity * radius right

#

i also dont understand what those | > symbols mean PepeCry

inland wolf
#

same

gritty zinc
#

| > is the so-called bra-ket notation

#

these are all kets (vectors).

#

each equation here relates an angular momentum vector in the sum-of-two reference system (|j1,j2,j,m>, where j1,j2 are the momenta of the two particles, j is the total momentum of their sum and m is its z-component) to vectors in the systems of the two particles (|j1,j2,m1,m2>, where m1,m2 are the z-components of each particle's momenum)

#

All of these past the first one are just obtained by successively applying the lowering operators: J_- on the left side and J_1- + J_2- on the right side

jaunty blade
mild abyss
#

git clone https://github.com/git/git clone https://github.com/git/git clone https://github.com/git/git

mild abyss
last mantle
#

yes

mild abyss
#

imma attack this server 😈

inland wolf
#

lol

brazen ingot
rough sapphire
night reef
#

is c and c++ is the same as java and javascript or I need to learn c before c++

rough sapphire
#

just learn java if you want to mod minecraft simple. Why do you want to learn something other than java?

#

ohh oops wrong server

#

😅

#

c and c++ are similar to java. c is limited as it has no concept of generics. java c and c++ are statically typed languages and are compiled while javascript is interpreted.

brazen ingot
rough sapphire
abstract stratus
#

windows 11 cpu compatibilities are the worst thing microsoft ever published

latent scaffold
abstract stratus
#

its not the specs of the cpu

#

they literally ignored 7-8th gen intel cpus and ryzen 2000

last mantle
#

doesn't mean it won't run

abstract stratus
#

well i mean if they restrict users from installing windows 11 because of cpu incompatibility then it'd be a disaster

last mantle
#

if...

#

let's see what happens

rough sapphire
#

ive hit a wall in my minecraft modding journey

#

no one knows an easy answer either

graceful basin
#

yeah, that happens sometimes

tribal aurora
#

it's terrible

latent scaffold
#

\🤔 is it?

tribal aurora
#

it is

winter terrace
#

Hey guys

#

Guys

#

What are your thoughts on Product™️

#

I love Product™️

latent scaffold
#

wot

dire siren
#

wot

winter terrace
#

And it’s made by such a cool company, Brand

latent scaffold
#

absolutely

winter terrace
#

I’m going to go out and buy Product™️ right now

#

Don’t you guys love Product™️

latent scaffold
#

absolutely yes

winter terrace
#

It’s so cool and great and good and cool

tribal aurora
#

you seem like you haven't bought a single thing in 10 years

winter terrace
#

What do you mean

#

I love Product™️

#

I buy it all the time

tribal aurora
#

¯_(ツ)_/¯

alpine edge
#

@rough sapphire

rough sapphire
#

tf

#

anyone know .js ?

rough sapphire
tribal aurora
#

there's always a one

#

(not me tho)

wraith hound
#

Don't just ask who knows js in every ot channel

rough sapphire
#

hey can u remind me whats the name of this server

wraith hound
wraith hound
rough sapphire
strange musk
#

Does anyone know how to find out what variables in python script use what memory?

#

stackoverflow answers aren't enlightening

royal lakeBOT
#

Hey @rough sapphire!

It looks like you tried to attach file type(s) that we do not allow (.js). We currently allow the following file types: .gif, .jpg, .jpeg, .mov, .mp4, .mpg, .png, .mp3, .wav, .ogg, .webm, .webp, .flac, .m4a.

Feel free to ask in #community-meta if you think this is a mistake.

rough sapphire
#

maybe try getting the ammount of bytes when u pickle.dump it?

strange musk
#

for every object?

rough sapphire
#
import pickle

print(pickle.dumps("your data here"))
#

!e

import pickle

print(pickle.dumps("your data here"))

royal lakeBOT
#

@rough sapphire :white_check_mark: Your eval job has completed with return code 0.

b'\x80\x04\x95\x12\x00\x00\x00\x00\x00\x00\x00\x8c\x0eyour data here\x94.'
acoustic moss
#

sys.getsizeof(object)

royal lakeBOT
#

Hey @rough sapphire!

Uh-oh! It looks like your message got zapped by our spam filter. We currently don't allow .txt attachments, so here are some tips to help you travel safely:

• If you attempted to send a message longer than 2000 characters, try shortening your message to fit within the character limit or use a pasting service (see below)

• If you tried to show someone your code, you can use codeblocks
(run !code-blocks in #bot-commands for more information) or use a pasting service like:

https://paste.pythondiscord.com

strange musk
#

I mean the whole script

#

which is like 600 lines

rough sapphire
#

hmm

wraith hound
brazen mica
#

I kinda feel bad that
there are over 150,000 people in this server
but only 100 joined the bootcamp broadcast(?)

strange musk
#

so kinda like a decent terminal view showing the most mem heavy objects

rough sapphire
#

try enumerating alll the variables in the script one by one, somehow then do pickle.dumps

wraith hound
#

And not everyone is available right now

brazen mica
wraith hound
#

Like I can't join vc at the moment

rough sapphire
strange musk
rough sapphire
strange musk
rough sapphire
acoustic moss
#

!pypi memory_profiler

royal lakeBOT
wraith hound
brazen mica
acoustic moss
#

i've used that before

rough sapphire
#

@wraith hound it is over 2000

#

hmmmm'

#

try using the python pastebin?

strange musk
wraith hound
#

Then only post the relevant parts

brazen mica
rough sapphire
wraith hound
rough sapphire
#

u can dm me if you want @rough sapphire

brazen mica
#

```js
code goes here
```

rough sapphire
#

@wraith hound sir/ma'am I need it to be fixed please help me

wraith hound
#

Like I said, post the relevant code parts and we'll try to help

rough sapphire
wraith hound
rough sapphire
#

the real mod mail ?

acoustic moss
#

if by real you mean the one running in the server, yes

rough sapphire
#

yes the discord certified Mod Mail

strange musk
#

I have peaked

ImportError: No module named python
#

beat that ya nerds

shrewd prawn
#

wrong error bud

strange musk
#

but its an import error

#

how do you get that 😏

solid elbow
#

ModuleNotFoundError is a subclass of ImportError

royal lakeBOT
#

:incoming_envelope: :ok_hand: applied mute to @rough sapphire until 2021-06-26 22:29 (9 minutes and 59 seconds) (reason: mentions rule: sent 85 mentions in 10s).

remote socket
#

now that's a lot of pings

opaque sentinel
wraith hound
#

Wow

edgy arrow
#

bruh

#

??????

remote socket
#

User has been completely annihilated.

rough sapphire
#

what happened

#

wat

#

why did i get ping

wraith hound
#

Some user decided to ping 85 people

rough sapphire
#

oh

twilit shore
#

?

#

That’s a server invite

#

u might get in trouble for posting that invite as it is not a pydis partnered/approved server

timid latch
#

@rough sapphire please dont post unapproved invite links on the server 🙂

timid latch
#

oh sorry wrong, ! ...

tranquil orchid
#

@woeful quiver What do you mean by "one side"

woeful quiver
tranquil orchid
#

Those are dimensions

#

As in, you'll have x amount of pixels along the x-axis, and y amount along the y-axis

#

Multiply those together and you get the total number of pixels

woeful quiver
#

so in x you only have 1080 pixels

#

(for example)

tranquil orchid
#

So my monitor for example has a resolution of 3440 x 1440

#

Which equates to...

#

!e print(3440 * 1440)

royal lakeBOT
#

@tranquil orchid :white_check_mark: Your eval job has completed with return code 0.

4953600
tranquil orchid
#

4.95 million pixels

woeful quiver
#

for the whole display?

tranquil orchid
#

Yep

woeful quiver
#

is 4k a resolution or pixel density?

#

resolution?

tranquil orchid
#

That's a resolution

#

It means that horizontally, the display has around 4k pixels

#

Vertically it's usually about 2.1 thousandish

woeful quiver
#

but many TVs are 4k with different sizes

tranquil orchid
#

That's where pixel density comes in

#

The larger the screen with the same resolution, the more spread out the pixels, the lower the density

woeful quiver
#

so then resolution shouldnt matter lol

#

density is more important?

tranquil orchid
#

Generally yeah

#

The greater the density the sharper the image

woeful quiver
#

PPI is something else?

tranquil orchid
#

Pixels per inch?

#

That's just a unit of pixel density

woeful quiver
#

yeah

woeful quiver
#

*inches

#

lol

tranquil orchid
#

I mean it could be in pixels per square meter sure

#

Doesn't matter what it is, so long as it's pixels per some unit of area

woeful quiver
#

i meant squared inch

tranquil orchid
#

Yeah, just infer it to mean pixels per square inch when you read pixels per inch

woeful quiver
#

so thats what it means?

#

pixels per SQUARED inch?

tranquil orchid
#

yeah

woeful quiver
#

why dont they say that

#

PPSI lol

tranquil orchid
#

¯_(ツ)_/¯

woeful quiver
#

still sounds odd to me that the x axis can only has 1080 pixels noobthink

tranquil orchid
#

Yeah that was just a random number by me

#

well

#

kind of

#

You'll find a lot of screens with a 1920 x 1080 resolution

#

Often just called 1080p

woeful quiver
#

0.26mm x 16.4inch

#

wait huh

#

nvm

#

thanks @tranquil orchid

lunar nexus
#

!e
0.26*100

royal lakeBOT
#

@lunar nexus :warning: Your eval job has completed with return code 0.

[No output]
tranquil orchid
#

Although there is relatively new technology that's made pixels a lot smaller

woeful quiver
#

interesting

tranquil orchid
#

@icy tapir have you considered Rust over C++

tender smelt
#

lul

rich moon
#

naw just spam std::unique_ptr and u get sth similar to ownership /s

icy tapir
tranquil orchid
#

It's on the same kind of level as C and C++

icy tapir
#

Cool

#

Is it better in any fields, though?

#

Is the syntax simpler and better?

tranquil orchid
#

Probably it's most major advantage over C++ and C is it's memory safety. Rust was designed with safety in mind, it won't let you mess things up in terms of memory

#

Also just the fact that its modern

#

C and C++ are old, they have a lot of new and old legacy features which make them fairly bloated

icy tapir
#

hmm

#

So it's better?

tranquil orchid
#

In a lot of situations I would consider it to be better yeah

icy tapir
#

then ill probably learn it :D

tranquil orchid
#

The book is amazing

icy tapir
#

seems like it

tranquil orchid
#

They look to be the same

icy tapir
#

ok

tranquil orchid
#

Plus the built in package manager is really nice

versed saffron
#

@tranquil orchid have you looked at the cpython or PyO3 crates?

tranquil orchid
#

I haven't yet

latent scaffold
#

uh oh

#

Aboo incoming

inland wolf
#

another one bites the rust

vivid temple
#

And another one gone and another one gone

#

Another one bites the rust

#

Hey I'm gonna get you too

edgy crest
inland wolf
#

aha

rough sapphire
late ether
#

Suggest me a thriller movie

sand crane
#

Carrot

near bolt
#

why isit sometimes for casting it is int() while sometimes it is (int)

#

for c? how about python is there both ways

graceful basin
#

for C, there is int() in the standard library

#

and (int) converts a numeric type into int

#

in python int() will convert any type with __int__ into an int

near bolt
graceful basin
#

well, strictly speaking you can do (int)(5 + 5) in python, but that is just int(5+5) written weird

inland wolf
#

yea

near bolt
#

ok thx

meager lion
#

anyone good at physics if so could someone asnwer this question please

#

the actor is under yellow light btw

#

plz ping me if u have an answer

harsh tundra
rough sapphire
#

There are two switches and yellow is formed with two colors

jagged fog
#

I'm thinking that would be wasteful? I assume whatever is in the backend also has separate month/day counters for each value, for example this message would increment counter instance for message where month = 6

#

new month comes create new counter instance with month 7 etc

#

I' asking because I want to do basic stats for my bot but also want to have information how much per month/day the command has been used. Saving date for each would be wasteful. I think I actually answered my question with the above example, I'll go with something like that

meager lion
harsh tundra
meager lion
#

i said it was black

#

the shirt would appear but i said there is no colour for the shirt to reflect therefore appearing black to the human eye

latent scaffold
#

what on Earth is your nickname

#

th...t3gpjcy

rough sapphire
#

helo

lunar crescent
rough sapphire
proud scarab
#

idk if it makes sense to change these 2 140mm for 3 120mm
like where would the air of the lowest 120mm fan go?

#

into the hard drive cage?

solid pollen
#

Well, yes

#

It contributes to the general flow

#

You usually want to have more intake than outtake

proud scarab
#

I was thinking of moving the two 140mm intakes to be outtakes on top

#

and 3 noctua NF-A12 as intake

#

so 3 in and 3 out, the rear out being a stock fan

#

but idk of that would give it more positive pressure

#

sorry negative as i think these 140mm are powerful

barren silo
#

test

rich moon
#

sus

clear plume
#

We could run a selfbot test...

last mantle
#

@proud scarab a fan on the cage is ...

#

I don't think it improves anything

rich moon
clear plume
#

🎉 GIVEAWAY 🎉

Prize: Nitro
Timeleft: Infinity
React with 🎉 to participate!

inland wolf
#

lol

clear plume
#

@quick ledge is always lurking lol

quick ledge
acoustic moss
#

where nitro

clear plume
#

Just because you have nitro doesn't mean you need to use animated emojis everywhere.

acoustic moss
#

Just because I don't have nitro doesn't mean I can't use animated emojis everywhere.

clear plume
#

What

acoustic moss
clear plume
#

How

acoustic moss
#

||spanish inquisition||

rough sapphire
topaz aurora
opaque bronze
clear plume
#

|| @acoustic moss what have you started ||

inland wolf
#

stop spoilers!!

last mantle
#

yes

opaque bronze
inland wolf
#

damn

solemn leaf
opaque bronze
inland wolf
#

wht is this chat

opaque bronze
inland wolf
#

bruh

opaque bronze
#

||use spoilers or else......||

edgy crest
#

this is getting opposite of based now

opaque bronze
#

its now bad

solemn leaf
#

vinam getting darker

edgy crest
#

ok

solemn leaf
#

sed

opaque bronze
#

that cartoon stick guy with fire on his head

edgy crest
#

didnt ask

opaque bronze
edgy crest
#

i have one more but later

opaque bronze
#

nice

inland wolf
rough sapphire
#
if fine == "hm":
    print("===> You are dumb <===")
    print("           ^       ")   
    print("          / \      ")
    print("         /   \     ")
    print("        /     \    ")
    print("       /_______\   ")
    print("       |  __   |     ")
    print("       | |  |  |    ")
    print("       | |--|  |       ")
    print("       | |  |  |    ")
    print("       |  --   |  ")
    print("       |       |   ")
    print("       |       |   ")
    print("       |       |   ")
    print("      _|       |_  ")
    print("     |___________| ")```
opaque bronze
solemn leaf
#

makes a oneliner

opaque bronze
#
print("""
USE DIS LMAO
      DIS IS COOL
LOOK AT DIS
""".strip())
acoustic moss
#

leading and trailing newlines 😔

opaque bronze
#

imagine

opaque bronze
acoustic moss
opaque bronze
#

hahastinkypoop was a nice guy

#

follow in his footsteps, hsp

acoustic moss
#

nevre

solemn leaf
inland wolf
#

wtf

shrewd prawn
#

wut is this chat lol

last mantle
#

wtf is that lmao

latent scaffold
#

Who even makes these videos

solemn leaf
#

ikr

rough sapphire
#

.uwu beenie weenie

median domeBOT
#

beenie weenie

rough sapphire
#

this room locks its entrances and spawns enemies. Once the enemies are defeated the room unlocks letting the player proceed.

latent scaffold
#

command blocks... youch

rough sapphire
#

I like working with them but i do plan on remaking this feature as a mod

rough sapphire
final glacier
surreal otter
#

@rough sapphire as the admin said, we can discuss in OT if you'd like to discuss the rules of the server

#

but the server is in its right to make its rules

#

and one of those rules is no breaking TOS

#

!ytdl

royal lakeBOT
#

Per Python Discord's Rule 5, we are unable to assist with questions related to youtube-dl, pytube, or other YouTube video downloaders as their usage violates YouTube's Terms of Service.

For reference, this usage is covered by the following clauses in YouTube's TOS, as of 2021-03-17:

The following restrictions apply to your use of the Service. You are not allowed to:

1. access, reproduce, download, distribute, transmit, broadcast, display, sell, license, alter, modify or otherwise use any part of the Service or any Content except: (a) as specifically permitted by the Service;  (b) with prior written permission from YouTube and, if applicable, the respective rights holders; or (c) as permitted by applicable law;

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;

9. use the Service to view or listen to Content other than for personal, non-commercial use (for example, you may not publicly screen videos or stream music from the Service)
rough sapphire
#

sure

#

admin

surreal otter
#

they even have a special thing about YTDL specifically

rough sapphire
#

i condenm my own act

surreal otter
#

3. access the Service using any automated means (such as robots, botnets or scrapers) except: (a) in the case of public search engines, in accordance with YouTube’s robots.txt file; (b) with YouTube’s prior written permission; or (c) as permitted by applicable law;

#

This one speciically says no automated access

#

the content does not matter

#

it is YT's server you are accessing

#

we will not help write code to violate TOS

#

it's that simple

#

You can disagree until you turn blue in the face AND the cows have come home

quick ledge
#

I think they get the idea

rough sapphire
#

😆

#

yup

surreal otter
#

check general

rough sapphire
#

sorry

surreal otter
#

they kept it going and I did not want to continue there

#

so I wanted it to go away from general

rough sapphire
#

oww

#

i wanted to ask one more thing!

#

is manually translated content still copyright of source of content?

rough sapphire
surreal otter
#

likely

#

as the content is now new

#

the translator's interpretations of hte words

rough sapphire
#

its like inspiration... and i read inspiration is allowed

surreal otter
#

just because hte original source was free doesn't mean the newly formed phrases are

#

You can be inspired all day

#

but you cannot take what someone else made unique whilst inspired

#

just because the source of inspiration is free

rough sapphire
#

hmm got it

surreal otter
#

so the content you make is yours

#

the contnet that inspired you is free to inspire

#

your content can inspire

#

but your unique content is yours alone

#

until the lawyers show up and change things

#

and kelloggs actually owns that thign you did

rough sapphire
#

👀 😆

surreal otter
#

One of my favorite things about this server is the strict enforcement of hte rules

rough sapphire
#

so dude is gTTS and googletrans and pytube

#

all illegal?

surreal otter
#

keeps the place happy

#

not illegal

#

like I said, you can translate all day

#

and breaking TOS is generally not illegasl

rough sapphire
#

but they violate google terms..... they are automated tools made by reversing api of goole

surreal otter
#

we just don't help with it

#

America doesn't give a shit about the ToS of Google

#

Neither does North Korea

#

or Iran or England

#

ToS are for users and companies

#

Laws are for people

rough sapphire
#

no one take copyright seriously until action is taken

surreal otter
#

I can make my ToS say you must not wear pants while using my app

#

and I can rightfully ban people for wearing pants while using my app

#

doesn't mean your government will punish you for wearing pants while using my app

graceful basin
#

we have to enforce TOS because discord rules require us to

surreal otter
#

but it does mean we won't help you circumvent wearing pants while using my appo

graceful basin
#

I am not very happy about it either, some TOS is really dumb

surreal otter
#

as silly as it sounds

rough sapphire
#

google has right to ban me from their service... not legally binding though until i request like i am doing DDOS

#

😆

latent scaffold
#

uh

surreal otter
#

if you said I LOVE THIS APP and amm working on ML to put pants on me, since it wants to see me pantless we'd have to pass

#

hopefully that silly example makes sense

rough sapphire
#

i am quite amazed by world of API's

surreal otter
#

they are neat

#

Etsy is updating theirs right now

rough sapphire
#

👀 and mostly reverse engineered

surreal otter
#

after I just finished building a tool for my wife

rough sapphire
surreal otter
#

so now I need to actually learn to access it if someone doesn't make a wrapper quick

#

it loads her receipts

#

actually

rough sapphire
#

which technologies you used to make it possible?

surreal otter
#
from key_getter import etsy_login
from etsy_utils import get_receipts, get_transactions, gather_the_data, listify
from sheets_utils import get_sheet, get_sheet_data, fill_sheet


if __name__ == "__main__":
    etsy = etsy_login()
    sold_items = get_receipts(etsy)
    active_receipts = get_transactions(sold_items, etsy)
    the_data = gather_the_data(sold_items, active_receipts)
    the_list = listify(the_data)
    sheet = get_sheet("Water Balloon Orders", "To Make")
    data = get_sheet_data(sheet)
    fill_sheet(data, the_list, sheet)
#

so I login using the etsy2 python package

#

grab all the receipts from her unshipped queue

#

get the transactions from the receipts (each listing is its own item)

#

process the data

rough sapphire
#

COOL

surreal otter
#

organize the data

rough sapphire
#

How old are you sir?

surreal otter
#

grab the google sheet, figure out what's on the sheet, add the new data to the sheet

#

30's

rough sapphire
#

😆

#

i am just 16

#

and which country u from?

surreal otter
#
def gather_the_data(sold_items, active_receipts):
    the_data = {}
    for item in sold_items:

        name = item['name'].split()[-1]
        message_from_buyer = item['message_from_buyer']
        date = datetime.date.fromtimestamp(item['creation_tsz'])
        is_gift = item['is_gift']
        ship_by = datetime.date.fromtimestamp(item['shipped_date'])
        usps = item['shipping_details']['shipping_method']
        transactions = []
        the_data[item['receipt_id']] = dict(name=name, message_from_buyer=message_from_buyer, date=date,
                                            is_gift=is_gift, ship_by=ship_by, usps=usps, transactions=transactions)

        for idx, transaction_ in enumerate(active_receipts[item['receipt_id']], 1):
            #         pprint(transaction)

            transaction = transaction_['transaction_id']
            product = transaction_['title'].split()[0]
            quantity = transaction_['quantity']
            variation = transaction_['product_data']['property_values'][0]['values'][0].split()[0]
            cost = transaction_['product_data']['offerings'][0]['price']['currency_formatted_raw']
            _dict = dict(transaction=transaction, product=product, quantity=quantity, variation=variation, cost=cost)
            the_data[item['receipt_id']]['transactions'].append(_dict)

    return the_data``` here's where I process some of the data
#

US

rough sapphire
#

don't mind sir... I just laugh at everything

surreal otter
#

no worries

#

no offense taken

rough sapphire
surreal otter
#

I wish I started programming earlier than last year

#

Jealous of all the young kids that come here

rough sapphire
#

really it's just been a year?

surreal otter
#

and 2 months

#

but yea

#

late april

#

of 2020

#

decided to start learning programming

rough sapphire
#

i actually started a year ago..
i learned full stack web dev.. python as general purpose language

latent scaffold
#

ah yeah I started in August of last year

rough sapphire
surreal otter
#

even though our brains are less malleable as we age, it seems our discipline and ability to hunker down is much better

#

I used to be too distracted by games to study and learn

#

now the games are for the kids

rough sapphire
#

👀 yes sir

surreal otter
#

I mean my kids, haha

#

in my house I'm not the gamer, the girls are

rough sapphire
#

haha

#

your daughters

surreal otter
#

ya

rough sapphire
#

cool

surreal otter
#

Just got them a computer, so they get to use my decade old steam library and the countless games I've collected from Epic

#

there's actually a few gems in ther efor hte kids

#

that I didn't even know I had, haha

#

and some other games that have blown up in popularity

rough sapphire
#

I will come to US once my startup grows quite a bit

#

talking of games

surreal otter
#

I picked up Fall Flat in a humble bundle like 4 years ago

#

it's their favorite game

rough sapphire
#

In Asia almost all of games are pirated.. really no one has money to even buy windows
Indian subcontinent to be specific

acoustic moss
#

quite the generalization to make for a 1.3b population

surreal otter
#

I imagine people prefer food and needs to expensive video games

rough sapphire
surreal otter
#

they make more money with consumers learning their platform and being proficient employees of companies that pay for licenses

#

that's why it's so easy to run unactivated windows

rough sapphire
surreal otter
#

it's all part of their busines plan, it's not allwoed but they don't give a shit

surreal otter
rough sapphire
surreal otter
#

started linux in september

#

absolutely love it\

#

I always hated windows, things are just so easy on linux

rough sapphire
#

I used Linux later I left just for gaming and drivers support

surreal otter
#

steam has amazing gaming support now

rough sapphire
#

in linux?

surreal otter
#

yea

#

even some games that don't support linux work

rough sapphire
#

i might soon switch if that's the case

surreal otter
#

EAC is the biggest issue

#

there's certain EAC that requires windwos

#

Most of the games I play work on Linux

#

but those are the games I play, haha

rough sapphire
#

👀 fair price to pay for using linux

surreal otter
#

Yea, if anything Linux helped pry me away from games

rough sapphire
#

nice

surreal otter
#

yep

rough sapphire
#

which city are you from in the US?

surreal otter
#

but now i just type factorio in the shell and it loads

#

between philly and nyc

#

not a city, haha

#

a town

#

pretty sure I'm the only krzysztof here

rough sapphire
surreal otter
#

but there's bound to be a few in the metros

rough sapphire
#

metro city?

surreal otter
#

yea, it's not a common name in America

latent scaffold
#

lol

surreal otter
#

but near certain ethnic centers it'll be more common

#

namely around the polish areas

rough sapphire
#

hmmm i see

surreal otter
#

but that's all irrelevant

#

I don't care much for the cities

rough sapphire
#

hopefully

surreal otter
#

it's not all that great, but I guess it's worth a visit

#

lots to see if you're just visiting

brazen ingot
#

Yo did you buy one more dog? @eternal wing

#

lmao 🐕

#

and congo for Certified Moderator! 🔨

latent scaffold
#

Fisher is actually a fusion of two dogs, like from Steven Universe

brazen ingot
#

lol

#

@eternal wing you lurking or what?

latent scaffold
#

me thinks Fisher is... away

brazen ingot
#

lmao, he changed the status

#

how is he away?

#

oh gone offline

#

now*

#

typing llol

#

👀

eternal wing
#

and I dont buy dogs hyperlemon Rescue only haha

brazen ingot
#

oh idn't know that

limber mantle
#

best mattress for scoliosis?

brazen ingot
latent scaffold
#

oops. I read that as "best mattress for Scaleios"

brazen ingot
#

will be bettr

#

lol me too

brazen ingot
#

@limber mantle

limber mantle
latent scaffold
#

huh

rough sapphire
#

Scaleios is an admin in the server

limber mantle
#

google failed me

limber mantle
rough sapphire
latent scaffold
#

uh oh. what if Scale is an Apple user

#

Scale + iOS

#

:faint:

limber mantle
#

do you have any link somewhere that provides the right definition?

#

hmm... ScaleIO is actually even a soft

brazen ingot
#

lol

latent scaffold
#

there's a mushroom on your shirt

edgy crest
#

what

latent scaffold
#

there's a mushroom on your shirt

#

oh yes. I went to add my bluetooth earbuds

graceful basin
#

gotta say, non monospace fonts are quite nice for programming.

ruby fox
tardy rain
#

not unless you tell it to

graceful basin
#

the terminal does get broken if you do this

#

but my program doesn't do terminal output anyway, so idc

uneven pine
#

That's cursed

graceful basin
#

I should try a serif font

#

looks kinda nice

tardy rain
#

uh

#

nice wouldnt be my choice of word

graceful basin
#

I mean, is there any real merit to a monspace font

#

I don't use multiple cursors

acoustic moss
#

it just looks wrong to me

tardy rain
#

monospace just looks nice

#

everything is standardized in width

#

hits different

acoustic moss
#

communism

graceful basin
#

hot take: things aligning columnwise in code makes parsing it harder

#

since code is always read line by line

acoustic moss
#

unbased

tardy rain
#

unbased indeed

graceful basin
#

so your perception seeing a column is harmful

tardy rain
#

you usually scan code for blocks, monospace helps identify blocks quicker

graceful basin
#

I generally don't like seeing code as rectangles

fervent dock
#

imagine typing

In [1]: array = [
   ...:   [1, 2, 3],
   ...:   [4, 5, 6],
   ...:   [7, 8, 9],
   ...: ]

and it doesn't align

#

i'd collapse

tardy rain
#

That would crack the shit out of my gears let alone grind them

fervent dock
tribal aurora
#

Array hell

rich moon
#

formatter go brr

#

i type anything i want and formatter fixes

graceful basin
harsh tundra
graceful basin
#

fair

#

funnily enough, the tables would be monospace, since this config breaks the terminal and it does this

harsh tundra
#

best font choice

#

this looks weird with header info - all those numbers 😮
I typed the text while using wingdings, so the line was printed short, it adds to the weirdness XD

#

this looks fancy

fervent dock
#

i think joe likes italics

#

speaking of fonts, I've recently given up ubuntu mono, which used to be my favourite mono font

#

after many years I simply concluded it looks like shit

harsh tundra
#

Ye Olde Python

harsh tundra
fervent dock
#

joe's british, not sure if english

graceful basin
#

Joe is Welsh

harsh tundra
#

I only knew about British part, hence English is inside parens and with question mark 🙂

vapid nymph
#

aaaaaaaaaaa

tender smelt
#

windows terminal is pretty good

winter terrace
#

I wonder if there’s a practical purpose to wingding

tender smelt
#

pranking your friends

graceful basin
raw dust
wraith hound
#

Hyper is nice as well

#

But I prefer windows terminal

uneven pine
#

Windows terminal seems great, the only issue is I can't use it on Linux and OSXI

graceful basin
#

yeah, if you need cross platform, you probably want alacritty

uneven pine
#

I was using extraterm previously

#

but it has some speed issues on Windows

graceful basin
#

alacritty is no slower than wt, and I would be willing to bet it is faster, but I don't have data for it

uneven pine
#

alacritty is super lightweight

#

but it's a boat to configure which is why I avoided it

graceful basin
#

yeah, that's fair

rough sapphire
#

can confirm, the defaults are bad

uneven pine
#

I want lots of eye candy, with acceptable performance

#

and getting alacritty to that, especially with a single config that'll just work regardless of platform is well

#

an undertaking

rough sapphire
#

i can't lie

#

i've gotten lazy lately

uneven pine
#

I had trouble getting the eye candy part to work well on linux, by itself

rough sapphire
#

so i have been keeping a tty open

graceful basin
#

what is just an actually nice terminal for linux with no configs

#

windows terminal defaults are good enough for most things

rough sapphire
#

because i don't wanna integrate a service for the irc client i'm making

uneven pine
#

what's the gnome shell default one?

#

whatever it is that comes with gnome shell is quite nice out of the box

#

Konsole, by comparison, despite KDE being way more eye-candy oriented is GOD AWFUL

rough sapphire
#

isn't "gnome terminal" a standalone application

uneven pine
#

ah yeah, that's it

#

gnome terminal

graceful basin
#

I will probably be stuck with st, I need very very lightweight and no GPU dependency

uneven pine
#

you'll have to excuse me as I hate gnome.

rough sapphire
graceful basin
#

since this laptop can't run alacritty

#

yeah, I don't really want to pull in gnome here

rough sapphire
#

even tho you have to edit the source and recompile for changes which

graceful basin
#

yeah, that's what I would rather avoid

rough sapphire
#

uh, sux

uneven pine
#

I tried the whole window manager thing

#

specifically i3wm

graceful basin
#

I like i3

#

but it is definitely not for everyone

rough sapphire
#

me too but i wouldn't daily drive it

uneven pine
#

it was okay, but just didn't really seem like it was a good use case for day to day use

rough sapphire
#

yeah def

uneven pine
#

I'd use it on my home server

#

to have monitoring stuff up on

#

a passive display, basically

graceful basin
#

I like it because I often need to split things between reading docs and coding etc

#

oh yeah, that is also a great usecase

rough sapphire
#

i did like pop os

uneven pine
#

I do that just fine with KDE

#

and hell, even on windows

rough sapphire
#

because it has a toggle between tiling windows and just normal

graceful basin
#

yeah, other things do it fine as well

uneven pine
#

windows 11 is making that even better, too. I'm excited for it

rough sapphire
#

buuuut it uses gnome

graceful basin
#

but I also like that i3 improves on alt tab

uneven pine
#

I don't hate gnome as a concept, if something else makes gnome better like Pop!_OS I'd consider it

#

I just hate the default gnome shell

graceful basin
#

because alt tab is nice, but i3 does do it better

uneven pine
#

Titlebars on windows are too big, icons are too big, everything is too big

rough sapphire
#

eh it doesn't work too well for me anyway

uneven pine
#

it's a UI clearly designed for a tablet

graceful basin
#

also, window focus on hover

uneven pine
#

except it's not optimized at all for tablet use

graceful basin
#

I do like large fonts

rough sapphire
#

i don't dig it

uneven pine
graceful basin
#

I use discord 2 zoom levels in and have 18 point fonts in all my editors

uneven pine
#

I'm the type of person to move my mouse cursor out of the way when I'm doing something

#

so I was getting loads of input on the wrong software lol

graceful basin
#

yeah, I can imagine that getting annoying

rough sapphire
#

doesn't sound like a feature i'd use

uneven pine
#

in gnome default they're like 12 inches tall

rough sapphire
#

i suppose that'll vary from monitor 2 monitor but

uneven pine
#

yeah, see, that's huge

rough sapphire
#

i do think they're on the chonker side

uneven pine
#

it's so clearly a UI optimized for tablets

#

yet gnome is horrible on tablets 😂

graceful basin
#

why would you have such a small button in such a large space

rough sapphire
#

...which is strange because

graceful basin
#

large buttons are good

rough sapphire
#

system76 sells computers preloaded with pop os

uneven pine
#

All I hear from gnome users when I point that out is that "gnome sucks on tablets it's keyboard oriented"

#

Which I never really got tbh

#

Like, I've used gnome shell a bit, I think it'd be fine on a tablet

#

out of the box it's probably the best environment for a tablet, normal use case wise, if you ask me

graceful basin
#

like, look at the windows buttons, they are the size of the entire header

uneven pine
#

again, because everything is 2 to 4 times bigger than it needs to be

rough sapphire
#

i do like this product from them https://system76.com/desktops/meerkat

Adorns your desk without consuming it. Small but fierce, Meerkat is the perfect combination of performance and efficiency. System76 desktop computers are custom-built to run Linux flawlessly.

#

hard to afford for me tho, but it's on the back burner

uneven pine
#

yeah I desperately need a new laptop

#

mine has a broken screen and it costs more than the laptop is worth to replace it

#

3rd gen mobile i3s did not age well at all, it's barely even usable for basic web browsing

#

with a lightweight linux distro

#

doesn't help that it only has 6gb of RAM, which again, is barely usable for all but the most basic tasks these days

rough sapphire
#

oh man my dream is a zephyrus duo 15

uneven pine
#

I just want a mid-range laptop

#

something with a good processor, like a 4800H

#

and a mid range RTX card

#

so I can game a bit in my room rather than go downstairs

#

and not worry about performance

#

usually those run at like $1k flat

graceful basin
#

if you have good internet, you may want to look into cloud gaming depending on what category of games you play

uneven pine
#

I have google fiber

#

but I've tried that actually, I am not thrilled with it

rough sapphire
#

i got a free trial for this service, nware

uneven pine
#

it also doesn't work at all for most of the games I play (FPS that require ultra-low-latency)

graceful basin
#

ah yeah, no cloud gaming for you

rough sapphire
#

it works pretty great, allows you to allocate 100gb on a machine and you can install whatever as long as you own the license

uneven pine
#

Yeahp, unfortunately I'm not a casual gamer :(

rough sapphire
#

i hear nvidia geforce now works great but

#

latency is gonna be a deal breaker for fps anywhere

graceful basin
#

I generally play slow RTS like hearts of iron 4, so cloud gaming works pretty ok for me

rough sapphire
#

i have a playstation vita with custom firmware and this tool called moonlight

#

allows me to stream pc games to it using geforce experience

#

works pretty great, even over the network with proper configuration

graceful basin
#

but it is a bit too pricey and I do have a computer powerful enough for most games I want to play

rough sapphire
#

nware's pro subscription which i vouch for starts at 11 usd mo/

#

actually make that 12, tax

uneven pine
#

I have used an app to sream my PC to my phone

#

while being hundreds of miles away

#

on mobile data

#

and managed to play minecraft to good success

rough sapphire
#

when i said "over the network" i was refering to idk

uneven pine
#

local network

#

WAN

rough sapphire
#

friend's house with 5ghz network wifi

uneven pine
#

yeah I know

#

I've just managed to do an extreme

rough sapphire
#

streaming anything over mobile data doesn't sound gud

#

however i do live in a third world country

#

with overpriced plans and terrible service

#

even 4g is rare to find

uneven pine
#

eek

rough sapphire
#

that just sounds like mobile data with extra steps

shell cave
#

My little sister had one of those

ebon condor
#

my mom uses smth like that for her laptop because our wifi goes down a lot

topaz aurora
#

Actually used to play League with one of these lmao

rough sapphire
#

.uwu oo wee you

median domeBOT
#

oo wee yuw

rough sapphire
#

.uwu hastune miku

median domeBOT
#

hastune miku

latent scaffold
#

hastune

rough sapphire
#

oops

#

hatsune?

#

.uwu hatsune miku

median domeBOT
#

hatsune miku

uneven pine
#

Don't we have a channel to spam bot commands in?

latent scaffold
tribal aurora
#

I meant, I wanted to build something like this

#

is it possible with rich ?

thick osprey
#

Totes

tribal aurora
#

hm ?

thick osprey
#

Totally possible. Pretty fun to make too

latent scaffold
odd sluice
#

i mean, it's literally in the docs first page pictures (a ui like that)

latent scaffold
#

:L

violet roost
tribal aurora
#

but, I can't install curses on arch

#

any idea ?

#

:(

violet roost
#

what do you mean with "any idea"

#

any idea about what

tribal aurora
#

what should I do now ?

violet roost
#

why can't you use curses on arch

tribal aurora
#

unsupported os

violet roost
#

that's bs

tribal aurora
#

bs ?

violet roost
#

bullshit

inland wolf
#

yes

tribal aurora
#

hmmm

solemn leaf
#

Since rich can't take user inputs sadly

gritty zinc
acoustic moss
#

no clue what happened but looks like you won

gritty zinc
#

I did! I can't believe how much better my first version of a genetic algorithm works compared to what I had before

gritty zinc
edgy crest
#

genetic algo sound interesting

#

might do them some day

gritty zinc
#

(note that the opponent here that the random search lost to has a rating of 36.33. For comparison, DarthBoss from the first replay (the boss of the Gold league that you need to be better than to progress to Legend) is 41.85, and my new GA solution is 45.01)

opaque bronze
#

what is codingame?

gritty zinc
#

a competitive programming site which I'm mostly on for the Bot Programming and Optimization tasks

#

this one is the former.

edgy crest
#

though right now trying to find a shader on the internet which i can yeet in my code to make circles glow

opaque bronze
#

imma check it out

gritty zinc
#

I love how the current algorithm is already good enough for emergent behaviour

#

my own pods sometimes collide with one of them enabling its shield to repulse the other - usually the hunter pod boosting the runner towards its next checkpoint, but sometimes the opposite - the runner boosting the hunter to a position where it can intercept the enemy pods

opaque bronze
#

so is it a website where you design bots to fight against other people's bots?

gritty zinc
#

well, that's what the Bot Programming section is, yeah

opaque bronze
#

noice

#

wtf is clash of code

#

this is confusing me

gritty zinc
#

basically short multiplayer competitive programming matches.

#

like <15minutes (15min is the time limit, you can finish faster)

opaque bronze
#

is it like hackerearth's code arena

gritty zinc
#

dunno, didn't play that

opaque bronze
#

hmm

#

do they allow you to install libraries?

#

would be a bummer if i can't

tender smelt
#

no, std lib

opaque bronze
#

oof

edgy crest
#

wont installing libraries just

#

ruin the purpose

opaque bronze
#

i have to actually code the libraries

#

imagine you can't use numpy 😫

gritty zinc
#

uhh, that was meant as a reply to @opaque bronze, whoops

tender smelt
#

o really?

gritty zinc
#

for example, for Rust there's a few crates like rand, so you don't have to implement your own XORShift like I did initially as I didn't find that page

tender smelt
#

ah, right

opaque bronze
#

hopefully there's numpy right

tender smelt
#

i don't think so

gritty zinc
#

3.9.2
Includes NumPy 1.20.2, pandas 1.2.4, SciPy 1.6.3

#

rejoice.

tender smelt
#

wow

gritty zinc
#

even scipy, wow

#

you can do all the fourier transforms and convolutions you want

tender smelt
#

yeah, that's a surprise

gritty zinc
#

that's actually... may well be better than compiled languages for many problems

opaque bronze
#

looks look i have to code my own neural network lemon_angrysad

gritty zinc
#

like, numpy uses Fortran linalg libraries and the like

opaque bronze
#

grrrrr i have to backpropagate manually

gritty zinc
#

but I feel like the main problem would be how to train it

opaque bronze
#

imagine not using autograd

gritty zinc
#

like... what'd you do, log each round, then train locally?

opaque bronze
#

think about it

gritty zinc
#

either that, or you'd have to build a completely local simulator

opaque bronze
#

i think you can train locally and then paste the weights

gritty zinc
#

yeah, that's my idea too

opaque bronze
#

can you make more than one file

gritty zinc
#

nope

opaque bronze
#

oof

gritty zinc
#

I do believe that some people use NNs

opaque bronze
#

imagine pasting 1.5B parameters lmao

#

chrome will die

gritty zinc
#

I've seen top-something people say they did Search Race using q-learning

gritty zinc
#

it's like one function

acoustic moss
#

...

gritty zinc
#

Rust 1.51.0
Includes chrono 0.4.19, itertools 0.10.0, libc 0.2.93, rand 0.8.3, regex 1.4.5, time 0.2.26
I wonder what the hell chrono, libc and time do

#

maybe I should learn them if they are apparently common enough to be available here

opaque bronze
#

oh heck yeah itertools

acoustic moss
#

imagine not having itertools in the stdlib 🥱

opaque bronze
#

so python programs compete only against python right?

acoustic moss
#

uh i doubt that

gritty zinc
#

nope

opaque bronze
#

because python programs would get rekt by c++ and rust lol

gritty zinc
#

all compete with their entire league

#

that's true, in most cases you need a compiled language to reach Legend

opaque bronze
gritty zinc
#

no

tender smelt
opaque bronze
#

THEN

odd sluice
#

i think the best way to alleviate this is to take compiler time into consideration

gritty zinc
#

but reaching middle Gold is totally possible with just heuristics, which can be done in Python

tender smelt
#

the only new itertools are wild ones like interleave

gritty zinc
#

for that matter, you can train a neural network in Python, and implement the actual agent (which only needs forwardprop) in Rust 😛

opaque bronze
#

yeah, but rust have ndarray?

acoustic moss
#

how do you move a neural network between languages
do you just ctrl c ctrl v the weights and biases lol

opaque bronze
#

or else you have to code your own matrix library 👀

gritty zinc
#

you would, yeah

opaque bronze
#

damn

gritty zinc
#

that slightly concerns me because quick matrix mul is already not easy

#

like, numpy's is in Fortran

opaque bronze
#

exactly

gritty zinc
#

actually, why not do it in Python now that I think of it

odd sluice
#

can someone explain codingame
looks like it can become my next addiction

gritty zinc
#

so yeah, just everything in Python

gritty zinc
odd sluice
#

huh

gritty zinc
#

the former is basically games in which you write an AI that competes against other players' AIs.

odd sluice
#

I do have an account
but I've never played

gritty zinc
#

the latter is solving some task that can't be solved exactly as well as possible.

odd sluice
#

nice

gritty zinc
#

it's pod racing (complete 3 laps over a bunch of checkpoints before your opponent)

inland wolf
#

step it up

gritty zinc
#

But, you control two pods and so does your opponent

#

and only one needs to finish the race

#

so you are free to use the other to mess with your opponent

acoustic moss
#

oh damn

inland wolf
#

bruh

#

lol

acoustic moss
#

how many players are there per 'match'

gritty zinc
#

and in addition to thrusting and rotating, there's also shield, which disables your engines for 3 turns, but makes you be 10 times heavier for the purposes of collisions - so it's often a good idea to enable it to yeet your victim harder

gritty zinc