#ot2-the-original-pubsta
652 messages Β· Page 72 of 1
@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)
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
that just sounds like gambling with extra steps
Idk what you just said before makes it sound exactly like gambling
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
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.
Pro tip, if you use the word "bet" to describe something, its gambling
In Sweden / Europe (it's apparently the same in the Netherlands) I can't bet on Twitch predictions because it's seen as gambling.
ya know most ppl on wsb are just gambling
they call it day trading but its just gambling tbh
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
Remove the b and it still applies.
some ppl just do it cuz it gives them an adrenaline rush
leverage
This is called risking bankruptcy but is exactly why it's just gambling
no lol
all the scalpers and traders use it
if you dont know how to manage you're risk, thats a you problem
what?
"If you don't know how to manage you are risk, that's a you problem"
no
@devout loom
So
This should work π€
which one do u want to import where
a class in ytdl into playerComs
# 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")
ahh
just for learning purposes lol
sure
u sure i dont really have to do anything else other than create the __init__.py file?
No π
What's the error btw?
That's the issue π
Smh
python has working directory, and it can't import anything that's higher really
So basically scratch, for discord bots you mean? If so, I can help.
at least with standard imports
yeah that makes sense
So if you run playerComs cogs would be your working dir
is it only for Python ?
I dunno π
PyCharm provides your a way to change your working dir, not sure about vscode
Also perhaps it's PYTHONPATH and not work dir 
pythonpath makes more sense
idek what those that means lol
Basically a path for python to search for imports in
ahh like windows PATH
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
makes sense
im going to have to run just main anyway
oh wait
but it actually worked on repl.it
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()
maybe repl does the path adding
Don't hold me to it, but using open folder in VSCode fixes any of my working directory issues.
Never used vscode π
I usually use jetbrains ides or something like sublime text to edit small files (configs, etc)
lol
I don't run code out of it, but it's always found my venv without the issues I see others have
looks like i have to just move in my Misc folder π
.. should be able to take you up a level for importing - I use it at work
i.e. from ..models.design import Design
Scariest thing is 4:3 aspect ratio
What would you recommend instead?
I dunno, most monitors are 16:9
oh
insert your meme
won't
okbr
Memes are forbidden here /s
ye hahaha
I just broke the rules, my entire existence is a meme 

time to ban fisher
meme, meem or me me
yes
maymay
no
is using ytdl for learning purposes wrong too?
perhaps
:(
best pronunciation
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
yes
the otn and appearance of joe's mysterious bot is definitely a coincidence
arthur bot first spoke on 7/5/21, two weeks ago #voice-chat-text-0 message
:(( theory fail
lmao no tinfoil hat for you
:((
Wait Srsly !?
Hey

What's 2+2? 
Rick rolling rick astley would be really epic
it has already been done
damn
bruh tf
no its real
?
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
No I mean the fact that it Rick Astley
and around 10000 more for another $30
oh that
no
its a verified account
Wtf
yup, the dude is actually rick astley
No way
i mean, just look at his username βΌοΈ
The fact he added Really to his username is just so fishy
no
its in response to this
Ok

link?
ye
Oh, that;s a lot of money spent
i assume joe will lose in utc 0:00
because the "always" period got killed by changing channel name
and then joe lost :)
unless he sets the otn to joe always wins as default
joe lose countdown: <t:1626652800:R>
Why is Ubuntu everywhere π€
it is the easiest to use
is joe cheating again?
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 π
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"
why?
Kali for cyber sec and penetration suite cool dragon logo
why do i have a feeling a lot of people use kali because 'it looks cool'
Cant blame them if it does actually look cool
People perform better when they feel they look cool whether thats coding, sports, etc
lmao
It's most versatile
@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
@upbeat sandal didnt know u could talk normaly via modmail
as in, i thought it was just for mod stuff
you can send whatever you message you want with ?reply and sometimes I shitpost because of who I am as a person.
but yes, ModMail is for super serious moderation stuff
lol
!warn 253696366952316929 Shitposting over ModMail threads.
:incoming_envelope: :ok_hand: applied warning to @upbeat sandal.
There.
Fetching warning for @upbeat sandal...
Infractions found:
- fabulous
Joe will lose in three minutes
I use arch btw
archgarbage
Ye Iβm kidding I donβt use kali Linux as main os
I actually don't, please don't associate me with such cruel monsters 
I used to dual boot with like grub
Could u help me out like in a month
π idk man, I am bad at long-term commitment
My suggestion is not to use arch, otherwise the arch wiki literally has a guide for installing dual booted
Why do u suggest that
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
Oh god, I've been staring at code for so long that I was puzzling out what type of file path would have the words where, how, and when in it
Don't worry, Joe doesn't bite
@jovial island why did you add me
oh.... relief
lmao what
absolutely not
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

yea, openSUSE would be a good choice in your case @left iron
wdym in my case
speaking to flame
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)
@jade bolt your pfp is confusing
Hello
Light dark
Theme
Luser
?
only view the lighter color when you're in dark mode
view the darker color when you're in light mode
wouldn't 0x000000 just be like... NUL000000
wonder how that works
I don't think you can have a hex number larger than... 16?
Hexadecimal no. Is 0-9 then A,B,C,D,E,F
it just ain't work well
Right, I meant... whatever FF is
probably 255
hex digit*
:(
0xFFFFFF = 255,255,255? so uhh
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)
In any regard
it'd be like F * F * F * F * F * F
it'd be #FFFFFF that's 255, 255, 255
In decimal it's 16777215
Sheesh
I'm confused
Surely there's a difference between #FFFFFF and 0xFFFFFF
where #FFFFFF is 3 numbers, and 0xFFFFFF is one
0x is the hexadecimal representation
Yes, which would imply one number
and #FFFFFF being 0xFF, 0xFF, 0xFF
unless 0xFFFFFF is just shorthand for that
assuming that digits cannot be larger than FF
0x is used to represent hexadecimal numbers
i bet 0xFFFFFF is the color index
there's 16.7 mill colors in rgb iirc
so uh 16777215 is the index of a large color table, returns white
(16777215)base 10 =0xFFFFFF
is 0xFFFFFFF supposed to be the last color in the spectrum?
it should be
I think that makes sense, then
Same color, different representation
0xFFFFFF would be the index, #FFFFFF would be the RGB
#FFFFFF runs at rgb and 0xFFFFFF runs as hex color i guess
crazy
indeed
although I wouldn't be surprised if that's just a happy coincidence
and that actually # and 0x are the same
@jade bolt :white_check_mark: Your eval job has completed with return code 0.
16777215
and turning it back to hex causes more trouble
You can do by a for loop
lmao I wonder what a gradient of all the colors would look like
i know, but why do that when you can have some large dictionary storing every stuff
Yeah!
Black ig
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
HAHA
you are 2 sexci i want two fuck you
Ohhhh
4Q lol
ππππππ
yo @midnight mango

:(
that doesn't mean you didn't give it a hex literal
@jade bolt :white_check_mark: Your eval job has completed with return code 0.
<class 'int'>
but you'll see that this is an integer in python
because you're giving an integer not a hex
i'm getting confused with everything right now
so uh
integers are not base 10, a number does not have a base
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
@nova ember Now are you investing in smthing or what?
@delicate lion Oh wow, I didn't see your new web! Its cool, especially with the UI
@elfin bear
Here!
Yes
So what issue is he really.
facing?
I would recommend sharing it with Moderators! Team
dm @vapid maple
He has joined the server. But he can't get past the rules agreement form.
Alright, thanks!
Sure!
Yes indeed
You can thank @short cliff for the fantastic name
In #off-topic-lounge-text I think. I wasnβt in VC, but he just came up with the name out of nowhere
What am I being blamed for?
Correction: praised
@elfin bear Is your friend issue solved?
Yes, he's in. Thanks a bunch!

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
uhm. try casting it to numpy type?
i have
SO suggests downgrading numpy
to which
1.19.5
19.4
sheesh
i thought i had it byheart

no no hold on then explain why this works
this may not be relevant to your code but 2nd answer suggested that make sure to use tensors everywhere
riddle me this, batman
π€·
one or two GitHub links suggested to downgrade python to 3.6
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
?
do you all know jackbox games?
Mmhm
i was gonna ask if you all want to play but i have class now π₯²
interesting name
What is better Xbox or Playstation?
pc
yes
I have the same opinion, but that's my friend choosing
he wishes to choose only between xbox and playstation
@echo flower the about 
idk man
what
pc
β¦?
but what is the otn
hmm
i am tempted to ping joe to ask but ||admins n mods scary||
but it doesnt ping π€·
it pings!
Ask vivek
@somber belfry right? can't you remember that moment @Moderators
@Srijandev#1715 does it tho
uh sarcasm!
no.
sarcasm not allowed
/s
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
java
java is the lang taught at my school lol
It's also not a very good language notwithstanding being killed off by crappy license
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"
π€
its released in 2012
that is as new as it gets
rust is older than that
Dart released in 2013 and look where it landed
kotlin if you dont want java?
where did it land
on land
Go hit 1.0 in 2012
nice
Still relies on Java though
it's just syntax on the JVM, so you have the same license issues as Java,
hm
Though I will say, I've used Kotlin for Android work recently
it's a very nice language but the function definitions infuriate me
how abt rockstar
doesn't sound like something that is very popular
oh it's a joke lang
what about dart huh π
ain't no one use dart
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
i mean, flutter devs do, other than that, its not used for anything,yes
??
I know huh
what the hell did u make
damn
dylan beattie is 
off topic but
Look at my beauties β€οΈ
wtf did u make O_o
i think my gan is going through a phase
but what is it even
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
the generated images would be making more sense overtime..right?
the more you continue generating them.
That's the idea
I honestly have no idea what I did wrong
oh wait
the mnist dataset use 60000 images
how terrible did it look the first time?
i have 600
oh
it's just random noise at epoch 1
hmm
so you give it sample images and it trains on it?
hello
hey!
yeah
hm
the idea is that the discriminator and generator train at the same time
also is it not capable yet of using colours other than those from white to black?
i could try doing colors but i'm doing grayscale for simplicity rn
hmm
wow gan network
wow, you can read!
but i can't write
I'm gonna have to google what a discriminator is.
discriminator discriminates you
guesses whether the generated image is real or not
real?
it guess if data is true or false
if it matches the dataset
oh
right.
maybe i should increase the number of layers to match increase of resolution?
cuz the code im using was built for 28x28 images
i have no idea how this training thing works >:((
is there a platform i can learn advanced math i sucks at it
3b1b is a great source for just about everything math adjecent
so im just copying code and hoping it works
you can train 3d models, it'd be fun
that would require so many more data points and so much more time
thats piracy
most ML code is under MIT/BSD licenses
so as long as you contribute uhh (for example add a random comment line) it'd be fine
you can just use it
needless to say, im dissapointed
private use is ok in mit iirc
even public use, as long as you keep the license with the MIT code
i like that art tbh. it's so good
you're but i'm not
I have no idea whats happening in that
guys if i have to get msgs from some telegram channel in python... what should i use?
i'll try increasing # of layers and try again
what?
oh
probably some kind of telegram api
yeah but it has directly a bot api
iirc
is there a javascript discord?
wdym
like the python discord
idk
any answer for this?
because you can have multiple classes in a single file
!guilds has some, I think
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.
As far as I know, if you declare two classes in one file, the classes that don't match the filenames will be split into another file.
// Cat.java
public class Cat {}
class Dog {}
will generate Cat.class and one more class file
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
this wouldn't work anyway, since afaik public classes need to be in their own file
Ah i didn't realise, I thought public classes had to be in a single file
thought so yea
but class Dog does not create a public class
i just don't think im a good parent
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 
i have increased the brain size again for attempt # 3
600
ah
also i now have 100 epochs
are you at least using google collab?
so maybe thtat'll do something
no, im running it locally
why'd one use google collab as a default? do they provide really good GPUs or something?
idk
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
you do get a GPU, but is it comparable to using your own?
idk
I did notice that collab gets you some nice CPUs too, though - some CPU stuff performs faster there than on my computer
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
wait so does colab run things on your machine or does it get sent to a server?
sent to a server
google runs the notebooks
I could also be googling wrong about what GPUs they use
server, they got good GPU.
+-----------------------------------------------------------------------------+
| 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
Might want to uh, code blockify that
ah
T4s are the low end of what colab does
you can get V100s sometimes
@little void remember the pre-mch days of v100 farming 
the good 'ol days of using google sheets as a database
k80 π
i think all the k80s are phased out now
theyβre probably in a dumpster somewhere now 
still no a100s 
I was surprised when they added v100s tbh.
They could easily do a100 MIG π
Iβm honestly still amazed how cheap it is compared to GCP
google undercutting itself is nothing new 
technically >$0.00 is profit for them now 
iirc everything on colab is using renewable energy and theyβre using hardware that would just be idle
can someone explain the channel name to me?
No
joe's rotten 2 year gap
lol you can use it anywhere
don't report me pls
as long as your address is in USA, you can even use other countries' credit cards
its just rotating whyyyyy
You spin me right 'round baby right 'round
wtf
wtf
hahaha
@marsh flame what is your actual question/aim?
i give up
im going to go read
god damn it
its just lectures
im not smart enough to read
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?
I'm always trying
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
V100 GPU P100 GPU what are this things
.catify ConfusedReptile
ConfusedReptile ααα’
wait, that's not #bot-commands
ah yes jake did very great
how many ot names does jake have? lmao
too many lmao π @ripe hedge
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
the runtime will scale linearly as the input size grows
in other words if you double the size of the input, the runtime (roughly) doubles
which is not the case for all algorithms
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
that's not really true
big O is the asymptotic upper bound, while little o is simply an upper bound
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
good luck
big-O simply isn't the maximum runtime though
of course yes! go on and explain it in a way easy for a novice to understand ...
sure, it's simply how your runtime scales as your input size scales
but what do you do when someone says that they don't understand what this means?
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
what a way to roast me lmfao
Jake did great in doxxing?
Indeed
what is doxxing
what is it supposed to be
it was fun while not a threat
ikrr
"jake did great by doxxing people"
interesting
@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
ok cool
interesting
interesting
interesting
interesting
or 
Bro @jovial island

@jovial islandboy or girl?
lol 
why boy or girl tho, not everyones a child
I am a student
tkinter is already installed, your problem is you are doing py from tkinter import * which should be py from tkinter import *

but * isnt really that good tho
ok ok wait
also, you did not add root.mainloop()
!star-imports are bad for other developers if they are going through your code.
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
@rigid echo tysm bro.. and here what is font?
You should thank @tranquil ridge instead of me!
@tranquil ridgeThanks brooo
Can you please elaborate?
see that font
Your cursor gets over it, I can't really see it
font is a keyword argument here, you forgot to add a comma before it,, font =
What is wrong there?
tkinter is builtin
hmm
missing comma
line 6 before font= missing a comma ,
Have you learned basics first?
Yeah actually I am currently doing a course
SO I just want to develop my skills
So I am practicing
madlibs
Oh cool which course?
calculator and all
no
I am not attending classes
My PC cant run more than 2 apps
Uh I mean you are doing the course regularly
I run VS code and chrome only
right?
no
That's okay!
I can't run 3 apps
So, no problem
if I run my gets
eval("1+1") yay calculator done
LoL
it works tho
!e print(eval("1+1"))
@jade bolt :white_check_mark: Your eval job has completed with return code 0.
2
I saw a guy computer in which only 1 app can run, he is now a software engineer
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

Hey @craggy mountain!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
!paste @craggy mountain
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.
Hey @craggy mountain!
It looks like you tried to attach a Python file - please use a code-pasting service such as https://paste.pythondiscord.com
.
Some people can't be helped
youre not gonna have a fun time if you start spamming for the voice privileges
it depends
@ripe hedge you did great!
@toxic belfry bruh yk beluga?
haha the same pfp
lmfao, you see vids?
a couple.
of beluga??
....
lol, that's fun
yeah dude.
yeah his discord videos are funny
pablo
yeah
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
oh sheesh ty

Stick to automate the boring stuff book
pls daily
I appreciate the kind words!
did great in what
jake did great indeed, grats jake!
Good job Jake!
Q & A
Yes
The owners q&a event
Jake was the question asker human
nice
Wait @ripe hedge did great? Awesome!
Hey, I do exceptionally well on most things
Except databases
lmao we have two jake channels
Jake did do great at the event
oh yeah, he did do great
welcome to another episode of AAAAH WHY WONT YOU JUST WORK. Today: GitHub workflows
I was soooo close with the last one
seems like a frustrating show
yaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaay
nice 
nice
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
yeah it's free, pretty cool stuff https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources
GitHub offers hosted virtual machines to run workflows. The virtual machine contains an environment of tools, packages, and settings available for GitHub Actions to use.
I go through exactly the same thing every time I try and change something lol
Wow I thought this stuff is freemium
there are usage limits but they're pretty generous, should be more than enough unless you're doing some crazy stuff https://docs.github.com/en/actions/reference/usage-limits-billing-and-administration#usage-limits
There are usage limits for GitHub Actions workflows. Usage charges apply to repositories that go beyond the amount of free minutes and storage for a repository.
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
The simple answer is no
Rate my project banner https://github.com/wookie184/dupesearch
4/4 stars
lol
Hahaha, I can relate soooooo much
Noice project banner
I would add a bit more contrast or shading to the stars
@haughty lotus
so
here is the break-down of my algorithm, more or less
- initialize an accumulator string
- transform the set of triplets into a set of pairs
- find the last letter (the letter that only ever appears in the final position in a pair)
- find the first letter (the letter that only ever appears in the forward position in a pair)
- append the letter found in step 4 to the accumulator string
- remove all pairs that begin with the letter found in step 4
- if the set still contains pairs, go back to step 4, otherwise if it is empty, continue
- append the letter found in step 3 to the accumulator string
- 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
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
bro that's so much smarter than my solution
time to kermit salsacide
qwq
whatever im still happy enough with my solution, it works, just i cant implement it, still, yours is simpler and smarter
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
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
hmm
im gonna try to implement mine just out of pride
lol
plus i'd feel bad if i got kyu off of your solution
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
honestly, codewars has the issue where haskell high kyu tasks are far too easy
like, look at this https://www.codewars.com/kata/5470c635304c127cad000f0d/train/haskell
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)
Lua is bad
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
k
may i have @mental idol please
you're an egg correct?
hello @jade bolt
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 
Hey
ey


