#voice-chat-text-0
1 messages ยท Page 114 of 1
each bool in a list takes, like, what, 8 bytes?
!e
import sys
print(sys.getsizeof([True] * 1_000))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
8056
@verbal zenith
!e py import sys print(sys.getsizeof(True))
8 bytes per bool
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
28
This module defines an object type which can compactly represent an array of basic values: characters, integers, floating point numbers. Arrays are sequence types and behave very much like lists, except that the type of objects stored in them is constrained. The type is specified at object creation time by using a type code, which is a single character. The following type codes are defined:
Similar names: numpy.term.array
Bit...strings?
it's telecom, they value each bit sent
@whole bear๐
!e
import sys
print(sys.getsizeof([object()] * 1000))
print(sys.getsizeof([object() for _ in range(1000)]))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 8056
002 | 8856
what
!e
import sys
for i in range(6):
print(sys.getsizeof([object() for _ in range(10 ** i)]))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 88
002 | 184
003 | 920
004 | 8856
005 | 85176
006 | 800984
*100000 doesn't create new objects
it creates exactly one new object
!e
import sys
a = [object() for _ in range(100000)]
print(sys.getsizeof(a))
print(sys.getsizeof(a.copy()))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 800984
002 | 800056
I figured out what happens maybe
constructing list from an iterator produces a bigger list
because it dynamically allocates
because it doesn't know the length
!e ```py
class MyClass:
def init(self):
self.value = 'A'
def repr(self):
return self.value
a = [MyClass() for _ in range(10)]
b = [MyClass()] * 10
print(a)
print(b)
a[0].value = 'B'
b[0].value = 'B'
print(a)
print(b)```
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | [A, A, A, A, A, A, A, A, A, A]
002 | [A, A, A, A, A, A, A, A, A, A]
003 | [B, A, A, A, A, A, A, A, A, A]
004 | [B, B, B, B, B, B, B, B, B, B]
!e
import sys
print(sys.getsizeof(list(range(1000))))
print(sys.getsizeof(list(x for x in range(1000))))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 8056
002 | 8856
!e
import sys
class C:
def __iter__(self):
yield from range(1000)
class D(C):
def __len__(self):
return 1000
print(sys.getsizeof(list(C())))
print(sys.getsizeof(list(D())))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 8856
002 | 8056
!e
import sys
class C:
def __iter__(self):
yield from range(1000)
def __len__(self):
return 10000
print(sys.getsizeof(list(C())))
@vocal basin :white_check_mark: Your 3.11 eval job has completed with return code 0.
9080
it shrinks
probably not, I'd say
I'd expect it to choose to allocate in bigger chunks
@lunar dove๐
or smaller chunks if the length hints to
Contiguous is the word.
continuously layed out in memory? maybe
typedef struct {
PyObject_VAR_HEAD
/* Vector of pointers to list elements. list[0] is ob_item[0], etc. */
PyObject **ob_item;
Py_ssize_t allocated;
} PyListObject;
looks like just array list
@verbal zenith memory is virtual, so no it doesn't align with physical order
also, you can mmap a file, not sure how you'd compare file positions and physical memory positions
make file appear like RAM
on C level
maybe it isn't mmap exactly
mmap(2) is a POSIX-compliant Unix system call that maps files or devices into memory. It is a method of memory-mapped file I/O.
!d numpy.memmap
class numpy.memmap(filename, dtype=<class 'numpy.ubyte'>, mode='r+', offset=0, shape=None, order='C')```
Create a memory-map to an array stored in a *binary* file on disk.
Memory-mapped files are used for accessing small segments of large files on disk, without reading the entire file into memory. NumPyโs memmapโs are array-like objects. This differs from Pythonโs `mmap` module, which uses file-like objects.
This subclass of ndarray has some unpleasant interactions with some operations, because it doesnโt quite fit properly as a subclass. An alternative to using this subclass is to create the `mmap` object yourself, then create an ndarray with ndarray.\_\_new\_\_ directly, passing the object created in its โbuffer=โ parameter.
This class may at some point be turned into a factory function which returns a view into an mmap buffer.
why is it >12 not >0?
can someone help me quick?
my code stops without any error:
while True:
print("Loop")
if self.controller:
for event in self.events:
mod = c.mods.mod.get(str(event.code))
if mod != None:
exec(mod, {"controllerClass": self, "client": self.clientClass, "app": self.appClass, "gamepad": event})
for button, mod in c.mods.mod.items():
if keyboard.is_pressed(button):
exec(mod, {"controllerClass": self, "client": self.clientClass, "app": self.appClass, "keyboard": keyboard})
it prints the loop only one time and then it just stops, no error nothing
can you verify that after the loop, len(atoms) == 8?
just add assert
# after the loop
assert len(atoms) == 8, f'{len(atoms)}!=8'
for now it's fine, can be changed for better exception later
just run it for now
throws an error if False
falsy
loop actually reads 8 bytes, and then 4 bytes
!d struct.unpack
struct.unpack(format, buffer)```
Unpack from the buffer *buffer* (presumably packed by `pack(format, ...)`) according to the format string *format*. The result is a tuple even if it contains exactly one item. The bufferโs size in bytes must match the size required by the format, as reflected by [`calcsize()`](https://docs.python.org/3/library/struct.html#struct.calcsize "struct.calcsize").
read 8
then read at most 4
handle length 4 and length 0 as separate cases
trying to figure out how to do that with a stream
_size = stream.read(4)
while True:
_name = stream.read(4)
header = _size + _name
size, name = int.frombytes(_size, 'little'), _name.decode("ascii")
while name in self:
name += "2"
_flag_or_child_size = stream.read(4)
if not _flag_or_child_size:
self[name] = header
break
flag_or_child_size = int.frombytes(_flag_or_child_size, 'little')
if flag_or_child_size > 1:
self[name] = header + stream.read(size - 8)
_size = stream.read(4)
else:
self[name] = header
_size = _flag_or_child_size
!d io.BytesIO
class io.BytesIO(initial_bytes=b'')```
A binary stream using an in-memory bytes buffer. It inherits [`BufferedIOBase`](https://docs.python.org/3/library/io.html#io.BufferedIOBase "io.BufferedIOBase"). The buffer is discarded when the [`close()`](https://docs.python.org/3/library/io.html#io.IOBase.close "io.IOBase.close") method is called.
The optional argument *initial\_bytes* is a [bytes-like object](https://docs.python.org/3/glossary.html#term-bytes-like-object) that contains initial data.
[`BytesIO`](https://docs.python.org/3/library/io.html#io.BytesIO "io.BytesIO") provides or overrides these methods in addition to those from [`BufferedIOBase`](https://docs.python.org/3/library/io.html#io.BufferedIOBase "io.BufferedIOBase") and [`IOBase`](https://docs.python.org/3/library/io.html#io.IOBase "io.IOBase"):
stream = io.BytesIO(atoms)
I have no idea if it works
if may produce collision if a name appears thrice
that's why while
abc -> abc
abc -> abc2
abc -> abc2
can be changed to 'big'
how do you parse atoms itself?
i.e. how do you know when to stop?
where do you get atoms from
outside of Moov class
not how you process it
how do you get it in the first place?
to the end of the file, right?
you can just use file as stream there
stream is just IO[bytes]
it works just like a file
which includes files opened with "b" mode and BytesIO
name += "2" if name in self else ""
# should be
if name in self:
name += "2"
it shows intent more correctly
name += ... looks like "always change name"
whereas this more clearly says "change name if ..."
if ...:
name += ...
name += "" is just a hack
less lines != more concise
first one has two extra elements (else and "")
first thing is more code, not less
name = self.non_duplicate(name)
checking for duplicates can be made into a separate method for easier code maintenance
atom_length
atom_size
size (overwrite)
real_size
if flag_or_child_size <= 1:
size = 8
though that introduces mutability
read atoms[:12]
if it's 8 bytes long, handle differently
doing all in one loop works better without readahead
you read flag_or_child_size twice
once as flag_or_child_size and then as size
it print "Loop" once right?
try putting try-except around everything inside the loop after print
it might be raising SystemExit
which is a silent error
!e
raise SystemExit(0)
@vocal basin :warning: Your 3.11 eval job has completed with return code 0.
[No output]
for example, if mod calls exit somewhere inside of it
generally, you should avoid using exec
use imports+function calls instead
... if it's possible
hi i need help from advanced python programmers to my programm with voice recognation
what libraries for voice recognition are you using?
and what's the question/problem you're facing?
Hi
@rugged root 
have you applied any voice affect @rugged root
so which hosting service do you recommend
all of you
i want many opnions
@rugged tundra , @cerulean ridge
can i have a look of it
hostinger
np
have a look at this
How's it going?
hey @somber heath
Biggest project of the year on my desk
stress stress stress
@rugged root you're in Misery? I'm really sorry for you
Florida Man is an Internet meme first popularized in 2013, referring to an alleged prevalence of men performing irrational, maniacal, illogical, delusional, insane, and absurd actions in the U.S. state of Florida. Internet users typically submit links to news stories and articles about unusual or strange crimes and other events occurring in Flor...
The Universal Chess Interface (UCI) is an open communication protocol that enables chess engines to communicate with user interfaces.
@rugged root funny thing.. spent a day stressing over a hidden deadlock or racecondition that lead to one..
processpool -> threads
couldnt find the resource causing it even sending in lovks and semaphores to lockup everything.. i was so pissed.. then. wait for it.
i was running out of ports.. called port exhaustion
async is fine if you only want concurrency
(with all non-async GIL-releasing IO in threading and non-releasing IO in processes)
async has locks too
you can't share locks in that manner
you can't share locks across processes
you need messaging not locking
probably
redesign the architecture to not use locks
that could help
have exactly one process that is the one responsible for the resource
it would tell others "now you can use this resource"
well, yeah, depends on what locks
!d multiprocessing.Lock
class multiprocessing.Lock```
A non-recursive lock object: a close analog of [`threading.Lock`](https://docs.python.org/3/library/threading.html#threading.Lock "threading.Lock"). Once a process or thread has acquired a lock, subsequent attempts to acquire it from any process or thread will block until it is released; any process or thread may release it. The concepts and behaviors of [`threading.Lock`](https://docs.python.org/3/library/threading.html#threading.Lock "threading.Lock") as it applies to threads are replicated here in [`multiprocessing.Lock`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Lock "multiprocessing.Lock") as it applies to either processes or threads, except as noted.
Note that [`Lock`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Lock "multiprocessing.Lock") is actually a factory function which returns an instance of `multiprocessing.synchronize.Lock` initialized with a default context.
[`Lock`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Lock "multiprocessing.Lock") supports the [context manager](https://docs.python.org/3/glossary.html#term-context-manager) protocol and thus may be used in [`with`](https://docs.python.org/3/reference/compound_stmts.html#with) statements.
class threading.Lock```
The class implementing primitive lock objects. Once a thread has acquired a lock, subsequent attempts to acquire it block, until it is released; any thread may release it.
Note that `Lock` is actually a factory function which returns an instance of the most efficient version of the concrete Lock class that is supported by the platform.
not this
this isn't pickleable
python has at least three different Lock classes
!d asyncio.Lock
class asyncio.Lock```
Implements a mutex lock for asyncio tasks. Not thread-safe.
An asyncio lock can be used to guarantee exclusive access to a shared resource.
The preferred way to use a Lock is an [`async with`](https://docs.python.org/3/reference/compound_stmts.html#async-with) statement:
```py
lock = asyncio.Lock()
# ... later
async with lock:
# access shared state
```...
(this still might be useful)
if you ever choose to make it distributed in any way
.
something like that with messages
it's still a lock in some sense
server client
<acquire---< A
>acquire ok> A
<acquire---< B
<release---< A
>acquire ok> B
<release---< B
this is what (good) locks do anyway
@chrome silo๐
uncancel()```
Decrement the count of cancellation requests to this Task.
Returns the remaining number of cancellation requests.
Note that once execution of a cancelled task completed, further calls to [`uncancel()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.Task.uncancel "asyncio.Task.uncancel") are ineffective.
New in version 3.11.
This method is used by asyncioโs internals and isnโt expected to be used by end-user code. In particular, if a Task gets successfully uncancelled, this allows for elements of structured concurrency like [Task Groups](https://docs.python.org/3/library/asyncio-task.html#taskgroups) and [`asyncio.timeout()`](https://docs.python.org/3/library/asyncio-task.html#asyncio.timeout "asyncio.timeout") to continue running, isolating cancellation to the respective structured block. For example:
That seems like an "oh, shit! fuck, no, stop, I didn't mean to do that" sort of call.
like it says there, used for timeouts
timeouts cancel the task they were spawned from
and uncancel it later when that cancellation is caught
Rabbit take: using messaging system is generally a better idea in most cases ๐
Yes, I did add the little bit of song 'Kung Fu Fighting' in the last few seconds of this clip. Originally it does not have that bit.
Never realized there were two rabbit emoji
Also, I can endorse Beanstalkd with greenstalk client, much pog
By the hare of my chinny chin chin.
it also explicitly poses the question to the developer:
what if it fails?
rabbit joined channel ๐ฐ
even without choosing proper message queues with broker or not, you can change Locks to Queues even in the framework you already have
asyncio.Lock to asyncio.Queue
threading.Lock to queue.Queue
multiprocessing.Lock to multiprocessing.Queue
yes, they can coexist
there is "two ways" to lock the file
first is:
"just don't access it twice lol" (i.e. you choose how to lock)
second is:
filesystem/OS support
or just have one process that ever touches the file
(process/thread/task)
@shell moat@ripe fern๐
preferably process or something that works like it
@somber heath ๐
@uncut meteor https://www.youtube.com/watch?v=sq_Fm7qfRQk
Yo if you're still here in 2022, follow me : https://twitter.com/SoraJustice
I often stream here : www.twitch.tv/sorajustice
2 MILLION VIEWS THANKS GUYS
We don't have any right on it, we made it for fun.
@spice wave๐
"Hey, ChatGPT, give me some really bad advice disguised as good advice."
"Sure thing. It's what I do anyway."
still can't convince myself to use greenstalk because I'm too dumb/lazy to make an async wrapper/interface for it
I wonder if there's aio_pika.connect_unreliable too
await aio_pika.connect_robust
how did I not know Starlark PL even existed
so, 0.3% is "the actual code"
Medical instruments: "This kazoo can cure cancer!"
@somber heath you may find this interesting. when I was trying to find the race/block.. I did ask chatgpt for help.. but...
Chatgpt"I apologize for the confusion. Upon double-checking the code, I realize that I misunderstood your original message. You are correct that there is no typo in the code you provided earlier. Again, I apologize for the mistake."
Yea... I think I'm done with it.
In fairness, your code is a very niche case, so it's going to have a hard time managing it
Hey MAD
๐
Oh just the phrase medical instruments was said and it was the first thing that came to mind
Nam?
Dan
well, it had suggested that i had typos in the code and all the problems were do to that.. it aggervated me intensly
VOTE: peanut butter and jelly or quesadilla?
does the animal consent?
They reduced the price of the mac mini recently.
Back in a sec.... Just when I'm getting super interested in the convo
@whole bear Yo
no
Hi
Whats up
@willow light Hemlock wants to get you tea.
I see your mouse and raise you mine
https://www.anker.com/products/a7852
Scientific ergonomic design encourages healthy neutral "handshake" wrist and arm positions for smoother movement and less overall strain. 800 / 1200 / 1600 DPI Resolution Optical Tracking Technology provides more sensitivity than standard optical mice for smooth and precise tracking on a wide range of surfaces. Added next/previous buttons provid...
Data validation using Python type hints
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
50 really isn't that much if you actively participate
29%
include the beginning of that shot at least
^^ ๐
Core Keeper
Mastic is a 100% natural product. That means that NOT all the pieces of mastic (or tears as they are called) are the same. Some pieces are bigger, some are smaller, some are harder and some are softer. ยท Mastic -due to temperature- is softer in summer and harder in winter. ยท Usually larger pieces...
@whole bear ๐
!stream 189200135278952450
โ @graceful grail can now stream until <t:1681405057:f>.
Glad to have you on the server. Always happy to see new faces
Or new avatars I guess
hey guys
I have been on the server for a while
but now decided to become more active
@rugged root What site or software is being streamed right now ?
-= LEARN =-Everything in a computer can be constructed from a basic component called a NAND gate. You will be challenged through a series of puzzles, to discover the path from NAND gates to arithmetic, memory and all the way to full CPU architectures. If you complete this game, you will have a deep understanding of how assembly, CPU instruction ...
Price
$19.99
Recommendations
1361
g2g for a bit
I am out of smoothie and now I'm sad
Would bubble tea be a bumpy?
I hope so
And they all left ๐ฆ
@helpers Answer this or your role is getting revoked.
howdy
How're things in your neck of the woods, prop?
@verbal zenith Sup
waddup
Not much, 'bout you?
Just about to work on some programming stuff I gotta get done
For class or other
Oh sick
@verbal zenith howdy , i use pygame to practice math graphics , can you recommend something much faster
Unfortunately everything is written in javascript
Eh... JS is tedious but what isn't
I've never really worked with graphics libraries, sorry!
Yeah, working with their codes is tedious on another level though
Poorly written and documented?
missing awaits on statements and missing catches on promises all over the place
Love it
@vale obsidian Yo
What editor are you using to do it? Mainly just curious
@dry dew Yo
@quasi condor How you doin'?
{{- if .Values.controller.ingressClassResource.enabled -}}
# We don't support namespaced ingressClass yet
# So a ClusterRole and a ClusterRoleBinding is required
apiVersion: networking.k8s.io/v1
kind: IngressClass
metadata:
labels:
{{- include "ingress-nginx.labels" . | nindent 4 }}
app.kubernetes.io/component: controller
{{- with .Values.controller.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
name: {{ .Values.controller.ingressClassResource.name }}
{{- if .Values.controller.ingressClassResource.default }}
annotations:
ingressclass.kubernetes.io/is-default-class: "true"
{{- end }}
spec:
controller: {{ .Values.controller.ingressClassResource.controllerValue }}
{{ template "ingressClass.parameters" . }}
{{- end }}```
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
nginx.ingress.kubernetes.io/auth-tls-verify-client: "on"
nginx.ingress.kubernetes.io/auth-tls-secret: "kube-system/mtls-client-crt-bundle"
nginx.ingress.kubernetes.io/auth-tls-error-page: "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
name: modmail-web
spec:
tls:
- hosts:
- "*.pythondiscord.com"
secretName: pythondiscord.com-tls
rules:
- host: modmail.pythondiscord.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: modmail-web
port:
number: 80```
Hey Mina ๐
hi mina~
@stiff crest ๐
Pretty sure this is actually a thing ๐ค
chocotaco
Yo
I'm just reading about these top secret documents that were leaked by an airman on Discord ๐
new ones?
Nah, but they've arrested the guy now apparently.
Whoever found this has a keen eye
At least it wasn't WarThunder forums
not this time!
you know that chinese engineer that leaked the APFSDS round is probably in prison forever ๐
It was Discord this time
on a minecraft forum iirc
?
I enjoy a light burn. More than that is excessive.
Yeah this is how I go about it
๐ @verbal zenith
I'll try it another time perhaps
oof, did England steal or buy New York City?
captured
so stole ig
The conquest of New Netherland occurred in 1664 as an English expedition led by Richard Nicolls that arrived in New York Harbor effected a peaceful capture of New Amsterdam, and the Articles of Surrender of New Netherland were agreed. The conquest was mostly peaceful in the rest of the colony as well, except for some fighting in New Amstel.
@amber raptor
A generation refers to all of the people born and living at about the same time, regarded collectively. It can also be described as, "the average period, generally considered to be about 20โโ 30 years, during which children are born and grow up, become adults, and begin to have children." In kinship terminology, it is a structural term designatin...
@olive heron
Hello, someone has worked with dietpi on pi zero..
whats that
worth asking in #microcontrollers or discord.gg/raspberry-pie-204621105720328193
yes
Does anyone know how I can upgrade to python 3.9 in the pi zero?
Ask in the channel or server I have linked
how do I ask in the channel?
it says "surpressed"
I was talking to julian
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@amber raptor if we can't able to marry soldiers, should we all be soldiers just for that pension?
What?
They'd just stop offering pensions.
and knock a bunch of people back from joining
"Bunch of people want to join up? Cool. We don't need inducements."
same here, this discord is so difficult to figure it out
If you could read the message maybe it wouldn't be so hard
The voice gate is to discourage undesirables.
ok, lets send random messages, starting this like "how are you? what do you do?.."
To that end, it is largely successful.
beuh
I just made the chat gpt make me some ransomware which is wild because its suposed not to code any malicous content
Thanks James for the links.
cool, do you have a repo for that?
Yes, I call that doing a Jedi hand wave.
not really i should make one thought
In a world burning itself alive, I think it is an ugly act to bring things forth that are malignant like that.
Shadowing.
!epy def func(): print = 'abc' print(print) func()
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File "/home/main.py", line 4, in <module>
003 | func()
004 | File "/home/main.py", line 3, in func
005 | print(print)
006 | TypeError: 'str' object is not callable
check this out
!rule 5
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
my bad
@whole bear I assume you are good at python scripting
Traceback (most recent call last):
File "A:\OoogaBooga\oobabooga-windows\text-generation-webui\server.py", line 827, in <module>
create_interface()
File "A:\OoogaBooga\oobabooga-windows\text-generation-webui\server.py", line 489, in create_interface
with gr.Blocks(css=ui.css if not shared.is_chat() else ui.css + ui.chat_css, analytics_enabled=False, title=title) as shared.gradio['interface']:
File "A:\OoogaBooga\oobabooga-windows\installer_files\env\lib\site-packages\gradio\blocks.py", line 1200, in __exit__
self.config = self.get_config_file()
File "A:\OoogaBooga\oobabooga-windows\installer_files\env\lib\site-packages\gradio\blocks.py", line 1176, in get_config_file
"input": list(block.input_api_info()), # type: ignore
AttributeError: 'State' object has no attribute 'input_api_info'```
I can help
@whole bear what company do you work?
Iam 16 i dont work for any company yet but i might in the future
This is a Python error message that shows a problem occurred in a file called "server.py" in a folder named "text-generation-webui". The error occurred on line 827, where a function called "create_interface" is being called.
The error message suggests that the problem is related to an attribute error on a State object that does not have an attribute called "input_api_info". This error message might be caused by a typo or a missing import statement.
To resolve this error, you can check the code in the "server.py" file and make sure that the State object is defined correctly and that it has the "input_api_info" attribute. You might also need to check for any missing import statements or dependencies that could be causing this issue.
Is that from chatgpt?
yes bro
!rule 10
what kind of help
what do you mean
you have repository?
my stupid question: Is it not worth learning web3 and blockchain stuff right now?
you might have been mistaken i dont need any help with something right now haha
!e ```py
class MyClass:
def abc(self):
print('Hello, world.')
instance = MyClass()
instance.abc()
instance.defg()```
how does that work
Blockchain can help regulate AI
@somber heath :x: Your 3.11 eval job has completed with return code 1.
001 | Hello, world.
002 | Traceback (most recent call last):
003 | File "/home/main.py", line 7, in <module>
004 | instance.defg()
005 | ^^^^^^^^^^^^^
006 | AttributeError: 'MyClass' object has no attribute 'defg'
No I mean how do you run stuff in a discord channel
does blockchain can applies to web2?
Blockchain interoperability is essential to avoid the flaws of Web2
it will be important to consider how they can be used in conjunction with each other to create even greater value.
@olive heron If I wanted to develop/program a blockchain. Should I start solidity or it does not matter?
whats the best roadmap you can give
@olive heron your link was getting deleted since it's from a url shortener and people have a history of using them to send less than great links in an opaque way. If you want you can send the link that redirects to
Thanks
Hey
It's kinda funny to see that the directors of this Python servers are also part of the The Forbidden Trove server(PoE game related).
Pog.
it has nice emojis
That's the reason? For real? :D
Well. I guess that's true.
we can hear you
so the fact that are many kinds of sexuality and veganism are a sign of people going insane?
function goodEnough(x, z) {
if (Math.abs(x - z) < 0.01 || z === x) {
return true;
}else{
return false
}
}
function rootNewton(n,x,g){
console.log(g)
if(goodEnough(g**n,x)){
return g;
}else{
return rootNewton(n,x,(-(g**n-x-(n*g**(n-1)*g)))/(n*g**(n-1)))
}
}
console.log(rootNewton(2,16,1))
this is a code block
hello
Wait ... You played chess to get movies?
Thats like fairly uncommon nowadays
just use Thunderbolt
some companies allow more arbitrarily choosing laptop configurations
but that's mostly not for small orders
win-at-chess tape
last thing I played from CD/DVD was anime
Australia does quite a lot of media censorship
RimWorld got banned for some time there
this was, like, quite expected
Hey
hello @rugged tundra , @somber heath , @cerulean ridge
Just start from scratch, all brand new hardware, new accounts
sadly, in some countries it's more dangerous to go to the police in such cases
I'm quite sure this is the case where I live
maybe not in this particular city though
Apple Support
You can start a new family group and invite people to join, or you can join someone else's family group.
I'd double check those settings to see if he's put you as part of a family account or something
@vocal basin down for some clash of code
probably not today
I finally got the mic authority.
@whole bear๐
hello
np
@stuck furnace Suuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuup
Werther's are amazing ๐
I always wake up with a numb arm, and every time I think it's never going to work again.
Hmm
No no, no need to apologize
Just thinking
I'd run the free version first, see if it finds anything
Hey
Why is it cross?
This list of United States natural disasters is a list of notable natural disasters that occurred in the United States after 1816. Due to inflation, the monetary damage estimates are not comparable. Unless otherwise noted, the year given is the year in which the currency's valuation was calculated. References can be found in the associated artic...
not easy to drive away because that requires oxygen too
Yo AF
finally, usecase for electric cars
polluting rivers, a common Russian corporate hobby
nornickel
That tracks
there was something similar again recently
What are you guys doing?
The Norilsk diesel oil spill was an industrial disaster near Norilsk, Krasnoyarsk Krai, Russia. It began on 29 May 2020 when a fuel storage tank at Norilsk-Taimyr Energy's Thermal Power Plant No. 3 (owned by Nornickel) failed, flooding local rivers with up to 17,500 tonnes of diesel oil. President Vladimir Putin declared a state of emergency in ...
yeah, Nornickel
Anyone working on some neat coding things?
can't code right now because can't sit
coding on phone would be a little bit too hardcore
Kali Linux is for hacking. Silicon Valley is in California.
I don't know what I'm saying.
at this point I'm not even sure if it's about banning specific books or all books
Russia plans to implement Chinese closed internet too
just reduce total cars count
"person has health problems => person is unqualified to speak on health" is magic thinking
Well, if they were surfing, it'd have to be the Navy.
@jagged geode Check out the #voice-verification channel. That'll tell you what you need to know about the voice gate
But what's the question you have?
Which makes having the process at all prejudicial to atheists and anyone not locally-dominant-religion-oriented.
Because they either have to perjure themselves or disincline themselves to a bunch of people.
"Yes, we need a law to allow us to do legally what we were doing, already, but given we probably now need to operate a bit more out in the open, so...yeah. Fuck you."
Provided to YouTube by The Orchard Enterprises
Don't Feed the Trolls ยท Jonathan Coulton
Solid State
โ 2017 Jonathan Coulton, SuperEgo Records
Released on: 2017-04-28
Music Publisher: 10 Print JOCO, Inc.
Auto-generated by YouTube.
Oh nice. Never got that far, so it'd all be crazy complicated looking to me
Why the time crunch?
HA, fair
I'm with you there
Oh no, I was just a lazy student
I'm 33, been out of school for a while
Ah cool cool
You got this
I haz the faith in you
How would I even look up what the opcode abbreviations mean
Hmm
dad just sent this
thats cool
Hey @zenith radish Do still have the link to that website that generated terrible phone pic screenshots from code blocks?
Nope ๐ฆ
No worries
... and the ability to self-break/self-corrupt
best state flag imo
whats with all the 8080 op-codes
ohhh try emulate a Z80
6502
minulate a Z80 , then have a real one on a breadboard , all warm and toasty
Do you suggest rye, wheat, pumpernickel .....
pumpernicle taoast butter , corned beef , dill pickle - bit o horseradish
need coofy , one not enough
@rugged root do you have a real 8080 chip ?
I don't
I just a weird itch to look into this
I don't usually buy any hardware until I know I'm going to do something with it. I've bought enough crap that just sits collecting dust over the years
Trying to curb that a bit
so the PDF in room is that the version you want to emulate
boxes of parts - yes i have that downstairs with all the cobwebs
easy part to start emulating in - PYTHON - is rthe memory map
chip 8 ?
PDF link ?
Ah CHIP-8 is a language, okay
I think I found the one I'm going to be working with/from
what about motor on a server HD
they push 8 T drives , default to 4 T drive for mass storage , sits on shelf backup
price drop , bla bla
4T ~ 6T = sweetspot , what about cost
kimchi is probiotic , it solves many stomach issues
its not vinegar based
itds fermented
garlic + fish stock + sea salt + many type radish
it balances out your stomach biome
@rugged root how goes chip8?
Having to tackle a work thing first, but it's fine so far
Reading the high level guide to help me gather what's really needed
Hey
How goes it
is there any speed advantage to using CLASS or just a organizational aid
What do you mean?
It's useful for bundling information and functionality into a package you can pass around. So it's more than just an organizational thing
Slots, maybe?
well if i want to use others code , yes
No, even within your own code
yes - im trying to use that idea as motivation
I used to think "I don't need to write classes, functions do fine and I can just use global or pass state around from function to function."
I learned them anyway. I went a bit crazy with them for a while.
Some things belong as functions. Some things belong as classes.
its good to try coding with boxing gloves on - learn to code around limitations , new code becomes wow a new tool
yes - especially with data juggling or pygame
but i need something faster than pygame
maybe Arcade , dont know
to draw a sphere with gradual shading or a reflection is so very complex
I haven't actually done this yet, was just showing Gi what a raytracer could do, I'm planning on writing one of these though
sounds like a fun project
need super coding skills
I donโt need that super, I need chatGPT
@verbal zenith will you make your own C / C++ for speed ?
I'm going to make it in C
How can I learn C++ or C?
im just exploring , pygame and using math to draw , 2D and beginning 3D stuff
Because I have a game rn made in python and I want to write the code in C++ or C to make it much faster
@verbal zenith are you going to direct access screen memory with C
I'm not sure what that means
What is that?
old computer , and to draw to screen required direct access to memory , machine code was fastest way to draw
!stream 559903350024568833
โ @verbal zenith can now stream until <t:1681496139:f>.
@rugged root you must have used a C64 ??
the idea is , direct accessing graphics ( screen ) memeory for speed
Right right
im guessin , if you can use C , you can direct access screen memory for speed , is it possible or does OS restrict it ?
You potentially could through the driver? No idea
The amount of memory you'd get from it nowadays would be insignificant
And way slower than your on board memory
therefore be nice , and use C libs to access it ?
I have no idea
are you working on the instruction set for , CHIP-8
Trying to, I'm still just reading
will you stay inside the confines of , 4KB x 8 bit memory
Attempt to
so its is called when you send a post request and not a get, and it returns some data, but idk more, sorry
hmm.. on my phone.. and restarted the app a few times.. i cant scroll past code help voice text chat ๐ฆ
doh... fixed it..
don't use mutable as defaults
PyCharm will bonk you
for build/commit validation, CI, CD, Docker and prayers
there was a meme comparing two images with captions
- girls' handwriting
- a brick
peak humour
original version (in Russian)
caption says that
cursive is optimised for writing
f is cursed
paint + mouse pointer
temporary pfp
will change back in May probably
ARM supremacy is at least a little bit overrated
at that price, anywhere
at that size at power consumption, nowhere
Threadripper
or Xeon
"just buy both and more"
rent cloud
reduce compilation time
some people buy an ssd and find themselves unable to plug it in
(me)
it's not wasted money, it's delayed investment
!resources
Resources
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
.
oh lol
i want to make a bot that uses python and node.js
and i need some help with it
but i can't talk or stream
lmao
I'm trying to make a discord bot, that can be used for hypixel adverstive, only for me, for education purposes
@lavish rover
Then it uses JS for the mineflayer bot
ok thanks
"just use match"
only now I'll try to find python version on stream and verify if that applies
it does, it's 3.11
but it's slower in some cases
concatenation in serialisation often leads to worse performance (if that matters)
but it looks cleaner
sometimes
*theoretically
I don't and it wouldn't matter if I did.
Fat and sassy.
lol
I have a fundamental question to ask you Opal, and that is, do you mind me using you for a boss battle for a game I made about the Python discord?
And I can't hear oyu, so
*you
Yes yes, I'm realising that.
Ok
Like what?
But I only low-key mind, you know?
Oh...
So can I just umm.. use your philosophical way of typing and your profile pic?
Like, if you want to have me in mind when you're writing a character, that's your prerogative, but it's good for story to not use the same names, you know?
Oh ok
I'd also prefer you not use my profile image.
Ok
I will just change up your name and profile pic.
Is that good with you?
me?
i am NOT SUS
For example, you could use a rose.
I'll leave that up to you.
Other way around. People were...I don't remember exactly, actually. They were being weird.
Alliteration. Nice.
Thank you
Wait 1 sec
I got an email form MIT
*from
OH
MY
GOD
I got accepted... wtf
i am not trolling
bro
nothery
It's a large server, public on the internet.
Before the voice gate was implemented, people would come in to scream every ten minutes.
People are shit.
Not ALL people
All people. But not everyone is shit all the time. Some people are shit only some of the time.
Some people balance their shit by being the opposite.
nice
@limpid crypt ๐
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
minesweeper can probably be added as a mod/map into Minecraft quite easily
(ignoring the hard stuff like mine counts and timers)
win streak would become the main metric of success
minesweeper mod map minecraft muffins
Muffins?
red stone is quite interesting because it gives you the ability to code 1 and 0s in minecraft so technically you can build something like an 8 bit cpu
Wait, are muffins a vanilla food, now?
yes. muffins.
nice
Rendered a bit obsolete with mods, but impressive all the same.
CHUNGUS 2: Electric Boogaloo - A Minecraft CPU capable of running Tetris, snake, connect 4, graph rendering... and more!
CHUNGUS stands for Computational Humongous Unconventional Number and Graphics Unit by Sammyuri.
The CPU is also very large.
In order to achieve a 10 tick clock speed despite its enormous size, the CPU makes use of techniques ...
Hello
official people for C++ are already too preoccupied with making stuff up for the new specification version
who owns cplusplus.com?
this seems like a self-contained entity
not anything C++ official
Wikipedia lists these as the website
https://www.iso.org/standard/74528.html
https://www.open-std.org/jtc1/sc22/wg14/
this is the official C++ website apparently
https://isocpp.org/
> Treasurer
was analysing voice recordings earlier
how a more normal one looks in comparison:
this has obvious frequencies/harmonics
many lines stuff
this is more uniformly distributed
so, basically, just noise
website used:
https://academo.org/demos/spectrum-analyzer/
This audio spectrum analyzer enables you to see the frequencies present in audio recordings.
(first one I googled, didn't bother finding a better one)
@tight pulsar๐
sup
@livid flame๐
hi
do u know python rlly good
?
can u help me? if yes, thank you, i dont know anything, but i want anyone to help me
the source
(sound warning: noise; but it's relatively low-pitched)
the name is totally not suspicious
ed.: removed
thing from spectrogram is the last one probably
@ocean tapir๐
i want to do hack for unity game, and i need to send http request to the api and i dont know how to do it, i mean i know req = requests.get("")... but idk how
๐โโ๏ธ
!rule 5 if hack isn't allowed
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
then u cant help?
if it's CTF challenge, then no
its stumble guys
๐ฆ
/?
do you have written permit from the developers?
NO, but my friend do it, and i want too ๐ฆ
if you want to hack games legitimately, look into past (NOT ACTIVE) CTF challenges
or make your own games
or ask developers for the permit
oh, i forgot, i want to change nickname in game only (not any value (gems or smth))
or participate in bug bounty programs
i think its allowed
i dont understand english well
the only legitimate way to do that:
ask the developer if you can do that to help them patch that vulnerability
if they answer "no", STOP
make the exploit without asking other people for help in places like here
NEVER use the exploit for personal in-game benefit or any reason other than contributing to development process of the game
submit the bug report
ok, i will ask
developer being the developer of the game
and if they answer yes, or smth i can ask here?
we have no way of proving to ourselves that you have any form of written permit
ah ok
can we go dm
?
if it's related to the same topic, the should answer would be:
no
!rule 5 because this
5. Do not provide or request help on projects that may break laws, breach terms of services, or are malicious or inappropriate.
hello
@placid sapphire๐
i can't talk
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
it can't code
.
it writes stuff that accidentally compiles
sometimes
if it's lucky
Catalan OP
nvm, Na1 OP
sodium attack
c4/e4/d4/Nf3 are mostly all fine for the first move with white
some chess960 starting positions benefit black
@glass hare๐
@twilit phoenix๐
@hollow shoal๐
Bullshit.
If you want to learn chess, go the fuck ahead and learn chess. The only person stopping you is you.
@static gazelle๐
hi
hmmmmmmmmmmm
Yo i need someone to help me with something
well you guys know gpt-neo?
well anyways the problem is
when i run it the gpu utlization is on 0%
and im not getting any benfit from the gpu
I did but im kinda confused
no im on win 11
@obsidian dragon The tool you might be after is called an awl.
@somber heath may we all meet again?
I assume you're asking about my Discord status message?
I've never been to an archaeological site.
It's also more than a little outside of my range.
It does look interesting, however.
I can see it being the sort of place I would enjoy.
funny how if you google it, one of the first results is some fictional make-stuff-up "scientific" journal
@vale rivet ๐
Hello!
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@dapper river ๐
Hello
hello
@whole bear ๐
@echo pier ๐
hi
@vernal halo ๐
what where
voice chat 0
seems like that could be just in one copy
fixed-size blocks
you know total size you need to copy
just by adding
kk
@somber heath help me plese
whats da problem
@twilit magnet ๐
i create a discord server but i can't run the bot to turn on to write code
If you explain the problem, I might be able to tell you if I'm in a position to help.
first, for progress bar:
https://github.com/tqdm/tqdm
I don't do Discord bots. I would suggest talking to #discord-bots or for you to use the help post system. #โ๏ฝhow-to-get-help.
code now seems fine
ok
it should be streamed and distributed but for now it's ok
just piping from input file to output file
@turbid sandal @dreamy matrix ๐
with writing and reading possibly being done in parallel with each other
it's happening virtually concurrent anyway
(right now)
but it could be properly separated
some solutions may seem simpler but actually aren't
there is, for example (found by Maro), linked list code written by Linus Torvalds
which segfaults
but it looks simple and clean
Maroloccio
code has some questionable assumptions
the specific code was doing search in a linked list
it segfaulted if search failed instead of returning a proper error code or whatever
not a better solution
just found an error in existing one
C
idk if I can come up with a better interface right now
write_parts(ofile, read_parts(ifile, sizes))
tuple
def read_parts(ifile: IO[bytes], sizes: Iterable[int]) -> Iterable[bytes]:
for size in sizes:
yield ifile.read(size)
def write_parts(ofile: IO[bytes], parts: Iterable[bytes]) -> None:
for part in parts:
ofile.write(part)
depending on how often you need that functionality, it may make things either better, or worse, or just different
these aren't methods
just functions
though, yes, those aren't compatible with the progress bar
so idk
you can store two version of a function/method/class in one branch, as two separate implementations of a single interface (or multiple interfaces)
with the ability to switch and compare without checking out a branch
interfaces
flags, configurations, etc.
not git
just OOP
I'll come up with something better tomorrow
as for now, I've had too little sleep and too much anime
can someone troubleshoot this for me its a auto type number program but i cant seem to figure it out
TypeWords:Loop{SendInput 1{Enter}Sleep 1100}
return
F9::Pause, Toggle return
sorry but can anyone help me? ;-;
I just got the XMrig Miner virus and I discovered it in the file C:/ProgramData/Dllhost/dllhost.exe. however when I open the local file it doesn't open at all, and it seems to have blocked me from seeing the file. how should i do it ;-;