#ot2-the-original-pubsta

652 messages Β· Page 72 of 1

echo fern
#

it can only not be the case if you're predicting better than the market

tawny hatch
#

@echo fern are you familiar with risk and reward ration in day trading?

#

you can set one yourself

#

for example, lets say btc is 1$. i could bet on it to reach 2$ and that would be my tp and sl would then be at 0,5$, so if i win, im at 100% profit, if i lose im at 50% loss hence the 1:2 risk and reward ratio

#

this is not like gambling

#

you can choose how much you want to risk for what kind of reward

#

although this is still gambling (just not the tradition kind)

junior moat
#

it's not a 50/50 chance of going up or down, just because there are two options doesn't make it a 50/50

blissful coral
#

that just sounds like gambling with extra steps

real forum
tawny hatch
#

i spent the past 2 hour arguing in another server about it

#

not gonna do it here anymore, but i now even more think id be profitable

autumn hornet
#

If you think you've found a way to game the system, then surely it's already known if it works, thus it doesn't work.

sinful sun
#

Pro tip, if you use the word "bet" to describe something, its gambling

elfin vine
#

In Sweden / Europe (it's apparently the same in the Netherlands) I can't bet on Twitch predictions because it's seen as gambling.

viral hare
#

ya know most ppl on wsb are just gambling

#

they call it day trading but its just gambling tbh

steel eagle
#

Don't you have to have an absurd amount of money to start with if you want to day trade?

#

I was interested in HFT but my buddy who is probably by now a millionaire if he kept the trend up, told me you have to have like 25k to start

clear gust
viral hare
#

some ppl just do it cuz it gives them an adrenaline rush

clear gust
tawny hatch
#

no lol

#

all the scalpers and traders use it

#

if you dont know how to manage you're risk, thats a you problem

clear gust
#

Not managing risk is exactly what the financial market is doing

#

Β―_(ツ)_/Β―

tawny hatch
#

what?

steel eagle
#

"If you don't know how to manage you are risk, that's a you problem"

jade bolt
#

i lost

#

this offtopic channel name is scamming

grim seal
#

no

buoyant sage
#

@devout loom

jovial island
#

So

devout loom
#

This should work πŸ€”

jovial island
#

which one do u want to import where

devout loom
buoyant sage
#

a class in ytdl into playerComs

dusky cliff
#

ytdl

#

mfwsus

devout loom
#
# main.py
from packageone import one

one.function()
# one.py
from packagetwo import two
from packagetwo.two import SomeClass


def function():
    print("one")
    print(SomeClass)
    two.function()
# two.py
class SomeClass:
    pass


def function():
    print("two")
jovial island
buoyant sage
dusky cliff
#

sure

buoyant sage
#

u sure i dont really have to do anything else other than create the __init__.py file?

devout loom
#

What's the error btw?

buoyant sage
devout loom
#

and how are you trying to import it?

#

plus what file are you running?

buoyant sage
#
from Misc.ytdl import YTDLSource
#

im running playerComs

#

should i run main?

devout loom
#

That's the issue πŸ˜‰

real forum
devout loom
#

python has working directory, and it can't import anything that's higher really

brave shore
#

So basically scratch, for discord bots you mean? If so, I can help.

devout loom
#

at least with standard imports

devout loom
#

So if you run playerComs cogs would be your working dir

buoyant sage
#

is it only for Python ?

devout loom
#

I dunno πŸ˜…

buoyant sage
#

i think it doesnt make sense in general lol

#

thanks though, helped a lot

devout loom
#

PyCharm provides your a way to change your working dir, not sure about vscode
Also perhaps it's PYTHONPATH and not work dir pithink

#

pythonpath makes more sense

buoyant sage
#

idek what those that means lol

devout loom
#

Basically a path for python to search for imports in

buoyant sage
#

ahh like windows PATH

devout loom
#

If i run my one.py directly:

Traceback (most recent call last):
  File "C:/Users/DoctorWho/PycharmProjects/python/sandbox/packageone/one.py", line 1, in <module>
    from packagetwo import two
ModuleNotFoundError: No module named 'packagetwo'
#

I can manually add it into sys.path though

buoyant sage
#

makes sense

#

im going to have to run just main anyway

#

oh wait

devout loom
#
from pathlib import Path
import sys
sys.path.append(str(Path("..").absolute()))

from packagetwo import two
from packagetwo.two import SomeClass

def function():
    print("one")
    print(SomeClass)
    two.function()


function()
buoyant sage
#

maybe repl does the path adding

mental idol
#

Don't hold me to it, but using open folder in VSCode fixes any of my working directory issues.

devout loom
#

Never used vscode πŸ™„

#

I usually use jetbrains ides or something like sublime text to edit small files (configs, etc)

jade bolt
mental idol
#

I don't run code out of it, but it's always found my venv without the issues I see others have

buoyant sage
#

looks like i have to just move in my Misc folder πŸ˜”

restive remnant
#

.. should be able to take you up a level for importing - I use it at work
i.e. from ..models.design import Design

devout loom
restive remnant
devout loom
#

I dunno, most monitors are 16:9

tranquil ridge
dusky cliff
#

won't

tranquil ridge
#

okbr

storm birch
#

Memes are forbidden here /s

tranquil ridge
#

ye hahaha

storm birch
tranquil ridge
dusky cliff
#

time to ban fisher

jade bolt
#

meme, meem or me me

restive remnant
#

yes

dusky cliff
#

maymay

restive remnant
#

no

buoyant sage
#

is using ytdl for learning purposes wrong too?

tranquil ridge
#

perhaps

buoyant sage
#

:(

jade bolt
dim root
#

ayy i got github copilot πŸŽ‰ it would have been better if i would have got it a a day or 2 back

#

i would been doing my codejam tasks faster

#

wait waht

#

i actually got it a minute after codejam ended

#

IST timezone btw

median blade
#

yes

sharp spoke
#

the otn and appearance of joe's mysterious bot is definitely a coincidence

wild compass
sharp spoke
#

:(( theory fail

wild compass
#

lmao no tinfoil hat for you

sharp spoke
#

:((

brisk musk
dim root
gentle shore
#

Hey

thorn eagle
gentle shore
#

What's 2+2? tharkimon

thorn eagle
#

4

#

what is 0.1 + 0.2?

#

||0.30000000000000004||

#

programming problems...

grim seal
foggy flicker
#

Rick rolling rick astley would be really epic

dusky cliff
#

it has already been done

cinder sigil
#

Ye

foggy flicker
#

when

dusky cliff
foggy flicker
#

lol

#

XD

tranquil ridge
#

damn

dusky cliff
#

the comment has two ternion awards

#

each of those costs roughly $120

tranquil ridge
#

bruh tf

keen burrow
#

Sounds fake pithink

#

Link?

odd sphinx
#

no its real

dim root
#

i mean how can you proove him

#

i don't see anything like that in the ss

median blade
#

he is OP, so i guess he put some pic or something which no one has ever seen

#

idk

dusky cliff
#

reddit awards cost IRL money lol

#

4th one, top row is the ternion award, which costs 50000 reddit coins

#

you can get 40000 coins for around $100

keen burrow
dusky cliff
#

and around 10000 more for another $30

dusky cliff
#

no

#

its a verified account

keen burrow
#

Wtf

dusky cliff
#

lol

#

its the most upvoted post on reddit atm

round moss
#

yup, the dude is actually rick astley

tawdry salmon
#

No way

dusky cliff
#

i mean, just look at his username ‼️

median blade
#

1y

#

too late

tawdry salmon
#

The fact he added Really to his username is just so fishy

dusky cliff
dusky cliff
median blade
#

so

#

wat no?

dusky cliff
#

Ok

median blade
dim root
dusky cliff
#

ye

dim root
#

Oh, that;s a lot of money spent

jade bolt
#

i assume joe will lose in utc 0:00

#

because the "always" period got killed by changing channel name

#

and then joe lost :)

sharp spoke
#

unless he sets the otn to joe always wins as default

vocal raven
jade bolt
#

joe lose countdown: <t:1626652800:R>

elfin vine
round moss
#

it is the easiest to use

slow valve
#

is joe cheating again?

elfin vine
# round moss it is the easiest to use

Oh yeah I don't disagree haha. I think it's a pretty solid Linux distro. But this is supposed to be a chart to pick distros that cater specifically to your needs πŸ˜…

round moss
#

I mean, there are very few specialised operating systems

#

most distros are just "have a convenient OS with slightly different defaults and a different package manager"

pliant trench
#

arch for penetration testing?

#

hm

#

debatable

somber belfry
#

why?

sinful sun
#

Kali for cyber sec and penetration suite cool dragon logo

echo flower
#

why do i have a feeling a lot of people use kali because 'it looks cool'

sinful sun
#

Cant blame them if it does actually look cool

#

People perform better when they feel they look cool whether thats coding, sports, etc

echo flower
#

lmao

vocal raven
junior pike
#

@left iron hi, what help do you need with emptty?

#

@left iron do you have that xauth binary anywhere on your system?

#

the author might have made some assumptions that are not valid on your machine

#

there you go

odd sphinx
#

@upbeat sandal didnt know u could talk normaly via modmail

#

as in, i thought it was just for mod stuff

upbeat sandal
#

but yes, ModMail is for super serious moderation stuff

odd sphinx
#

lol

upbeat sandal
#

!warn 253696366952316929 Shitposting over ModMail threads.

clever salmonBOT
#

:incoming_envelope: :ok_hand: applied warning to @upbeat sandal.

upbeat sandal
#

There.

odd sphinx
#

bruh

#

!warnings 253696366952316929

#

okay

clever salmonBOT
#

Fetching warning for @upbeat sandal...
Infractions found:

  1. fabulous
odd sphinx
#

damn

#

took you long enough

jade bolt
#

Joe will lose in three minutes

full knot
jovial island
#

1337 hacker

elfin vine
steel eagle
#

archgarbage

jovial island
elfin vine
jovial island
#

Do u know how to dual boot ?

#

Win and arch

elfin vine
#

I used to dual boot with like grub

jovial island
#

Could u help me out like in a month

elfin vine
#

πŸ˜… idk man, I am bad at long-term commitment

jovial island
#

Lol okay then

#

No problem

steel eagle
#

My suggestion is not to use arch, otherwise the arch wiki literally has a guide for installing dual booted

steel eagle
#

because arch is nothing but a constantly breaking mess, and if you can't take the time to type a three letter word, you're really not going to enjoy taking the time to constantly fix a broken system

#

arch also is a distro for advanced users only, it assumes you already know how to maintain and repair a distro in any case

#

and know where/how/when to do things

daring jay
thorn eagle
#

oops i forgot to turn off ping

daring jay
steel eagle
#

@jovial island why did you add me

thorn eagle
echo flower
#

lmao what

pliant trench
#

ay

#

+1 arch gang

hazy laurel
#

absolutely not

pliant trench
#

i bet he/she installed arch to just say "ye i use arch btw"

#

:P

tranquil ridge
#

server...?

#

arch for server?

hazy laurel
#

man

#

When will Arch die

#

Surely people realize it's not worth the hype

#

and what's that?

#

yes but how does that relate to Arch

#

all of that you can do on any distribution

#

I mean typically you'd want stable release for that kind of stuff anyways

#

I mean typically I'd go for an Ubuntu flavor or Leap

#

I, for one, love openSUSE so I'm partial to Leap in this context

pliant trench
pliant trench
hazy laurel
#

wdym in my case

pliant trench
hazy laurel
#

oh.

#

Ricing has nothing to do with your distribution

#

Other distributions are as customizable as Arch is

#

You can make an Ubuntu flavor look the exact same as Arch, with the same amount of effort

#

Arch's DIY, but that truthfully provides like no insight to "freedom"/"customization"

#

Eventually, one realizes that the whole installation thing is completely redundant (for their use cases)

jovial island
#

@jade bolt your pfp is confusing

Hello
Light dark
Theme
Luser

?

jade bolt
#

yes

#

it's confusing

#

it shouldn't be like that tho

jovial island
jade bolt
#

not intended

#

i didn't pick the darker color

jovial island
#

Ah

#

0x000000 is the best black though

jade bolt
#

only view the lighter color when you're in dark mode

#

view the darker color when you're in light mode

hazy laurel
#

wonder how that works

#

I don't think you can have a hex number larger than... 16?

steel eagle
vocal raven
steel eagle
#

it just ain't work well

jade bolt
#

it wont be

#

it works better as an image posted

hazy laurel
#

probably 255

hazy laurel
#

:(

jade bolt
hazy laurel
#

but I don't think it works like that

#

0xFFFFFF would be some like really large number, no? (if it was possible to have a hex digit this large)

vocal raven
#

0xF in binary is 1111

#

Are you converting in decimal?

hazy laurel
#

In any regard

#

it'd be like F * F * F * F * F * F

#

it'd be #FFFFFF that's 255, 255, 255

vocal raven
#

In decimal it's 16777215

hazy laurel
#

Sheesh

#

I'm confused

#

Surely there's a difference between #FFFFFF and 0xFFFFFF

#

where #FFFFFF is 3 numbers, and 0xFFFFFF is one

vocal raven
#

0x is the hexadecimal representation

hazy laurel
#

Yes, which would imply one number

jade bolt
#

i think there's a HUGE color list

#

like you can do

#

color[0xFFFFFF] and get white

hazy laurel
#

and #FFFFFF being 0xFF, 0xFF, 0xFF

#

unless 0xFFFFFF is just shorthand for that

#

assuming that digits cannot be larger than FF

vocal raven
#

0x is used to represent hexadecimal numbers

hazy laurel
#

Yes, I realize that

#

but 0xFFFFFF seems like just one big number

jade bolt
#

i bet 0xFFFFFF is the color index

hazy laurel
#

as opposed to #FFFFFF which is 3 bytes

#

and 3 numbers

jade bolt
#

there's 16.7 mill colors in rgb iirc

#

so uh 16777215 is the index of a large color table, returns white

vocal raven
#

(16777215)base 10 =0xFFFFFF

hazy laurel
#

is 0xFFFFFFF supposed to be the last color in the spectrum?

jade bolt
#

it should be

hazy laurel
#

I think that makes sense, then

#

Same color, different representation

#

0xFFFFFF would be the index, #FFFFFF would be the RGB

jade bolt
#

#FFFFFF runs at rgb and 0xFFFFFF runs as hex color i guess

hazy laurel
#

crazy

jade bolt
#

indeed

hazy laurel
#

although I wouldn't be surprised if that's just a happy coincidence

#

and that actually # and 0x are the same

jade bolt
#

lol

#

probably not, you get a base10 value after giving 0x

#

!e print(0xFFFFFF)

clever salmonBOT
#

@jade bolt :white_check_mark: Your eval job has completed with return code 0.

16777215
jade bolt
#

and turning it back to hex causes more trouble

vocal raven
hazy laurel
#

lmao I wonder what a gradient of all the colors would look like

jade bolt
hazy laurel
#

probably easy to make with something like opencv

#

nvm, might be hard

hazy laurel
#

you'd have to cut off like... 149/150 of the colors

#

well... if you did a single line

#

Jesus, that's a ton of colors

vocal raven
#

someone explain me this meme

hazy laurel
#

HAHA

jade bolt
#

you are 2 sexci i want two fuck you

hazy laurel
#

that took me ages to get

#

"you are too sexy, I want to... fork you"

jade bolt
#

i got it

#

fun solving that

vocal raven
#

Ohhhh

jade bolt
#

4Q lol

hazy laurel
#

that was like

#

annoying

vocal raven
#

πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚πŸ˜‚

slender echo
#

yo @midnight mango

rigid echo
sudden swallow
jade bolt
#

:(

lunar basin
jade bolt
#

yes

#

!e print(type(0xFFFFFF))

clever salmonBOT
#

@jade bolt :white_check_mark: Your eval job has completed with return code 0.

<class 'int'>
jade bolt
#

but you'll see that this is an integer in python

lunar basin
#

why wouldn't it be

#

@jade bolt

jade bolt
#

because you're giving an integer not a hex

#

i'm getting confused with everything right now

#

so uh

round moss
#

integers are not base 10, a number does not have a base

jade bolt
#

yes

#

but if you print(0xFFFFFF) you'll get a base 10 value

#

am i correct

round moss
#

sure

#

thats the default way python shows you numbers

#

so you give it a number and it shows you the same number

#

just about every language will work like this

#

well, except C

#

since you dont have a default way to print a number

#

you have to pick the repr you want

rigid echo
#

@nova ember Now are you investing in smthing or what?

rigid echo
#

@delicate lion Oh wow, I didn't see your new web! Its cool, especially with the UI

#

@elfin bear

#

Here!

elfin bear
#

Yes

rigid echo
#

So what issue is he really.

#

facing?

#

I would recommend sharing it with Moderators! Team

#

dm @vapid maple

elfin bear
elfin bear
rigid echo
#

Sure!

nova ember
#

You can thank @short cliff for the fantastic name

rigid echo
#

Oh yea seems so

#

Did he suggested the name in VC?

#

I guess so!

nova ember
short cliff
#

What am I being blamed for?

nova ember
#

Correction: praised

rigid echo
#

hemlock puns!

#

restock on puns lol!

rigid echo
#

@elfin bear Is your friend issue solved?

elfin bear
rigid echo
proper python
#

i need someone to explain me some major tensorflow bullshit

#

(before training)

#

:)

#

:(

#

NotImplementedError: Cannot convert a symbolic Tensor (strided_slice:0) to a numpy array. This error may indicate that you're trying to pass a Tensor to a NumPy call, which is not supported

jovial island
#

uhm. try casting it to numpy type?

proper python
#

i have

dusky cliff
#

SO suggests downgrading numpy

proper python
#

to which

dusky cliff
#

1.19.5

median blade
#

sheesh

#

i thought i had it byheart

proper python
jovial island
#

this may not be relevant to your code but 2nd answer suggested that make sure to use tensors everywhere

proper python
dusky cliff
#

🀷

jovial island
#

one or two GitHub links suggested to downgrade python to 3.6

proper python
#

that still doesn't explain why one works but the other doesn't

#

oh nvm i found it

#

wait, no, i didnt

#

both prediction inputs use tf.random.normal

#

and it can't have something to do with it getting trained, since the non-func version works even after erroring out

#

i guess the only thing that changes is that one's in a function and the other isn't?

#

alright, no

#

it must be something to do with it getting called inside the train function

#

oh yeah, so that's it

#

it's getting called in a tf.function

elder path
#

?

jovial island
#

Are there good motivational coding/python videos?

#

@gloomy current

jovial island
#

hi

#

oftopic

tall cobalt
#

do you all know jackbox games?

real forum
tall cobalt
#

i was gonna ask if you all want to play but i have class now πŸ₯²

proper python
#

i have 49 left

final sable
#

Gee thanks

sharp spoke
#

interesting name

rotund python
#

What is better Xbox or Playstation?

tranquil ridge
#

pc

echo flower
#

yes

rotund python
#

I have the same opinion, but that's my friend choosing

#

he wishes to choose only between xbox and playstation

sharp spoke
#

@echo flower the about this

echo flower
#

idk man

sharp spoke
#

what

autumn hornet
#

pc

jovial island
#

…?

sharp spoke
#

but what is the otn

odd sphinx
#

hmm

sharp spoke
#

i am tempted to ping joe to ask but ||admins n mods scary||

rigid echo
#

@Joedid it

#

simple as f

sharp spoke
rigid echo
#

it pings!

#

Ask vivek

#

@somber belfry right? can't you remember that moment @Moderators

sharp spoke
#

@Srijandev#1715 does it tho

somber belfry
#

that doesn't ping

#

but <@id> pings

rigid echo
#

uh sarcasm!

rigid echo
somber belfry
odd sphinx
#

/s

rigid echo
#

oh really?

#

I don't trust you Vivek

#

πŸ˜›

steel eagle
#

I want to work on something in another language than the normal Python/Rust/C/C++/C# I work on but

#

there's no point in using any other languages

#

the only other modern language that actually has traction is JavaScript...which also happens to be the worst programming language that's used in modern times

tranquil ridge
#

i heard about zig or smth

#

ew

steel eagle
#

I can't do pure functional

#

I don't have a chance in hell at learning haskell

steel eagle
#

Java is dead

#

*For anyone except enterprise users

wild compass
#

java is the lang taught at my school lol

steel eagle
#

It's also not a very good language notwithstanding being killed off by crappy license

dusky cliff
#

julia

#

its the hot new thing

steel eagle
#

Julia hot and new?

#

πŸ˜‚

#

but no seriously, I'm not really interested in learning languages that are stagnant/too new

#

hence my statement of "there's no point in using any other languages"

dusky cliff
#

its released in 2012

#

that is as new as it gets

#

rust is older than that

steel eagle
#

Dart released in 2013 and look where it landed

wild compass
#

kotlin if you dont want java?

odd sphinx
#

where did it land

dusky cliff
#

on land

steel eagle
#

Go hit 1.0 in 2012

odd sphinx
steel eagle
#

it's just syntax on the JVM, so you have the same license issues as Java,

wild compass
#

hm

steel eagle
#

Though I will say, I've used Kotlin for Android work recently

#

it's a very nice language but the function definitions infuriate me

wild compass
#

how abt rockstar

steel eagle
#

doesn't sound like something that is very popular

wild compass
steel eagle
#

oh it's a joke lang

wild compass
#

its a joke lang lol

#

ye

median blade
steel eagle
#

ain't no one use dart

odd sphinx
#

damn

#

dart sad

#

it has some cool features tho

steel eagle
#

It does, I actually a few years ago did a really cool, and actually meaningful/useful project in Dart

#

but I was, unfortunately, overcome with death threats and harassment from it

median blade
steel eagle
#

I know huh

median blade
#

hmm

#

dart does uh transpile(?) to js

#

so it can be used for that too ig

odd sphinx
soft quiver
jovial island
#

off topic but
Look at my beauties ❀️

proper python
#

i think my gan is going through a phase

sharp spoke
#

what?

#

what is this even

lucid osprey
#

image generation?

#

what're you doing?

sharp spoke
#

but what is it even

proper python
#

At 31 epochs old, his dream is to "draw anime pfps in grayscale"

#

He's um

#

I should've pulled out when I had the chance

lucid osprey
#

the generated images would be making more sense overtime..right?

#

the more you continue generating them.

proper python
#

That's the idea

#

I honestly have no idea what I did wrong

#

oh wait

#

the mnist dataset use 60000 images

lucid osprey
#

how terrible did it look the first time?

proper python
#

i have 600

lucid osprey
#

oh

proper python
lucid osprey
#

hmm

round moss
#

overfitting go brrr

#

but honestly, it isn't even doing that

lucid osprey
#

so you give it sample images and it trains on it?

round ferry
#

hello

lucid osprey
#

hey!

lucid osprey
#

hm

proper python
#

the idea is that the discriminator and generator train at the same time

lucid osprey
#

also is it not capable yet of using colours other than those from white to black?

proper python
lucid osprey
#

hmm

proper python
#

wow, you can read!

jade bolt
#

but i can't write

lucid osprey
#

I'm gonna have to google what a discriminator is.

jade bolt
#

discriminator discriminates you

proper python
lucid osprey
#

real?

jade bolt
#

it guess if data is true or false

proper python
#

if it matches the dataset

lucid osprey
#

oh

proper python
#

except anime

lucid osprey
#

right.

proper python
#

maybe i should increase the number of layers to match increase of resolution?

#

cuz the code im using was built for 28x28 images

sharp spoke
#

i have no idea how this training thing works >:((

jade bolt
#

is there a platform i can learn advanced math i sucks at it

proper python
#

i dont either

#

i was too lazy to read an intro course

round moss
#

3b1b is a great source for just about everything math adjecent

proper python
#

so im just copying code and hoping it works

jade bolt
proper python
#

that would require so many more data points and so much more time

sharp spoke
round moss
#

most ML code is under MIT/BSD licenses

jade bolt
#

so as long as you contribute uhh (for example add a random comment line) it'd be fine

round moss
#

you can just use it

proper python
#

needless to say, im dissapointed

jade bolt
#

private use is ok in mit iirc

round moss
#

even public use, as long as you keep the license with the MIT code

jade bolt
#

you're but i'm not

lucid osprey
#

I have no idea whats happening in that

sharp spoke
#

guys if i have to get msgs from some telegram channel in python... what should i use?

proper python
#

i'll try increasing # of layers and try again

proper python
#

oh

#

probably some kind of telegram api

sharp spoke
#

iirc

daring prairie
#

is there a javascript discord?

jade bolt
#

wdym

daring prairie
#

like the python discord

jade bolt
#

idk

exotic hound
#

any answer for this?

vague shadow
#

because you can have multiple classes in a single file

jovial island
clever salmonBOT
#

Communities

The communities page on our website contains a number of communities we have partnered with as well as a curated list of other communities relating to programming and technology.

exotic hound
#
// Cat.java
public class Cat {}
class Dog {}

will generate Cat.class and one more class file

vague shadow
#

when complied yea sure

#

but there can be more than one class in a java file

exotic hound
#

okay so that's it, not very useful but well ok.

#

also thanks for the answer

vague shadow
#

It's useful for keeping the source code neat

#

if two classes that relate to each other having them in the file is useful

#

what happens when compiled doesn't matter

#

since as a dev you don't interact with the compiled files directly

vague shadow
round moss
#

class Dog is not a public class

#

package private classes can share files

vague shadow
#

Ah i didn't realise, I thought public classes had to be in a single file

round moss
#

they do

#

one public class per file

vague shadow
#

thought so yea

round moss
#

but class Dog does not create a public class

proper python
#

i just don't think im a good parent

echo fern
#

maybe your child is too simple and need to be discarded for one with a bigger brain

#

so that it at least overfits on the 60-pic dataset lemon_grimace

proper python
#

i have increased the brain size again for attempt # 3

echo fern
#

ah

proper python
#

also i now have 100 epochs

round moss
#

are you at least using google collab?

proper python
#

so maybe thtat'll do something

proper python
echo fern
#

why'd one use google collab as a default? do they provide really good GPUs or something?

proper python
#

idk

round moss
#

I found collab to be much faster even without a GPU, but yes, you also get a GPU (unless they changed that recently)

#

maybe I just have a bad CPU

echo fern
#

you do get a GPU, but is it comparable to using your own?

proper python
#

idk

echo fern
#

I did notice that collab gets you some nice CPUs too, though - some CPU stuff performs faster there than on my computer

round moss
#

well, I can't run most things on my GPU due to low CUDA version, but it seems to be a little worse than a 1080Ti

#

so IG depends when you got your device

proper python
#

wait so does colab run things on your machine or does it get sent to a server?

round moss
#

sent to a server

#

google runs the notebooks

#

I could also be googling wrong about what GPUs they use

jovial island
#
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 465.19.01    Driver Version: 460.32.03    CUDA Version: 11.2     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  Tesla T4            Off  | 00000000:00:04.0 Off |                    0 |
| N/A   42C    P8    10W /  70W |      3MiB / 15109MiB |      0%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
#

precise details

daring jay
#

Might want to uh, code blockify that

jovial island
#

ah

soft quiver
#

you can get V100s sometimes

#

@little void remember the pre-mch days of v100 farming KEKW

little void
#

oh hell yeah

#

still have the spreadsheets and code

soft quiver
#

the good 'ol days of using google sheets as a database

little void
soft quiver
#

i think all the k80s are phased out now

little void
#

k80/p4/t4/p100/v100

#

oh fr?

soft quiver
#

yeah

#

lowest is a p4 now

little void
#

they’re probably in a dumpster somewhere now KEKW

soft quiver
#

still no a100s pensivewobble

little void
#

I was surprised when they added v100s tbh.

They could easily do a100 MIG πŸ‘€

soft quiver
#

i wish i could pay for colab premium

#

but its US only

#

i want moar v100

little void
#

I’m honestly still amazed how cheap it is compared to GCP

soft quiver
#

google undercutting itself is nothing new kek

little void
#

technically >$0.00 is profit for them now vibecat

#

iirc everything on colab is using renewable energy and they’re using hardware that would just be idle

whole condor
#

can someone explain the channel name to me?

proper python
#

No

jade bolt
#

joe's rotten 2 year gap

blissful coral
#

don't report me pls

#

as long as your address is in USA, you can even use other countries' credit cards

proper python
#

its just rotating whyyyyy

somber belfry
#

You spin me right 'round baby right 'round

quiet depot
#

wtf

median blade
#

wtf

indigo solstice
#

hahaha

#

πŸ‡΅ πŸ‡΄ πŸ‡¬

steep ruin
#

hahaha

hollow heart
#

@marsh flame what is your actual question/aim?

marsh flame
#

no not aim just the 3D code

#

oh sorry aim too

proper python
#

i give up

#

im going to go read

#

god damn it

#

its just lectures

#

im not smart enough to read

hollow heart
# marsh flame oh sorry aim too

unfortunately one reason I think noone is helping you is because it's not clear what you are looking to do. do you have an example?

quiet depot
wind wadi
#

Pretty sure you can get a V100 GPU, if not at least a P100 GPU by not using a pre-made notebook in Colab, but if you make one yourself, and copy the code over, colab should give you better GPU. As long as before you did this, you weren't using their resources too much. Colab manages the type of GPUs to people who either pay for it or to people who haven't used it much

#

I know, because I've tried, if you don't get a good GPU right away, just factory reset your colab runtime until you get one, but it still really depends

quiet depot
#

V100 GPU P100 GPU what are this things

echo fern
#

.catify ConfusedReptile

rustic harborBOT
#

ConfusedReptile α•‚α˜α—’

echo fern
#

wait, that's not #bot-commands

echo flower
#

ah yes jake did very great

wild compass
#

how many ot names does jake have? lmao

hollow heart
#

too many lmao πŸ˜‚ @ripe hedge

ripe hedge
#

@storm birch can you give us an updated count?

#

I think I have like 6

wild compass
#

no way, there were like 6 in the last week

#

oh wait, no, i was thinking of joe

#

hmm i cant remember if they were joe or jake now

exotic hound
#

what does O(n) mean?

#

I've read wikipedia, but I don't understand

lunar basin
#

the runtime will scale linearly as the input size grows

hidden kernel
#

in other words if you double the size of the input, the runtime (roughly) doubles

#

which is not the case for all algorithms

sacred field
# exotic hound what does O(n) mean?

it's probably not clear because you don't have enough context.

Might help to think about O(1)
https://en.wikipedia.org/wiki/Big_O_notation#/media/File:Comparison_computational_complexity.svg

Big O notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann, Edmund Landau, and others, collectively called Bachmann–Landau notation or asymptotic notation.
In computer science, big...

#

also a thing the big-O people don't tell you is that big-O is the asymptotic upper bound runtime. Little-o is simply an upper bound. Sometime big-O and little-o are the same, but usually not.

#

that img is better

lunar basin
#

big O is the asymptotic upper bound, while little o is simply an upper bound

sacred field
#

sure, but I found it less confusing to understand that big-O isn't absolute and obviously runtime depends on input, particularly when starting trying to understand from scratch

exotic hound
#

🀯

#

never mind, better sleep

#

thanks

sacred field
#

good luck

lunar basin
#

big-O simply isn't the maximum runtime though

sacred field
#

of course yes! go on and explain it in a way easy for a novice to understand ...

lunar basin
#

sure, it's simply how your runtime scales as your input size scales

sacred field
lunar basin
#

you ask what they don't understand and address it

#

you don't have to sacrifice accuracy even when explaining to someone who knows nothing

jade bolt
#

Jake did great in doxxing?

real forum
#

Indeed

quiet depot
#

what is doxxing

jade bolt
#

don't ask

#

you'll be doxxed

median blade
quiet depot
#

it was fun while not a threat

sharp spoke
#

"jake did great by doxxing people"

#

interesting

unreal sigil
#

@ornate scroll a split keyboard is worth a shot for shoulder pain

#

Your shoulders are able to rotate outwards to a more normal position rather than inwards

#

And in my experience it tends to prevent slouching as well

ornate scroll
#

ok cool

stuck summit
dusky cliff
#

interesting

tranquil ridge
#

interesting

jade bolt
#

interesting

tranquil ridge
#

ducky_devil or ducky_santa

craggy mountain
#

Bro @jovial island

jovial island
#

What is it

#

Nonono

#

i dont do requested help

jovial island
#

i help when its interesting

#

πŸ™‚

craggy mountain
#

@jovial islandboy or girl?

rigid echo
#

lol lemon_pensive

wild compass
#

why boy or girl tho, not everyones a child

rigid echo
#

I am a student

tranquil ridge
rigid echo
tranquil ridge
#

but * isnt really that good tho

median blade
#

also, you did not add root.mainloop()

rigid echo
#

!star-imports are bad for other developers if they are going through your code.

clever salmonBOT
#

Star / Wildcard imports

Wildcard imports are import statements in the form from <module_name> import *. What imports like these do is that they import everything [1] from the module into the current module's namespace [2]. This allows you to use names defined in the imported module without prefixing the module's name.

Example:

>>> from math import *
>>> sin(pi / 2)
1.0

This is discouraged, for various reasons:

Example:

>>> from custom_sin import sin
>>> from math import *
>>> sin(pi / 2)  # uses sin from math rather than your custom sin

β€’ Potential namespace collision. Names defined from a previous import might get shadowed by a wildcard import.
β€’ Causes ambiguity. From the example, it is unclear which sin function is actually being used. From the Zen of Python [3]: Explicit is better than implicit.
β€’ Makes import order significant, which they shouldn't. Certain IDE's sort import functionality may end up breaking code due to namespace collision.

How should you import?

β€’ Import the module under the module's namespace (Only import the name of the module, and names defined in the module can be used by prefixing the module's name)

>>> import math
>>> math.sin(math.pi / 2)

β€’ Explicitly import certain names from the module

>>> from math import sin, pi
>>> sin(pi / 2)

Conclusion: Namespaces are one honking great idea -- let's do more of those! [3]

[1] If the module defines the variable __all__, the names defined in __all__ will get imported by the wildcard import, otherwise all the names in the module get imported (except for names with a leading underscore)
[2] Namespaces and scopes
[3] Zen of Python

craggy mountain
#

@rigid echo tysm bro.. and here what is font?

rigid echo
#

You should thank @tranquil ridge instead of me!

craggy mountain
#

@tranquil ridgeThanks brooo

rigid echo
craggy mountain
#

see that font

rigid echo
#

Your cursor gets over it, I can't really see it

tranquil ridge
craggy mountain
#

What is wrong there?

jade bolt
rigid echo
#

hmm

jade bolt
#

missing comma

craggy mountain
#

@jade boltSo now?

#

Shit

#

I do so many silly mistakes

jade bolt
#

line 6 before font= missing a comma ,

craggy mountain
#

Lmao

#

I want to improve my developing skills how can I?

rigid echo
#

Have you learned basics first?

craggy mountain
#

Yeah

#

I k basics

#

Like if else, variables, etc

rigid echo
#

Uh so, why are you doing silly mistakes that you have already learn?

#

Ok, cool?

craggy mountain
#

Yeah actually I am currently doing a course

#

SO I just want to develop my skills

#

So I am practicing

#

madlibs

rigid echo
#

Oh cool which course?

craggy mountain
#

calculator and all

craggy mountain
#

Full stack dev

rigid echo
#

Hmm cool, you should continue with it

#

I hope you do it regularly

craggy mountain
#

I am not attending classes

#

My PC cant run more than 2 apps

rigid echo
#

Uh I mean you are doing the course regularly

craggy mountain
#

I run VS code and chrome only

rigid echo
#

right?

craggy mountain
#

no

rigid echo
craggy mountain
#

I can't run 3 apps

rigid echo
#

So, no problem

craggy mountain
#

if I run my gets

jade bolt
craggy mountain
#

LoL

jade bolt
#

it works tho

craggy mountain
#

ok

#

ok

jade bolt
#

!e print(eval("1+1"))

clever salmonBOT
#

@jade bolt :white_check_mark: Your eval job has completed with return code 0.

2
rigid echo
#

I saw a guy computer in which only 1 app can run, he is now a software engineer

craggy mountain
#

!e print(1+1)

#

simple

#

LoL

rigid echo
#

So, u have to just continue with what you are doing right now!

#

Good, Cya!

craggy mountain
#

ok

#

I will

#

I am

#

and I was ratted

#

15 days ago

#

So I missed the course

#

I have recordings tho but

#

not possible to catch up everything

#

I am trying to get a new batch

rigid echo
clever salmonBOT
rigid echo
#

!paste @craggy mountain

clever salmonBOT
#

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.pydis.com/

After pasting your code, save it by clicking the floppy disk icon in the top right, or by typing ctrl + S. After doing that, the URL should change. Copy the URL and post it here so others can see it.

craggy mountain
#

.

steel eagle
#

Some people can't be helped

sinful sun
#

youre not gonna have a fun time if you start spamming for the voice privileges

vocal raven
wheat aurora
#

@ripe hedge you did great!

rigid echo
#

@toxic belfry bruh yk beluga?

lucid osprey
#

haha the same pfp

rigid echo
#

lmfao, you see vids?

lucid osprey
#

a couple.

rigid echo
#

of beluga??

lucid osprey
rigid echo
#

lol, that's fun

toxic belfry
rigid echo
#

the growth tho

#

bang

lucid osprey
#

yeah it was rapid

#

within a few days or so, 1 million

rigid echo
#

yea πŸ†™

#

and πŸ†™

toxic belfry
rigid echo
#

hmm lester

#

and hecker

toxic belfry
#

pablo

rigid echo
#

hecker was the latest one?

#

ig

#

yeah

toxic belfry
#

yeah

jovial island
#

HOW DI CODE HELO

#

HELP

rigid echo
#

@jovial island You should see resources

#

!resources

clever salmonBOT
#
Resources

The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.

jovial island
#

oh sheesh ty

rigid echo
jovial island
#

I still dont understand any of it

wheat rock
#

Stick to automate the boring stuff book

sudden swallow
#

pls daily

ripe hedge
sudden swallow
median blade
#

did great in what

keen burrow
#

jake did great indeed, grats jake!

daring jay
#

Good job Jake!

#

Q & A

#

Yes

#

The owners q&a event

#

Jake was the question asker human

sharp spoke
#

nice

cedar leaf
#

Wait @ripe hedge did great? Awesome!

ripe hedge
#

Except databases

delicate lion
#

lmao we have two jake channels

rugged portal
#

Jake did do great at the event

somber belfry
#

oh yeah, he did do great

neat light
#

welcome to another episode of AAAAH WHY WONT YOU JUST WORK. Today: GitHub workflows

#

I was soooo close with the last one

wild compass
#

seems like a frustrating show

neat light
#

yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay

wild compass
#

nice ok_handbutflipped

odd sphinx
#

nice

pliant sorrel
#

You can build Mac stuff on GitHub actions?

#

Is it free btw

#

I can't build certain stuff for apple products due to it requiring xcode

neat light
#

I go through exactly the same thing every time I try and change something lol

pliant sorrel
#

Wow I thought this stuff is freemium

neat light
pliant sorrel
#

Wow this seems to be very cool

#

I thought it was much more capped

amber igloo
#

hello guys
i am new to python coding and will be buying a new laptop soon
so do i need a dgpu
for coding related workflows
and if yes then how good should it be

amber igloo
#

okay

#

thx

#

so omen 15 with 1650 ti and ryzen 7 4800h should be fine right

hazy laurel
#

more than

#

How much is it?

neat light
elfin vine
#

4/4 stars

neat light
#

lol

keen burrow
#

Noice project banner

#

I would add a bit more contrast or shading to the stars

broken summit
#

@haughty lotus

#

so

#

here is the break-down of my algorithm, more or less

#
  1. initialize an accumulator string
  2. transform the set of triplets into a set of pairs
  3. find the last letter (the letter that only ever appears in the final position in a pair)
  4. find the first letter (the letter that only ever appears in the forward position in a pair)
  5. append the letter found in step 4 to the accumulator string
  6. remove all pairs that begin with the letter found in step 4
  7. if the set still contains pairs, go back to step 4, otherwise if it is empty, continue
  8. append the letter found in step 3 to the accumulator string
  9. return the accumulator string
#

step 2 is pretty simple, all you have to do is for every triplet (a, b, c), you add (a, b) and (b, c) to your set of pairs

#

the thing that's challenging to implement efficiently is steps 3 and 4

#

but done right, it should be at most linear time

neat light
#

Do the stars not make it clear???

#

Nah jk it was just the first shape button I saw in inkscape lol

#

It searches a directory and finds files with the same contents. I made it because I have like 50gb of random photos and they all have a bunch of (exact) duplicates for some reason, so I wanted to delete the dupes so there was only one copy of each.

#

I also wanted to learn rust, and it seemed like a nice simple project to get started

#

And I wanted to use GitHub actions, but we all know how that turned out

haughty lotus
#

time to kermit salsacide

broken summit
#

qwq

haughty lotus
#

whatever im still happy enough with my solution, it works, just i cant implement it, still, yours is simpler and smarter

broken summit
#

i know someone in another server that did it based off of constructing a graph and then walking it but i haven't yet taken the time to understand it

haughty lotus
#

i think maybe mine could've been faster? im not very sure

#

i only iterate over the triplets twice, possibly once

#

once if i stored the constraints the first time i was looping

broken summit
#

hmm

haughty lotus
#

im gonna try to implement mine just out of pride

broken summit
#

lol

haughty lotus
#

plus i'd feel bad if i got kyu off of your solution

broken summit
#

:p

#

😭

#

"evenness"

haughty lotus
#

oh i saw that one

#

it's pretty easy no?

#

i figured you could just see the first and last evennesses and if they're equal, that's the one you want to see, and if they aren't, compare them to a third one, and you already have the wrong one, but if they're the same you just iterate over the list ignoring the ones you already saw at the start

round moss
#

honestly, codewars has the issue where haskell high kyu tasks are far too easy

#

you can do that with just some parser combinators

#

I am 4kyu and spent probably like 10 hours total on the site, most of which was spent messing around in a prove addition is commutative 1kyu (still can't quite get that one)

elder path
#

Lua is bad

void horizon
#

yes

#

absolutely

#

its only good for embedding and even then, I'll struggle to embed python instead

#

like I know its painful but its so much pain free coding after that instead of luas stupid syntax

broken summit
#

k

sudden swallow
steel eagle
#

lua ain't that bad

#

don't be babby

jade bolt
#

may i have @mental idol please
you're an egg correct?

sharp spoke
#

hello @jade bolt

gilded steeple
#
from dataclasses import dataclass


@dataclass
class Line:
    check: bool
    value: float


lines = [Line(True, 5.0), Line(False, 15.0), Line(True, 3.0)]

print(sum(line.check and line.value for line in lines))
print(sum(line.value for line in lines if line.check))

I didn't know first one will work too pepesweat

weak idol
rustic jasper
#

wassup bois

#

hi wassup BOIS

#

AND GURLS

real forum
#

Hey

jade bolt
#

ey