#voice-chat-text-1
1 messages Β· Page 45 of 1
Yeah thats the point, it will save time in those kind of tasks
But it can also do complex
you should be reducing such work instead of offloading it to the AI
unless it's legacy codebase, in which anything is excused
Umm you're right but like you have to create a class structure you can't reduce it
("legacy" code is basically at the same level of maintability as newly written AI code, so kind of fits in)
AI can't be used well on legacy codebase you're right but on new creation apps or something you created from scratch it is helpful in those
For Legacy code base there is a option to train GPT although it's not very much affective with large codebase but it works
I said the opposite: it can be used because it's all broken already and humans aren't going to bother with maintaining legacy code
it's already bad (just as AI code), unmaintainable (just as AI code) and held together by tests and assumptions (just as AI code)
But changes in Legacy codebase can affect things that one is not aware about and it will take much more time to do changes with ai and it doesn't make sense
So humans have to bother with legacy codebase
AI work only on a structured code well
AI is better than humans for finding simple patterns in convoluted code
also it can't say "this is too bad, I'm not doing it, it's your problem"
will it miss important details? yes
legacy implies humans working on it no longer know those details either
That's the issue it will mess up the legacy code which you know nothing about
Yeah but to do edits, human again have to go through that code
Or there must be proper documentation that ai can understand
however intertwined the code might be, there still may be ways to incrementally improve it;
so for those rare cases when reading the original codebase takes longer than reviewing the isolated enough change, AI is fine
if you see it's not isolated => reject that change
just like with any AI involvement, it's non-trivial
you still need to be able, from the context of the language not the codebase, check if something is isolated or not
messing with JS prototypes => definitely not isolated,
monkey patching in Python => definitely not isolated,
etc.
unfortunately AI is trained to be quite positive about those
Yeah you're right it will signifcantly improve as the token length limit increases and gpt able to interact correctly with large context
you need to tell it additionally to make changes local
AI will very happily suggest extending JS prototype, I can tell that even without testing, just from how often I saw those suggested in SO answers
latter implying just how often that appears in the training data
Yeah you're right, for extension it's great but if it's like fixing a bug or something which is not isolated it may not work good
(messing with JS prototypes is an anti-pattern if not obvious)
I mean... technically not an anti-pattern
doing anything non-immutable to prototypes is quite bad
js is all prototypes. everything else is just pretend /s
You're not wrong
as soon as two libraries try to add a method with the same name, congratulations, you have a terrible bug to deal with
@mild flume "they're obviously talking about this company"
Umm I don't work with Js a lot can someone please explain what does this mean ? just curious to know
prototypes in JS are responsible for sharing behaviour (methods) across objects
by providing a common "prototype" object they take that behaviour from
(if simplified)
yes, because you go through the chain each time
Wait really? That feels inefficient
well, with some shortcutting I'd expect
I'd hope
Python does that too
and you can monkey patch python
Got it Thanks ! I read directly classes in js but now got it
that's what the language itself supports
Lua does something similar too
there's a different way to do prototype-like inheritance, where you fill the new object with values from the original
copy, then extend
instead of keeping a reference
{...base, ...extra}
so that becomes a union/composition/whatever else
some JS code does that
!stream 962128994814263316
β @calm tusk can now stream until <t:1729700490:f>.
Genuinely thought it was a snake with really long walrus tusks for a bit
I'm very tired
brb
What doest that mean ?
brb = be right back
Got it !
back
Yo
@fading vine And yo to you as well
Yos for everyone
Officially, I have nothing to do with arby's. Unofficially, everything is nothing. Eat Arby's
is that a fast food chain?
i'm eating π rn
they seem.. not organic
modified
no i mean the π i'm eating
Are they blinking at you?
taste diff than previous year's ones
Work? What is this magic thing?
ONION OSTIO C
!e ```py
print(1, 1)
print(2, 2)
print(3, 3)
```py
for i in range(1, 4):
print(i, i)
def print_doubled(i):
print(i, i)
for i in range(1, 4):
print_doubled(i)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1 1
002 | 2 2
003 | 3 3
004 | 1 1
005 | 2 2
006 | 3 3
007 | 1 1
008 | 2 2
009 | 3 3
@untold fern it's arbitrary, they just chose [] for type hints
@untold fern in python it is only when you do int / float operation, it converts both to float
other than that no coersion
i would have never thought that return and print are anything alike
how r u
@tame leaf Hey!
are you both afk??
brb
@kind crescent
this chat
- Create a new virtual environment
- Activate it using the comman
C:\> <venv>\Scripts\activate.bat<--cmd
File "<frozen runpy>", line 198, in run_module_as_main
File "<frozen runpy>", line 88, in run_code
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Scripts\yolo.exe_main.py", line 4, in <module>
from yolo.script import cli
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\yolo\script.py", line 20, in <module>
from yolo import client
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\yolo\client.py", line 38, in <module>
import keyring
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\keyring_init.py", line 6, in <module>
from .core import (set_keyring, get_keyring, set_password, get_password,
delete_password)
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\keyring\core.py", line 14, in <module>
from . import backend
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\keyring\backend.py", line 18, in <module>
from .util import properties
File "C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\site-packages\keyring\util\properties.py", line 1, in <module>
from collections import Callable
ImportError: cannot import name 'Callable' from 'collections' (C:\Users\floca\AppData\Local\Programs\Python\Python313\Lib\collections_init_.py)
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
do you guys have any idea how i can set up keyauth
it just keeps giving me errors
π
The Cambridge University Gilbert & Sullivan Society's βThe Pirates of Penzanceβ!!! Performed at The Minack Theatre, Porthcurno, Penzance 17th - 21st September 2018.
An apprentice to a band of pirates, Frederic has turned 21 and has chosen to leave piracy forever. As he says farewell to his former colleagues, who should appear but the beautiful ...
!stream 732291998274420828 1h
β @quasi widget can now stream until <t:1730006155:f>.
@fluid thicket @fickle sonnet π
https://huggingface.co/blog/synthid-text @quasi widget
hi
π
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
I can't chat without permissions
couldn't you do this to human text too tho?
@umbral rose https://bsky.app
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@elder wraith You cut out.
We don't hear you if you're talking.
We hear everyone else.
@fluid thicket π
Great!
What are you guy building
I don't have anything in the pipeline.
@short agate
π
Pressed enter early so you get a big wave.
@lean garden π
hey
...clarinerd and violin nerd in the same server, who's next?
!e print(repr(object()))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
<object object at 0x7fdbc2274450>
!e from future import print_fuction; print(str(object()))
:x: Your 3.12 eval job has completed with return code 1.
001 | File "/home/main.py", line 1
002 | from __future__ import print_fuction; print(str(object()))
003 | ^
004 | SyntaxError: future feature print_fuction is not defined
What's wrong with this?
class Foo:
def __init__(self, a: int):
self.a = a
self.b = a + 1
foo = Foo(1)
new_foo = eval(repr(foo))
speaking as someone who overrides __repr__() on every single class I write...my ocd is acting up just looking at that
Do you do it just because or is there a purpose to your overwriting?
I find that the default is usually not enough, so I add more details.
I find it more useful for logging and testing.
Default seems to be useless from what I'm seeing.
Right now, I am doing a project where the tests are done in such a way that I have to override the repr for string and dict objects, because the tests fail if there are spaces between the objects in the string or dict repr.
!e ```py
from dataclasses import dataclass
@dataclass
class Person:
name: str
age: int
instance = Person('Peter', 20)
print(instance)
print(repr(instance))```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Person(name='Peter', age=20)
002 | Person(name='Peter', age=20)
e.g.
(not pasting the whole code, that'll be silly. just the part that has to do with my task at hand)
I really like this.
You'd think this is what default repr does.
YOU'D being the emphasis.
I also had to do this:
class CustomDict(dict[str, BencodedValue]):
"""
This class inherits from Python's built-in `dict` but modifies the `__repr__` method
to produce a string without spaces after commas, so that dict outputs will pass the
codecrafters tests. This also adds a method to sort the dictionary by its keys in
ascending order.
Examples:
>>> cd = CustomDict({})
>>> cd
{}
>>> cd = CustomDict({"hello": 52, "foo": "bar"})
>>> cd
{'foo':'bar','hello':52}
"""
def __repr__(self) -> str:
"""
Returns the string representation of the CustomDict without spaces after commas.
For string items, single quotes are used around both keys and values. Numeric
values retain their default string representation. The output is sorted by key
in ascending order, ensuring consistency in the representation.
Returns:
str: The customized string representation of the dictionary.
"""
items = [f"{repr(k)}:{repr(v)}" for k, v in self.sort_keys().items()]
return f'{{{",".join(items)}}}'
def sort_keys(self) -> dict[str, BencodedValue]:
"""
Sorts the dictionary by its keys in ascending order.
This method ensures that the key-value pairs are consistently represented
in a sorted manner when calling the `__repr__` method.
Returns:
dict: A new dictionary with the same key-value pairs as the original,
but sorted by key.
"""
return dict(sorted(self.items(), key=lambda item: item[0]))
where Bencoded Value is defined with type BencodedValue = int | str | "CustomList" | "CustomDict"
Yes, it's a recursive type.
@mild flume
!e py eval = ... del eval print(eval)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
<built-in function eval>
!e
eval = ...
print(eval)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Ellipsis
!e
type
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
!d itertools.takewhile
itertools.takewhile(predicate, iterable)```
Make an iterator that returns elements from the *iterable* as long as the *predicate* is true. Roughly equivalent to:
```py
def takewhile(predicate, iterable):
# takewhile(lambda x: x<5, [1,4,6,3,8]) β 1 4
for x in iterable:
if not predicate(x):
break
yield x
``` Note, the element that first fails the predicate condition is consumed from the input iterator and there is no way to access it. This could be an issue if an application wants to further consume the input iterator after *takewhile* has been run to exhaustion. To work around this problem, consider using [more\-iterools before\_and\_after()](https://more-itertools.readthedocs.io/en/stable/api.html#more_itertools.before_and_after) instead.
Why yes I will use modern features just to force coworkers to update their python version.
Didn't know Delaware had beaches.
On a cold and gray Chicago mornin'
Another little baby child is born
In the plateau
IN THE PLATEAUUU
Is Springfield in a plateau because of Homer?
I thought you'd look at it by it having Rabbit in it or not.
American Nations: A History of the Eleven Rival Regional Cultures of North America is an American non-fiction book written by Colin Woodard and published in 2011. Woodard proposes a framework for examining American history and current events based on a view of the country as a federation of eleven nations, each defined by a shared culture establ...
https://www.bitecode.dev/p/python-313-what-didnt-make-the-headlines Was meaning to link this
Hello everyoneπ
π· Review code better and faster with my 3-Factor Framework: https://arjan.codes/diagnosis.
Python 3.13 is here with exciting updates! In this video, Iβll dive into the key new features, including the game-changing option to disable the Global Interpreter Lock (GIL).
π₯ GitHub Repository: https://git.arjan.codes/2024/python_3_13.
Article Expla...
pi-thon.
@umbral rose π
Python 3.13 is here!
Read about it here: https://docs.python.org/3.13/whatsnew/3.13.html
In this recorded stream KeithTheEE is joined by Εukasz Langa, Pablo Galindo Salgado, and Brandt Bucher to talk about what this new version of Python brings as well as what goes into contributing to Python.
Εukasz, Pablo, and Brandt are CPython Core Team...
!pypi shutils
You need to get voice verified.
Kindly have a look at that.
In the meantime, do you have a question?
@serene quail
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
All of your questions violate rule 5.
what is illegal about that?
Illegally finding someone's information from their IP address.
Hey there
Hello LX.
That was someone else I think
djulray was asking how to find someone's location from their IP address iirc.
I have gold fish memory.
Wut
is copilot better that automatic vs code prediction?
I thought that gen llms are bad at math
are you from us?
brb
βI hope this email finds youβ¦ before I do.β π€ @thequillbot
#quillbotpartner #quillbotforwork #email #introvertstruggles #workhumor
565551
People with title of DevOps COULD have following jobs: Build/Release Engineer, Sysadmin, SRE (Does Ops stuff with code), Dev Janitor
So, taking care of the entire CI/CD lifecycle?
Sometimes, I refuse to get involved in CI at all
When someone says "I'm a DevOps Engineer" that could be 4 titles in one or just rebranding of existing job
"enterprise" doesn't imply accomplishing anything either
(speaking of meaningless words alongside "business")
estimates suggest it'll take ~7 hours to finish the game I'm currently playing
Noctuary; so far 44 hours in-game
a lot of text
I've made a python script to calculate how to distribute skill points
(so that no extra points are left)
points per level is different for each of the six skills
except for two which are same
[
[1500,2500,4000,5000,7000,10000],
[1500,2500,4000,5000,7000,10000],
[1000,1500,3000,5000,6000,7000],
[1000,1500,4000,5000,7000,10000],
[500,1000,2000,3000,5000,6000],
[500,2000,3000,4000,5000,6000],
]
points cost per level
levels[skill][level]
total = [list(accumulate(level, initial=0)) for level in levels]
!d itertools.accumulate
itertools.accumulate(iterable[, function, *, initial=None])```
Make an iterator that returns accumulated sums or accumulated results from other binary functions.
The *function* defaults to addition. The *function* should accept two arguments, an accumulated total and a value from the *iterable*.
If an *initial* value is provided, the accumulation will start with that value and the output will have one more element than the input iterable.
Roughly equivalent to:
total cost to get to a certain level
!e
from itertools import accumulate, product
levels = [
[1500,2500,4000,5000,7000,10000],
[1500,2500,4000,5000,7000,10000],
[1000,1500,3000,5000,6000,7000],
[1000,1500,4000,5000,7000,10000],
[500,1000,2000,3000,5000,6000],
[500,2000,3000,4000,5000,6000],
]
total = [list(accumulate(level, initial=0)) for level in levels]
target = 118000
result = [ix for ix in product(*(range(7) for _ in range(6))) if sum(a[b] for a,b in zip(total,ix,strict=True))==target]
print(result)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[(2, 6, 6, 6, 5, 6), (2, 6, 6, 6, 6, 5), (3, 5, 6, 6, 6, 6), (3, 6, 6, 5, 6, 6), (4, 6, 6, 6, 6, 3), (5, 3, 6, 6, 6, 6), (5, 5, 6, 6, 5, 5), (5, 6, 5, 6, 6, 3), (5, 6, 6, 3, 6, 6), (5, 6, 6, 5, 5, 5), (5, 6, 6, 6, 2, 5), (5, 6, 6, 6, 4, 4), (6, 2, 6, 6, 5, 6), (6, 2, 6, 6, 6, 5), (6, 3, 6, 5, 6, 6), (6, 4, 6, 6, 6, 3), (6, 5, 5, 6, 6, 3), (6, 5, 6, 3, 6, 6), (6, 5, 6, 5, 5, 5), (6, 5, 6, 6, 2, 5), (6, 5, 6, 6, 4, 4), (6, 6, 2, 6, 4, 6), (6, 6, 2, 6, 6, 4), (6, 6, 3, 6, 3, 6), (6, 6, 5, 5, 6, 3), (6, 6, 5, 6, 3, 4), (6, 6, 6, 2, 5, 6), (6, 6, 6, 2, 6, 5), (6, 6, 6, 4, 6, 3), (6, 6, 6, 5, 2, 5), (6, 6, 6, 5, 4, 4), (6, 6, 6, 6, 1, 3), (6, 6, 6, 6, 3, 2)]
those are all the options that fit the total
each tuple has levels per each skill
from 0 to 6 inclusive
yes
yes
should've written it in Prolog
!pypi datalog
huh
that doesn't look right
this is definitely not what I meant
datalog
implemented in Rust
used for the Rust compiler
also typical proc-macro insanity:
https://github.com/ekzhang/crepe
Prolog is made for solving stuff like this
(given simple constraints, find an answer)
the game did warn me there's going to be a boss battle but it told nothing about there being two of them
Hehe.
... or three
Jeez.
okay that one was postponed for the next mission
125_000 only gives six distributions
[(5, 6, 6, 6, 6, 3), (6, 5, 6, 6, 6, 3), (6, 6, 4, 6, 5, 5), (6, 6, 5, 6, 6, 2), (6, 6, 6, 5, 6, 3), (6, 6, 6, 6, 3, 4)]
first, second and fourth skills are prioritised (those are HP, damage and speed)
so that leaves
[(6, 6, 4, 6, 5, 5), (6, 6, 5, 6, 6, 2), (6, 6, 6, 6, 3, 4)]
hp, damage, revive speed, speed, initial boost charge (out of 10), regen efficiency
can heal thrice per stage
(everything else healing-related is spoilers so won't say)
I'm still not sure if these are derived from skill levels or from actual performance in-game
okay, the experiment of resetting confirmed they're derived from skill levels
!pypi pytest
@cerulean prairie here
!e
from typing import Any
def window(length: int, offset: int, vals: list[Any]) -> list[list[Any]]:
# CHECK LATER
if length == 0:
return []
if len(vals) <= length:
return [vals]
new_windows: list[list[Any]] = []
for i in range(0, len(vals) - length + 1, offset):
new_windows.append(vals[i:i+length])
return new_windows
window(2, 1, [1, 2, 3, 4, 5, 6])
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
Oh, you're doing codewars problems?
!stream 165536887103029249
β @cerulean prairie can now stream until <t:1730296624:f>.
yes π
I love programming puzzles π
Cya Chris
I'll be back if my class is boring
Yea I wouldn't hard-code a solution.
It will work for the example test cases, but it might not work when you submit your solution.
Yo
Yep, am watching
Mhm
#data-science-and-ml would be the place to ask @scarlet cedar
@cerulean prairie You'll need to construct a new list containing that many empty lists.
did that, thanks man
So you'll need to create a new empty list, then in a loop append one-by-one empty lists to that list (as many as you need).
π
Actually, @cerulean prairie, you might be able to deal with the empty list case without treating it as a special case. With just the part at the end, what does your function do? I mean just the part: ```py
new_window = []
for i in range(0, len(list) - length + 1, offset):
new_window.append(list[i:i+length])
return new_window
Often the special cases in problems like this are chosen to be consistent with the general case (if the problem is well-written).
!e ```py
def window(length, offset, list):
new_window = []
for i in range(0, len(list) - length + 1, offset):
new_window.append(list[i:i+length])
return new_window
print(window(0, 1, ['a', 'b', 'c', 'd']))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[[], [], [], [], []]
Seems like it should just work Β―_(γ)_/Β―
Mebe
π
That problem was a little tricky
Hey that's me @cerulean prairie
So this is potentially how you would do it in a more "pythonic" way.
This will work on iterables, which are a more general class of objects than lists.
An iterable is anything you can loop over with a for loop.
Yeah, I like to experiment a bit with different solutions π€·ββοΈ
That one's kind of ugly in my opinion.
It uses a list comprehension, which you might not have encountered yet.
Oh right.
Yeah that's probably a matter of just using them judiciously.
Β―_(γ)_/Β―
I'm learning R at the moment, so I'm probably going to do some exercises on that today.
hello
I've got to go now though. I'll probably be back later π
i wanna to ask something about selenium navigation command
Okay thank you for your help!
str.index(sub[, start[, end]])```
Like [`find()`](https://docs.python.org/3/library/stdtypes.html#str.find), but raise [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError) when the substring is not found.
!e
print("ham".index("m"))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
2
!stream 165536887103029249 30M
β @cerulean prairie can now stream until <t:1730301521:f>.
@cerulean prairie They're going to want you to print() the output in a specific way
Actually I don't know if they want a print or a returned string
So there's a few things you can do here
Have you learned about string formatting?
!e
ham = 5
print("This is using the format method: {}".format(ham))
print(f"This is using f-strings: {ham}")
print("This is using older C style formatting: %d" % ham)
print("This is using concatenation: " + str(ham))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | This is using the format method: 5
002 | This is using f-strings: 5
003 | This is using older C style formatting: 5
004 | This is using concatenation: 5
I typically recommend the f-string style
f-strings are dope
@cerulean prairie Lets migrate to Live-Coding
do most sites , create a block so its hard to webscrape ? @hazy garden
most would probably use a existing software solution that has some protection
what about a small local website ( learn basic website stuff ) then scrape that ? , that way can learn how a server behaves when being scraped ? Im from Canada
Dont you have a rather hi spec laptop ? lots of memory @midnight dagger
yeah man
so can you model a small website , then be able to monitor server behavior then scrape it , 3 things to model
@midnight dagger
if scraping a uni website , how to organize all the PDF papers into a new searchable database
i don't wanna do web dev
well when webscraping , many sites have a bit of AI or statistical monitoring so there site is not overwhelmed , because a scrape could potentially be seen as DOS attack or other
you want to do DATA ANALYTICS ? @midnight dagger
ya
hmm Ham Radio people often want a simple dashboard of data from different sites , geographical , ionisphere stuff , bla bla ... then have it display in simple quick way@
Pork Radio
https://observablehq.com/@d3/gallery?utm_source=d3js-org&utm_medium=hero&utm_campaign=try-observable
Looking for a good D3 example? Hereβs a few (okay, β¦) to peruse. Animation D3βs data join, interpolators, and easings enable flexible animated transitions between views while preserving object constancy. Interaction D3βs low-level approach allows for performant incremental updates during interaction. And D3 supports popular interaction methods ...
ohhh gonna look that up
D3js
@prisma yew what happened?
sometimes my mic can be glitchy
yea
idk what to do so i'll just go through my projects folder and see what I have to show off
I found a project that's folder is just called ranked coding
ohhh I remember
basically like leak code
it gives you something to code and you code it
@sand dirge π
i litterally just have to make a function to merge 2 list and i am struggling π
idk that's what's hard π
@mortal nacelleπ
Hi
oh wait nwm it just wanted to return list1 + list2
next one just wans me to find the max of a list of numbers
#import csv module and call open(), reader()
#solution accepts input identifying name of CSV file (i.e., "input1.csv")
#solution outputs each row of CSV file contents as a dictionary of elements
import csv
filename = input()
with open(filename) as csvfile:
reader = csv.reader(csvfile)
for row in reader:
row_dict = {}
for i in range(0, len(row), 2):
key = row[i].strip()
value = row[i + 1].strip()
row_dict[key] = value
print(row_dict) i dont understand how this works lol
I am struggling this is what I got rn
def find_max(d): maxi = None for i in d: if maxi == None: maxi = i else: if i > d: d = i return maxi
hey idk why i dont have permission to talk in the calll
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
thabk you i just need to send more messages
im doing an intro to python class and i feel so behind
Literally its so much LOLL
its more ab the loop in general i dont understand why its incrementing by 2 in the for loop then why im doing i+1
i wish there was a module or function that does this automaticly lol
thanks for your help add me as a friend please i have to go
Thanks man!
?
ok
I just been playing thaat game I made
there's not really a lot of questions
only 14 questions
ima add more
more like a puzzle
here's one of the questions
{
"Write a function called 'reverse_string' that reverses a string.": ["reverse_string", ["hello", "olleh"]],
yea there's other more harder ones
I don't really know what I should add
yk what that's what ai's for
what would be something hard to do?
oh god
it's getting into sorting algos
I have herd of merge sort but don't have a clue what it is
Create a program that calculates the meaning of life: Use a fancy algorithm that divides your age by your shoe size to get the answer, which is obviously 42.
Design a dating app for cats: The app matches cats based on their favorite napping spots and whether they prefer laser pointers or string.
Build a calculator that only adds: Forget subtraction, multiplication, and divisionβjust have a button that says βAdd more!β to everything.
Develop a game that has no rules: Your character just runs into walls forever. Winning means you never stop playing.
Write a script that generates random error messages: Users will always be entertained when they receive messages like, βError 404: Your life is a mess.β
Make a code editor that only accepts gibberish: Forget proper syntax and grammar. If it looks good, it is good!
Create an app to rename all files to "Nope": Why bother with meaningful names? Just be consistent with βNopeβ for everything.
Develop a website that solely displays βUnder Constructionβ: Make it a work of art, complete with blinking GIFs and background music from the 90s.
Build a social media platform for inanimate objects: Let your forks and spoons connect with other kitchen utensils and share their thoughts on food.
Code a virtual pet rock simulator: Make sure it requires daily feeding, walking, and vet visits, even though itβs just a rock sitting on the screen.
Courtesy of deepai.com
π π π
"virtual pet rock"
I may have appended "wrong answers only" to the prompt.
XD
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@burnt raven ππΏ
Hello
hi @queen karma
@digital kettle hi man
what u doin
@rotund bough hello ?
helo
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stuck bluff
@fair heron show
show what
video?
how
idk maybe share screen if possible
with what content
what u just talked abt?
doubt
still gotta figure out the 10 minutes block kinda activities
good evening everyone
hi
thanks notice me
no
good evening
hi
@stuck bluff how did you find out about python 
mistakes were made?
and what use case you had for it?
@shell kite π
Hi
hi
hello the advance company
Compatitive for what
Sorry could I know what is this call is about?
chess
alright
!zino
is it possible to get feedback on a certain website?
?
oh, I just considered it is a bot command ,but it is notπ
lol
yes
?
site link or it don't exist
The best resources and books from around the web, collected and curated for your reading.
it was made by me quite a while ago and I made a couple of modifications after
not centered
lol
@stuck bluff from where are you reading this π
@slim lotus π
You are not allowed to use that command here. Please use the #bot-commands channel instead.
!user
You are not allowed to use that command here. Please use the #bot-commands channel instead.
Evil baby
yummy
@faint wharf π
Hello there
Thanks fellas I need to go now hope y'all have a nice day
have a nice day
nice day
noo Opal left
π¦
Hi π¦
π§ Joe biden : poor kid as just as bright and talented as white kid
Former Vice-President and 2020 presidential candidate Joe Biden was quick to correct himself during a speech in Des Moines, Iowa on Thursday after he said poor kids "are just as bright and just as talented as white kids."
Biden was speaking about opportunity in education at the time of the gaffe.
Apparently realizing he'd made a mistake, Bide...
@modern ore Wdym you ain't getting a job?
So its your problem that you are incompetent
No offence
Where you apply?
I mean from where you want to work
Ig maybe there are no job in your area
Oh
Have they shared the reason behind rejection?
Hmm
Damn
@modern ore America π¦
@modern ore I hope you had some saving left, else you might be domed
@modern ore You must mention that you are gay on resume and apply for opening only for gay
π
@rotund bough What the hell you are typing for so long
a love letter to yo mama
are constructor necessary in python?
No
!e
class Trump:
def winning(self):
print("So much winning!")
def hands(self):
print("I have the best hands! You won't believe it. My hands are the best hands")
def brain(self):
print("I have the best brain. My brain is the best brain you will ever see")
trump = Trump()
trump.winning()
trump.hands()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | So much winning!
002 | I have the best hands! You won't believe it. My hands are the best hands
Just like your love letter its uneccessary
Because she already feels the love?
Rats Kuzko & Kronk Learn to Drive Tiny Cars (compilation 1)
DISCLAIMER: Yes, they can leave the cars whenever they want! :) These 'rat rods' were made and gifted to us by my dad. They originally had back doors with little latches. We realized quickly that we wanted to leave them unlatched so that they could exit the vehicle whenever they wanted...
Even he has his own car π’
It's so amazing
I envy that little guy
after inflation pizza :
it looks like fortune cookie
it's pizza
What!?
How could that be pizza?
OH
Pizza is american
@modern ore Have you tried walk in interview ?
Damn your luck is bad for real
I hope you may get job asap
!e
class Trump:
def rule_one(self):
print("Do anything to win")
def rule_two(self):
print("Fight for recognition")
def rule_three(self):
print("Fight till death")
def rule_four(self):
print("Sell fantasy to people")
def rule_five(self):
print("Deny everything, pretend you never lost")
def rule_six(self):
print("Rule are meant to broken as long as you can bare consequence")
trump = Trump()
methods = [trump.rule_one, trump.rule_two, trump.rule_three, trump.rule_four, trump.rule_five, trump.rule_six]
for method in methods:
method()
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Do anything to win
002 | Fight for recognition
003 | Fight till death
004 | Sell fantasy to people
005 | Deny everything, pretend you never lost
006 | Rule are meant to broken as long as you can bare consequence
@hazy garden What program is that?
Figma
the one in which I have the color pallete
the pages are open in Firefox though
Gotcha
dev tools are enabled, so I can see different screen sizes
the last pickle
!e
import numpy as np
X = np.array([[0, 0], [0, 1], [1, 0], [1, 1]])
y = np.array([[0], [1], [1], [0]])
class SimpleNN:
def __init__(self):
self.W1 = np.random.rand(2, 2) - 0.5
self.b1 = np.random.rand(1, 2) - 0.5
self.W2 = np.random.rand(2, 1) - 0.5
self.b2 = np.random.rand(1, 1) - 0.5
def sigmoid(self, x):
return 1 / (1 + np.exp(-x))
def sigmoid_derivative(self, x):
return x * (1 - x)
def forward(self, X):
self.Z1 = X.dot(self.W1) + self.b1
self.A1 = self.sigmoid(self.Z1)
self.Z2 = self.A1.dot(self.W2) + self.b2
return self.sigmoid(self.Z2)
def backward(self, X, y, output, learning_rate=0.1):
dZ2 = (output - y) * self.sigmoid_derivative(output)
dW2 = self.A1.T.dot(dZ2)
db2 = np.sum(dZ2, axis=0, keepdims=True)
dZ1 = dZ2.dot(self.W2.T) * self.sigmoid_derivative(self.A1)
dW1 = X.T.dot(dZ1)
db1 = np.sum(dZ1, axis=0)
# Update weights and biases
self.W1 -= learning_rate * dW1
self.b1 -= learning_rate * db1
self.W2 -= learning_rate * dW2
self.b2 -= learning_rate * db2
def train(self, X, y, epochs=10000):
for epoch in range(epochs):
output = self.forward(X)
self.backward(X, y, output)
if epoch % 1000 == 0:
loss = np.mean((y - output) ** 2)
print(f"Epoch {epoch}, Loss: {loss:.4f}")
nn = SimpleNN()
nn.train(X, y)
print("Predictions after training:", nn.forward(X).round())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | Epoch 0, Loss: 0.2611
002 | Epoch 1000, Loss: 0.2500
003 | Epoch 2000, Loss: 0.2500
004 | Epoch 3000, Loss: 0.2500
005 | Epoch 4000, Loss: 0.2499
006 | Epoch 5000, Loss: 0.2498
007 | Epoch 6000, Loss: 0.2487
008 | Epoch 7000, Loss: 0.2365
009 | Epoch 8000, Loss: 0.1816
010 | Epoch 9000, Loss: 0.0716
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/QU4BXEV473GHWUO7K7UAZRWTVM
Why opium?
X-ray is bad, at large scale it can be mis managed and it had to be regulated
https://www.instagram.com/p/DBzAtctSLUN/?utm_source=ig_web_button_share_sheet&igsh=MzRlODBiNWFlZA==
Is her pomp pomp real or fake?
Guys what do you think?
Happy Halloween π»π½πΈ
Seiko Ayase Cosplay ππ #DANDADAN
#seiko #cosplay #anime
6830
!e
class Trump:
def __init__(self):
data = {
"name": "DJ Trump",
"winning": "So much winning!",
"hands": "My hands are the best hands!",
"on_powder": "COVFEFE!",
}
self.data = data
self.deny = "Fake News!"
def say(self, attr):
return self.data.get(attr) if attr in self.data else self.deny
trump = Trump()
print(trump.say("name"))
print(trump.say("on_powder"))
print(trump.say("in_press"))
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | DJ Trump
002 | COVFEFE!
003 | Fake News!
the name of my site
!e
code
!e
print("trump")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
trump
!e
import numpy
:warning: Your 3.12 eval job has completed with return code 0.
[No output]
@dusky flax π
Why is your name @dusky flax
Why not?
no background story?
Oh well it was just a gamertag for a long time which has just followed me
My name is Max
hi max
Hi, Im new to Python and I came looking for a beginners section in the server
Can I say n word?
Ok I take it this is not the server for me
Yh bye
its my surname
Why does Discord have to be so weird???
World itself is weird
it is my surname
There is famous guy named dan nigro you can search
Its quite common
I'm not black but my surname literally means black π
Oh thats interesting
bye
@wooden marlin π
@radiant sapphire hi
average basic minecraft wallpaper when i was a kid lmao
change it to somethin more minimalist
!e py my_dict = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'} print(my_dict.keys()) print(my_dict.values()) print(my_dict.items())
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | dict_keys(['key a', 'key b', 'key c'])
002 | dict_values(['value a', 'value b', 'value c'])
003 | dict_items([('key a', 'value a'), ('key b', 'value b'), ('key c', 'value c')])
so how old are you now ?
2 digits
oof
when using .items, why is only gonna be dict_items([('key a', 'value a'), ('key b', 'value b'), ('key c', 'value c')])
even tho at the start is already in like this: my_dict = {'key a': 'value a', 'key b': 'value b', 'key c': 'value c'}
:white_check_mark: Your 3.12 eval job has completed with return code 0.
{'__name__': '__main__', '__doc__': None, '__package__': None, '__loader__': <_frozen_importlib_external.SourceFileLoader object at 0x7f8699dacd70>, '__spec__': None, '__annotations__': {}, '__builtins__': <module 'builtins' (built-in)>, '__file__': '/home/main.py', '__cached__': None, 'var': 'Hello, world.'}
!e py globals()['var'] = 'Hello, world.' print(var)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello, world.
class dict(**kwargs)``````py
class dict(mapping, **kwargs)``````py
class dict(iterable, **kwargs)```
Return a new dictionary initialized from an optional positional argument and a possibly empty set of keyword arguments.
Dictionaries can be created by several means:
β’ Use a comma\-separated list of `key: value` pairs within braces: `{'jack': 4098, 'sjoerd': 4127}` or `{4098: 'jack', 4127: 'sjoerd'}`
β’ Use a dict comprehension: `{}`, `{x: x ** 2 for x in range(10)}`
β’ Use the type constructor: `dict()`, `dict([('foo', 100), ('bar', 200)])`, `dict(foo=100, bar=200)`
Hello
im not speaking good eng
am cybersec consultant
!e py my_dict = {'Apples': 1, 'Pears': 5} my_dict['Oranges'] = 10 print(my_dict) popped = my_dict.pop('Apples') print(my_dict) print(popped) my_dict['Pears'] = 20 print(my_dict)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'Apples': 1, 'Pears': 5, 'Oranges': 10}
002 | {'Pears': 5, 'Oranges': 10}
003 | 1
004 | {'Pears': 20, 'Oranges': 10}
@wary beacon π
hi
hi @stuck bluff
still need to send few more messages to verify
@umbral rose you prefer discord.js or discord.py
hello
i cant talk
@gritty tiger
im here
i really dont know
what
to do
what is happening
someone is screaming like a cartoon charecter
dont
talk
behind
his
back
its
bad
I read @rotund bough as mommy leaks
memory
3.0000000000004
javascript : thats right
Especially in 2020, instant heavy and violent rainfalls have caused detrimental effects on greenhouses and crop yields in my country. Unfortunately, these days unexpected and excessive rainfalls occur more frequently and became relatively common due to climate change in some areas. Meanwhile, other regions suffer from drought. As 2020 passes, mo...
these are really cool
can python run on esp32
I'd expect Python proper to depend on the existence of some operation system to run
hello noodlereaper
thanks
Hello anyon here wanna play chess against me?
If you won, I would give you 20 bucks and if I won you have to do the same for me
@cold trellis I'm sorry but what you were talking about
which time control?
Contribute to radiance-project/ear-web development by creating an account on GitHub.
@serene quail what exactly you wanna do?
he uses nothing earbuds he wants software to manage its eq on windows
there's nothing official
Its hard to understand what he intends to do
GraphQL is an incredible piece of technology that has captured a lot of mindshare since I first started slinging it in production in 2018. You wonβt have to ...
I do some level of microservices even when I do stuff on my own, but that's just to get "while X is restarting, Y may still work normally"
and, since recently, there sometimes are reasons to have a giant part of the application have all its traffic shoved through a proxy, while the rest isn't
so it's just easier to put it as a separate process
anyone can helo me
help with what?
I should try this
https://caddyserver.com/docs/automatic-https#dns-challenge
@gritty tiger you can do DNS challenge
... and Discord crashed
am back
well, at least they break the arguably wrong ways to use it
way before I started using it, there was a breaking change of banning GET requests
and now no more passing arguments in query params
form data only
sry cant talk rn
eh?
was responding to "free country" comment
I don't remember the whole context anymore
Literally
im gonna mute, till it finish @stuck bluff . i have urgent questions about my .csv
or is there anyone that understand data manipulation with phyton. i can ask with?
Visualize score distribution
plt.figure(figsize=(10, 6))
sns.countplot(x='score', data=data, palette='viridis')
plt.title('Distribution of Review Scores')
plt.xlabel('Score')
plt.ylabel('Count')
plt.show()
.py:3: FutureWarning:
Passing palette without assigning hue is deprecated and will be removed in v0.14.0. Assign the x variable to hue and set legend=False for the same effect.
sns.countplot(x='score', data=data, palette='viridis')
what is dis error or wut? codes run well
!code
ok thx i fixed it by hue='score'
What page?
@mystic spruce π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
@misty sinew π
I asked them: How could I euthanize myself legally and got muted
Discord community guidelines, section 11.
!rule 2
2. Follow the Discord Community Guidelines and Terms of Service.
My bad, I deserve mute
@clear sage Down here
oh
i am debating between https://www.weatherapi.com/docs/ and https://openweathermap.org/api
currently using openweathermaps but have heard about inaccuracy issues
WeatherAPI.com offer comprehensive Global and Local Weather API, Geo API, Astronomy API and Time Zone API. Simple to use, powerful, fully managed and free!
Explore OpenWeather's vast range of weather APIs including the versatile One Call API 3.0. Ideal for both
beginners and professionals, our APIs offer current weather, minute-by-minute forecasts, historical data archives, and
future predictions. Access weather data starting from 01-01-1979, global weather maps, solar irradiance predictions, air
p...
Toss a coin
@tired inlet π
Watch my screen, I'll show you.
i cant see anything
if condition:
'Exactly one if'
elif some_other_condition:
'Zero or more elifs'
else:
'Zero or one else.'```In this order. The first condition to be satisfied has its accompanying codeblock run.
!e py print('A') if True: print('B') print('C')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | A
002 | B
003 | C
You can do:
- IF
- IF-ELSE
- IF-ELIF-ELSE
- IF-ELIF
@plucky dome π
if condition: expression elif condition: expression else: expression
the standard structure for if, elif, and else
When you do just IF, if the statement is not truthy, then it'll just proceed to the rest of your code. When you do IF-ELSE, you will run either IF block or ELSE block, so it doesn't just ignore the IF-ELSE block. When you do IF-ELIF-ELSE then you have some additional conditions (additional IFs you want) using ELIFs. You can have multiple ELIFs.
If you use IF-ELIF, then same as IF only, it will first check if the condition(s) are met, and if not the whole clause is ignored.
i use
name = (input('whats your name?'))
if name == smile or sad:
print ('BLABLA')
else:
print(' hello and welcome')
is that right?
!e
name = "John"
if name in ["smile", "sad"]:
print("BLABLA")
else:
print("Hello and welcome jackass!")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
Hello and welcome jackass!
it works in IDLE Python
FYI,
if name == "smile" or name == "sad"
is the same as
if name in ["smile", "sad"]
hey guys
I have a problem with Selenium
I want to scroll the page down but i dont know how
@proper ridge can u help me
'''py
print ('hello world')
'''
I don't know selenium mate. Sorry.
z = 3
if z % 2 == 0:
print("z is divisible by 2")
elif z % 3 == 0:
print("z is divisible by 3")
else:
print("z is neither divisible by 2 nor by 3")
thanks
that's what i eanted to send
If you want to run this now, just put !e before the snippet.
!e
z = 3
if z % 2 == 0:
print("z is divisible by 2")
elif z % 3 == 0:
print("z is divisible by 3")
else:
print("z is neither divisible by 2 nor by 3")
:white_check_mark: Your 3.12 eval job has completed with return code 0.
z is divisible by 3
!code
still a really pretty gem
@proper ridge what sauce would u have with fries?
oh
i would mix sauces
mayo, ketchup, and some spicy sauce
amazing combo
@fresh bramble π
it takes so long to send 50 texts
i am on 23
does it count if you send a text after a text?
.
!e
vals = [1, 2, 3, 4]
for i in range(len(vals)):
print(vals[i])
for val in vals:
print(val)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
004 | 4
005 | 1
006 | 2
007 | 3
008 | 4
@clear sage
!e
vals = [1, 2, 3, 4]
# Prints the pairs, aka 12 then 23 then 34
for a, b in zip(vals[0:-1], vals[1:]):
print(a, b)
# Prints index `i` and value `val`
for i, val in enumerate(vals):
print(i, val)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1 2
002 | 2 3
003 | 3 4
004 | 0 1
005 | 1 2
006 | 2 3
007 | 3 4
what is that?
!e py for ab in zip('abc', '123'): print(ab)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | ('a', '1')
002 | ('b', '2')
003 | ('c', '3')
!e py for a, b in zip('abc', '123'): print(f'{a} and {b}')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a and 1
002 | b and 2
003 | c and 3
!e py for iv in enumerate('abc'): print(iv)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | (0, 'a')
002 | (1, 'b')
003 | (2, 'c')
!e py for i, v in enumerate('abc'): print(i, v)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 0 a
002 | 1 b
003 | 2 c
thats cool
Good reminder that a string is a sequence of characters.
It's a sequence.
That's why you can do len() and __slice__ and __iter__.
!e py a, b, c = [1, 2, 3] print(a) print(b) print(c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
!e py for a, b, c in [(1, 2, 3), (4, 5, 6), (7, 8, 9)]: print(f'{a=}, {b=}, {c=}')
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | a=1, b=2, c=3
002 | a=4, b=5, c=6
003 | a=7, b=8, c=9
i don't really understand this but it looks cool
!e py a = [] b = [[], a, a] print(b) a.append('abc') print(b)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[], [], []]
002 | [[], ['abc'], ['abc']]
20 more texts to go
!e
a = ['_']
b = [[], a, a.copy()]
print(b)
a.append('abc')
print(b)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[], ['_'], ['_']]
002 | [[], ['_', 'abc'], ['_']]
!e
a = ['_']
b = [[], a, a.copy()]
print(b)
b.copy()[0].append('abc')
print(a)
print(b)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[], ['_'], ['_']]
002 | ['_']
003 | [['abc'], ['_'], ['_']]
!e py a = [] b = [] c = a print(a == b) print(a is b) print(a is c)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | True
002 | False
003 | True
so close

my eyes feel way worse with light on
!e py a = [] my_list = [a for _ in range(5)] print(my_list) a.append(123) print(my_list)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | [[], [], [], [], []]
002 | [[123], [123], [123], [123], [123]]
!e
a = [2, 3, 1, 1]
b = list(set(a))
print(b)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[1, 2, 3]
!e ```py
def func(values):
seen = set()
result = []
for value in values:
if value not in seen:
result.append(value)
seen.add(value)
return result
print(func([2, 3, 1, 1]))```
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[2, 3, 1]
do yall know how to fix packet loss?
[{'gate': 'H', 'qubit_indices': 0},
{'gate': 'CX', 'control_index': 0, 'target_index': 1}]
I need to record the indices in the exact order you see there.
!e
a = [2, 3, 1, 1]
seen = set()
result = []
for item in a:
if item not in seen:
seen.add(item)
result.append(item)
print(result)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[2, 3, 1]
!e
from collections import OrderedDict
a = [2, 3, 1, 1]
result = list(OrderedDict.fromkeys(a))
print(result)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[2, 3, 1]
i have 9 more texts i have to send
nice
i am at 47
!d collections.OrderedDict
class collections.OrderedDict([items])```
Return an instance of a [`dict`](https://docs.python.org/3/library/stdtypes.html#dict) subclass that has methods specialized for rearranging dictionary order.
Added in version 3\.1\.
!d collections.OrderedDict.move_to_end
50
move_to_end(key, last=True)```
Move an existing *key* to either end of an ordered dictionary. The item is moved to the right end if *last* is true (the default) or to the beginning if *last* is false. Raises [`KeyError`](https://docs.python.org/3/library/exceptions.html#KeyError) if the *key* does not exist:
```py
>>> d = OrderedDict.fromkeys('abcde')
>>> d.move_to_end('b')
>>> ''.join(d)
'acdeb'
>>> d.move_to_end('b', last=False)
>>> ''.join(d)
'bacde'
``` Added in version 3\.2\.
so that's why it's still not deprecated
ah, and also the equality
, and reversed iteration
a total of four things in addition to orderedness
imagine being able to have a wide voice range, couldn't be me
@little oracle π
@clear sage Fireship is by Jedd Delaney, and freeCodeCamp is by Quincy Larson
so not the same people
just happens to have similar logos
i see
router often is both a DHCP client and a DHCP server
latter you can configure
(specifically, you need to set DHCP static rules/whatever, not just temporary assign it)
@stuck bluff ICMP blocking is something Docker has to deal with too
TCP and UDP are simple to deal with
everything else -- less so
you can get code done when you work 12 hours a day
but you absolutely cannot learn this way
at least not systematically
excessive rewatching/rereading is only okay if it's entertaining I think
correction: study not learn
@plucky dome pre-fork library got abandoned
it's basically dead now
.
the one you mentioned as broken, from which you had to switch to the new one
oh
?
!kindling
The Kindling projects page on Ned Batchelder's website contains a list of projects and ideas programmers can tackle to build their skills and knowledge.
!kindling
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
@lime citrus this is a cool website, I'm wanting to point out the containers, kthx https://nedbatchelder.com
thanks but i don;t know what you mean about containers
Can someone who is good in tech knows about node.js bot hosting dm me ? I need help in some matter
click the exact link, it seems some container, div or other has lost that contents
that is how it is supposed to look. What is missing?
do you have something that forces dark theme on websites?
it could be making background darker than it should be
thus the image borders stand out
ah, I understood incorrectly, I expected it to be similar to the other pages
it intersects the letters
Dark Reader for Browser
but normally it's same colour
I see, thanks.
hmm, on my mac in dark mode, firefox or chrome, the color is correct. idk what Dark Reader is doing.
making it dark lol
it should switch based on your system settings, no need for a browser plugin
Try it now. I think the overlap is fixed, I still don't know why the color is wrong.
@stark charm π
@long dawn π
@stuck bluff hello
?
@stuck bluff are you mute or something else i cant hear you
public class HelloWorld {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}```
a bit outdated
at least the grammar is correct lol
thus not violating the Oracle copyright
seks
!e py import numpy as np arr = np.array([4, 3, 2, 2, 1]) _, idx = np.unique(arr, return_index=True) arr = arr[np.sort(idx)] print(arr)
:white_check_mark: Your 3.12 eval job has completed with return code 0.
[4 3 2 1]
pandas.unique(values)```
Return unique values based on a hash table.
Uniques are returned in order of appearance. This does NOT sort.
Significantly faster than numpy.unique for long enough sequences. Includes NA values.
and is faster
Yo what's up?
I wonder how big India or China's GDP have to be to have per capita similar to that of USA?
@tame leaf Why you sound like you had weed?
Just woke up and I'm on antidepressants
I wish i was high tho
@near galleon π
im muted
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@stuck bluff
Hmmmmm?
are you familiar with ML
Aware of it. Not versed in implementing it.
ohk do you know how can i encode a column with 1000 unique values
A column in...Pandas? Numpy? PyOpenXL?
What are the parameters of these unique values.
@grave swan π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
hi guys
thanks bro
