#voice-chat-text-0

1 messages ยท Page 94 of 1

rugged root
#

And factually correct

somber heath
#

Also, Kristoff... I would.

stuck furnace
#

That always makes me sad :C

rugged root
#

Cardboard cuts

#

Suck

#

Cap Gainz sounds like a rapper

hoary olive
#

is mem more important or execution time?

rugged root
#

Depends on the needs

#

If you have an embedded system that doesn't have a lot of memory, then you're probably willing to sacrifice some execution speed

#

And vice versa

faint ermine
somber heath
#

What's the point in fast if you need astronomical amounts of ram to do it? What's the point in low ram usage if it takes longer than heat death of the universe?

hoary olive
#

depends on the ram tbf

#

Vram != Dram

vocal basin
#

(responding to deleted message)
code readability is a third dimension in that question
doesn't correlate with any particular of the other two

somber heath
#

Is V an SQL?

lucid blade
#

' or 1=1 -

#

๐Ÿ˜›

somber heath
#

Programming is abstract plumbing.

lucid blade
#

hailmary

stuck furnace
#

Everyone know you only uncover the true secrets of the toaster on the third disassembly.

amber raptor
#

Sure but if you want to get into InfoSec, read, try, read more, try more, keep reading.

willow gate
#

@somber heath what's up

somber heath
hoary olive
#

AF any data structs for key value pairs other than maps? that are more convientent i suppose

#

        for (Map.Entry name: map.entrySet()) {
            if (s.contains(Objects.toString(name.getKey()))) {
                num = num + Integer.valueOf(Objects.toString(name.getValue()));
                s.replace(Objects.toString(name.getKey()), "");
            }
        }
``` doesn't seem to nice
vocal basin
#

Key->Value is literally a map (in maths sense)

#

!d typing.Mapping

wise cargoBOT
#

class typing.Mapping(Collection[KT], Generic[KT, VT_co])```
A generic version of [`collections.abc.Mapping`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping "collections.abc.Mapping"). This type can be used as follows:

```py
def get_position_in_index(word_list: Mapping[str, int], word: str) -> int:
    return word_list[word]
```   Deprecated since version 3.9: [`collections.abc.Mapping`](https://docs.python.org/3/library/collections.abc.html#collections.abc.Mapping "collections.abc.Mapping") now supports subscripting (`[]`). See [**PEP 585**](https://peps.python.org/pep-0585/) and [Generic Alias Type](https://docs.python.org/3/library/stdtypes.html#types-genericalias).
vocal basin
hoary olive
#

Product testing is for DevOPS though ?

vocal basin
hoary olive
stuck furnace
#

Write it using letters cut from a newspaper.

amber raptor
vocal basin
#

(Map, the interface)

hoary olive
#

wait does str.replace use mem address or Objects.equal?
Since str.replace(Objects.toString(name.getKey()), ""); not effecting anything

hoary olive
vocal basin
#

although, yeah, the product testing is probably QA

vocal basin
vocal basin
hoary olive
#

peper your passwords and then write them in a book
issue resolved

vocal basin
hoary olive
#

anything can in theory

#

although you would useally use var when you could have multiple values get passed

#

if i use a ternery that i can set both type of String and Int i would use a var

vocal basin
#

knowing ReSharper/Rider, I'd expect IntelliJ to scream to replace everything with var too

hoary olive
#

it doesnt....

#

i'll endup using streams any ways trying to get an idea of how to make it currently

vocal basin
#

@faint ermine
I'd probably expect this to work by integrating the state of the program into some maths thing that deteriorates over time
although what would stop just backing up the program to restore it?

#

it may be easier to do that with remote server auth required

vocal basin
hoary olive
#

i presume you use CLion primarly

vocal basin
#

when I had access to the license, I used (ordered by use hours) PyCharm Pro, ReSharper, CLion, WebStorm

hoary olive
#

Whats better than having O(2n) because maps aren't sorted by position.

vocal basin
#

implement Map interface with an AVL tree

lucid blade
#

https://en.wikipedia.org/wiki/Steganography will get there one day lol ๐Ÿ˜„

Steganography ( (listen) STEG-ษ™-NOG-rษ™-fee) is the practice of representing information within another message or physical object, in such a manner that the presence of the information is not evident to human inspection. In computing/electronic contexts, a computer file, message, image, or video is concealed within another file, message, image, ...

faint ermine
hoary olive
#

SortedMaps<> and TreeMap<> are the same

#

I'm using TreeMap<> myself

vocal basin
vocal basin
hoary olive
#

how are my loops async ๐Ÿ˜‚

vocal basin
#

threading? or async async?

#

or in a different sense?

hoary olive
#

as in threading. but it should be threading. i'ma head out guys , enjoy your day/night ๐Ÿ‘‹

raven falcon
#

hello there!

night sparrow
#

guys, anyone, i wonder if its possible to write effective 3d game using only pyopengl, for example, i haven't found any projects yet so far

faint ermine
terse needle
#

I would advise against it but it's absolutely possible

amber raptor
faint ermine
#

pittsburgh

gentle flint
#

14 people in voice chat and only 4 unmuted

#

earlier there were 17 and 4 unmuted

faint ermine
#

@rugged root https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4049576/

Findings suggested that longer driving time was associated with higher odds for smoking, insufficient physical activity, short sleep, obesity, and worse physical and mental health. The associations consistently showed a dose-response pattern and more than 120 minutes of driving per day had the strongest and most consistent associations with the majority of outcomes.

i have to go, so i wasnt able to find more though theres definitley others

molten pewter
gentle flint
faint ermine
rugged root
gentle flint
#

lol

cunning lake
#

!e methods

wise cargoBOT
#

@cunning lake :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | NameError: name 'methods' is not defined
rugged root
#

I'm going to be a bit longer

#

Just can't catch a break today

rugged root
lucid pine
#

I'm finally back but I can't join VC because I'm going to sleep, (I'm in GMT) Have a good one!

lavish rover
stuck furnace
lavish rover
stuck furnace
gentle flint
stuck furnace
#

You'd be surprised what a good cobbler can fix!

#

ยฏ_(ใƒ„)_/ยฏ

#

This pair of John Lobb double monk strap shoes were sent to us for a simple repair and to be cleaned up. We quickly discovered that these shoes needed much more. We completely overhauled these shoes and gave them the works. This would have been our most expensive restoration ever.

Looking to have your shoes refurbished? Check here:
https://...

โ–ถ Play video
lavish rover
#

If people actually cared for it someone would make a free version in a weekend

stuck furnace
lavish rover
#

Tbh I tried it out on a book

#

I'm going through the words really fucking fast

#

But I don't think my brain is getting time to process it

stuck furnace
lavish rover
#

I went through 5 pages and not a clue what I read

#

Lmao

#

So probably not going to use it regularly

stuck furnace
#

ยฏ_(ใƒ„)_/ยฏ

molten pewter
stuck furnace
#

Ah you should have done 4 months

molten pewter
#

brb

stuck furnace
#

yep

#

You had to tape up your monitor? ๐Ÿ˜„

#

Glutentag

gentle flint
stuck furnace
#

Left over right, right over left catsmart

#

Otherwise it's a granny knot

#

When is it?

#

How big typically is Pycon US?

gentle flint
stuck furnace
#

Ah right

stuck furnace
#

What are you all up to? ๐Ÿ‘€

#

Mhm

#

He's sometimes around in python-general.

#

You can identify him by the logo_ukpython

gloomy vigil
#

bot#439

stuck furnace
#

The what now?

#

With an iron fist

#

But why? pithink

gentle flint
gentle flint
stuck furnace
terse needle
#

yes

stuck furnace
#

I tried writing a grammar for lambda calculus expressions in lark, but it ended up being slightly cursed..

#

!eval ```py
from lark import Lark

grammar = """
term: var | abs | app
var: ALPHA
?abs: "(" abs ")" | var "." term
?app: "(" app ")" | (var | "(" abs ")" | app) (var | "(" abs ")" | "(" app ")")
ALPHA: "a".."z"
"""
parser = Lark(grammar, start='term')
s = '(x.x.xx)(xx(xx))x'
print(parser.parse(s).pretty())

wise cargoBOT
#

@stuck furnace :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | term
002 |   app
003 |     app
004 |       abs
005 |         var	x
006 |         term
007 |           abs
008 |             var	x
009 |             term
010 |               app
011 |                 var	x
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/jujoxiribe.txt?noredirect

terse needle
#

where is your \

stuck furnace
#

Did away with it ๐Ÿ˜„

#

x.x is \x.x

#

ยฏ_(ใƒ„)_/ยฏ

#

I... think so?

stuck furnace
terse needle
#

In mathematical logic, the De Bruijn index is a tool invented by the Dutch mathematician Nicolaas Govert de Bruijn for representing terms of lambda calculus without naming the bound variables. Terms written using these indices are invariant with respect to ฮฑ-conversion, so the check for ฮฑ-equivalence is the same as that for syntactic equality. E...

rugged root
#

@terse needle I think it would fall into this definition:

a particular method or system of calculation or reasoning.

#

As a definition for calculus

stuck furnace
rugged root
terse needle
stuck furnace
rugged root
#

TIL

terse needle
rugged root
#

Nerd

terse needle
#

and it's so beautiful seeing differentiate from first principles i.e. why the power rule works

stuck furnace
terse needle
# rugged root Nerd

Formal derivatives, the epsilon-delta definition, and why L'Hรดpital's rule works.
Help fund future projects: https://www.patreon.com/3blue1brown
An equally valuable form of support is to simply share some of the videos.
Special thanks to these supporters: http://3b1b.co/lessons/limits#thanks
Home page: https://www.3blue1brown.com

Timestamps
0:0...

โ–ถ Play video
terse needle
#

beta reductions are by convention the latter normally

stuck furnace
#

Burned into my brain lol.

stuck furnace
terse needle
#

so that would be a right-most beta reduction

rugged root
stuck furnace
terse needle
#

lambda calculus can really follow any system you want but by convention we have outermost-leftmost beta reductions and you keep reducing until you approach a beta normal form

#

suppose you have the function
(\y.a)((\x.xx)(\x.xx))
if you were to evaluate the stuff in brackets first (inner-most reduction) this would recurse infinitely because (\x.xx)(\x.xx) has no beta normal form

rugged root
#

๐Ÿค“

terse needle
#

however an outer most beta reduction would apply ((\x.xx)(\x.xx)) to (\y.a) and evaluate to a

stuck furnace
terse needle
stuck furnace
#

Forgotten most of what I know ๐Ÿ˜‘

gentle flint
#

aurora

terse needle
stuck furnace
gentle flint
#

no

terse needle
stuck furnace
#

Nah, I think I'm to far south?

#

+light pollution.

terse needle
#

oh

#

yeah I missed it ๐Ÿ˜ญ

stuck furnace
terse needle
#

damn

stuck furnace
#

Pilot turned in a circle so that passengers on the other side could see.

terse needle
#

anyway I need to go to bed

#

๐Ÿ‘‹

molten pewter
#

brb

thin drift
#

hi @rugged root

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

indigo lagoon
#

!voice

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

indigo lagoon
#

tyvm

dense nebula
#

I might just be dumb, but i reformated a udp scanner to use icmp packets and now it does not even ping

#

i am stupid i wrote a statement wrong

#

result=sock.connect_ex((ip,port))

#

i wrote sock as socket

somber heath
#

@vestal rivet ๐Ÿ‘‹

vestal rivet
#

yo

#

US

#

If i scan you, youll probably crash my pc

#

@honest kayak

honest kayak
#

Ye

vestal rivet
#

yes sir

honest kayak
#
A = 10
B = "10"
C = 10.5

list = (A, B, C)

for A in zip(A, B, C):
    if type(A) is type(1):
        print(float(10))

for B in list:
    if type(B) is type(""):
        print(int(B))

for C in list:
    if type(C) is type(0.5):
        print(str(C))```
somber heath
#

!epy a, b, c = (1, 2, 3) print(a) print(b) print(c)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 1
002 | 2
003 | 3
somber heath
#

Variable unpacking.

#

!e py letters = 'abc' numbers = '123' symbols = '@#$' for abc in zip(letters, numbers, symbols): print(abc)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | ('a', '1', '@')
002 | ('b', '2', '#')
003 | ('c', '3', '$')
somber heath
#

!e py letters = 'abc' numbers = '123' symbols = '@#$' for a, b, c in zip(letters, numbers, symbols): print(a, b, c)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | a 1 @
002 | b 2 #
003 | c 3 $
somber heath
#

!d isinstance

wise cargoBOT
#

isinstance(object, classinfo)```
Return `True` if the *object* argument is an instance of the *classinfo* argument, or of a (direct, indirect, or [virtual](https://docs.python.org/3/glossary.html#term-abstract-base-class)) subclass thereof. If *object* is not an object of the given type, the function always returns `False`. If *classinfo* is a tuple of type objects (or recursively, other such tuples) or a [Union Type](https://docs.python.org/3/library/stdtypes.html#types-union) of multiple types, return `True` if *object* is an instance of any of the types. If *classinfo* is not a type or tuple of types and such tuples, a [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") exception is raised. [`TypeError`](https://docs.python.org/3/library/exceptions.html#TypeError "TypeError") may not be raised for an invalid type if an earlier check succeeds.

Changed in version 3.10: *classinfo* can be a [Union Type](https://docs.python.org/3/library/stdtypes.html#types-union).
somber heath
#

!e py a = isinstance('abc', str) b = isinstance(5, str) print(a, b)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

True False
somber heath
#

!e py result = isinstance('abc', object) print(result)

wise cargoBOT
#

@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.

True
honest kayak
#
for A in zip():
    if type(A) is isinstance(ham, A):
        print(float(10))
somber heath
somber heath
#

Check the pins.

abstract pike
#

@whole bear are you a math major?

#

i like math and the application part of it, but proofs pushed me away from the field

#

@lavish rover ^

#

@lavish rover well wouldnt the correct solution depend on the runtime?

#

or the O(n)?

#

@lavish rover your defn on proof is not exactly correct

#

algorithms and proofs are really two different concepts

#

@whole bear ^

lavish rover
#

Independent of runtime

willow gate
#

hello

#

?

#

@somber smelt can you type

#

i can't hear properly what are you saying?

#

yes i need

#

Walrus Operator

#

how they work

somber smelt
willow gate
#

watching it

#

i will search on yt

#

you wanna play some chees?

somber smelt
willow gate
#
Chess.com

Login to your Chess.com account, and start enjoying all the chess games, videos, and puzzles that are waiting for you! If you have any issues while logging into your account, do not worry. You can recover your password, or drop us a message and we will gladly help.

#

i am also not much good

#

@somber smelt wellpaly

somber smelt
willow gate
#

even i also start from 2-3 weeks

#

wanna play one more

#

lol

#

i didn't found that chat

#

i am also from india

#

ok let it go

#

there are some wired people in all countries

#

might be your joke was out of there understanding level lol

#

i put req

#

check on web

#

i show you one fastest move for checkmate

somber heath
#

Yahoy.

#

I don't play.

#

But thank you.

willow gate
#

nope

#

check mate

somber smelt
#

gg

willow gate
#

@somber smelt ggs

#

@somber smelt you can also learn in few weeks

#

still i am noob

#

i just play to increase some logic thinking

#

@somber heath hello opal

somber heath
#

Yahoy.

#

Nothing important.

#

Drilling?

#

I may have been talking about someone else who does it. 8080, I think.

willow gate
#

8080?

somber heath
#

Yes, I'm on a computer connected to the home network via shitty means.

#

I've had complaints on this particular setup about my voice.

somber heath
#

I'll trial something I haven't tried before.

willow gate
#

@somber heath bye

hoary olive
#
I can be placed before V (5) and X (10) to make 4 and 9. 
X can be placed before L (50) and C (100) to make 40 and 90. 
C can be placed before D (500) and M (1000) to make 400 and 900.
``` How would you logically make this work preferebly in one line
vocal basin
#

conversion to roman numerals? or from?

hoary olive
vocal basin
hoary olive
#

one way from roman to numbers

#

Currencly using maps

teal flower
#

Hello

#

How to use functions

vocal basin
#

!d def

wise cargoBOT
vocal basin
hoary olive
#

then why bother to help ?

inland moss
#

hello, is this a good place to ask for some tech support?
i apparently don't qualify for voice privilages

wise cargoBOT
#
Voice verification

Canโ€™t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.

hoary olive
inland moss
#

i'm having trouble installing MATLAB API for python

#

i opened a post in the help i'll find it and paste here

#

hey, can someone help me troubleshoot the installation process for MATLAB API for python?

i was following instructions from here: https://www.mathworks.com/help/matlab/matlab_external/python-setup-script-to-install-matlab-engine-api.html
but the 'python setup.py install' command on cmd can't find python.

pip installation isn't an option because of matlab version apparently.

i tried troubleshooting with chatgpt but it keeps telling me to add python to the PATH environment, which i already did.

any idea how to resolve this, or some other way to install?
Matlab ver 2021b, Python ver 3.9.13
running in Windows

hoary olive
#

what operating system?

#

this usally implies you didnt add python to PATH

inland moss
#

'echo %PATH%' seems to indicate otherwise. at least GPT says the output indicates the PATH is fine

hoary olive
#

Re-Run the installer > Modify > Add python to envrioment variables

#

could you try py and python3 aswell then?

#

i presume you use win10 so use py --version ( py 3.10 )

inland moss
#

win 11

hoary olive
#

python 3.10?

inland moss
#

3.9.13 it's the latest version compatible with my version of matlab

inland moss
#

not sure what you're instructing me to do there

hoary olive
#

type py --version or python3 --version in your terminal (command on cmd can't find python.)

#

Also i would recommend using python -m pip install matlabengine==9.13.7 rather than manually installing it

inland moss
hoary olive
#

correct

inland moss
#

py seemed to do the trick. thanks!
can i DM you if i need a followup?

hoary olive
#

sadly DM's are closed. i'd have to friend you if you needed further help. but @ me also works

inland moss
#

will @ then. thanks

hoary olive
#

Hello Mustafa, Opal, Hem

#

i recall installing manjaro, and then immendiatly forgot my password, so i moved to another distro.....

lavish rover
#

Tarbooj

rugged root
#

I am very unhappy with myself right now

#

I forgot to snag my meds before I left for work this morning

#

I'll be fine, just irritated that I forgot it

#

One day without isn't going to hurt me

#

You build up enough in your system that it's a non issue

hoary olive
#

i think its bread with something

#

they usally make them on pans

#

Generally Batman/Joker films have nice quotes

vocal basin
#

some call just never exits

#

it's stuck

hoary olive
#

โ€œMy mask allowed me to be myself completely, no shame.โ€ pov:every discord user

somber heath
#

๐ŸŽต It's a little bit funny, this feeling, inside.

rugged root
#

Love that song

somber heath
#

@raven cedar๐Ÿ‘‹

#

@lavish rover Your internet is being shit.

hoary olive
#

Hello magicalgirl

#

did you understand what DTO's are then ?

#

no DTO's dont have bussiness logic - they are like data structures

somber heath
#

@whole bear๐Ÿ‘‹

blazing beacon
#

fck

#

ok bless me again with your knowledge

hoary olive
#

best to remember them as like signup so then using a DTO you can pass

{
"username": "phantom",
"password": "123"
}
whole bear
#

yes

hoary olive
#

you send this in the body of your POST request ( as JSON )

blazing beacon
#

yes

whole bear
#

Guys I want to ask you about api something

hoary olive
#

sure

blazing beacon
#

@hoary olive i am waiting man

hoary olive
blazing beacon
#

yes pls

whole bear
#

I edited the subtitle search code from opensubtitle on Python.

#

However, there is a limit on search results.

#

A maximum of 5 results are displayed.

hoary olive
#

are you using a libary to access this?

whole bear
#

Codes this:

from pythonopensubtitles.utils import File

ost = OpenSubtitles() 
ost.login('', '')


movie_name = input("Enter movie/show name: ")

# Search for subtitles
data = ost.search_subtitles([{'query': movie_name,  'sublanguageid': 'tur'}])
if not data:
    print("No subtitles found.")
    

# Display the list of found subtitles
print("Found subtitles:")
for i, subtitle in enumerate(data):
    print(f"{i + 1}. {subtitle['SubFileName']}")   

while True:
    # Let the user select a subtitle
    subtitle_index = int(input("Enter the number of the subtitle you want to download: ")) - 1
    id_subtitle_file = data[subtitle_index].get('IDSubtitleFile')

    # Download the selected subtitle
    url = f"https://dl.opensubtitles.org/tr/download/file/{id_subtitle_file}.srt"
    print(url)
#

When I search for subtitles, no more than 5 results come up.

#

@hoary olive Can it be resolved?

hoary olive
#

you have to pass in some arguments in the POST request to get this, yet i have no idea what

#

man gitlab is being a pain in the today

#

have no clue what in_fps and out_fps means though

blazing beacon
#

i have another question @hoary olive . I fetch data from this api https://api.pokemontcg.io/v2/cards/. My current solution to map the data to an object is that i make a HashMap<String, ArrayList<Pojo>>. Do you think that this is a good idea?

somber heath
#

Lucky iron fish are fish-shaped cast iron ingots used to provide dietary supplementation of iron to individuals affected by iron-deficiency anaemia. The ingots are placed in a pot of boiling water to leach elemental iron into the water and food. They were developed in 2008 by Canadian health workers in Cambodia, and in 2012 a company, The Lucky ...

blazing beacon
#

The Key is the Api Endpoint which i extract from the url

somber heath
#

You've also got people with Hemochromatosis.

#

@amber summit๐Ÿ‘‹

hoary olive
somber heath
somber heath
#

@olive ermine๐Ÿ‘‹

raven cedar
#

will AI replace programmers in 5years ?

rugged root
#

Rebecca Lucile Schaeffer (November 6, 1967 โ€“ July 18, 1989) was an American actress and model. She began her career as a teen model before moving on to acting. In 1986, she landed the role of Patricia "Patti" Russell in the CBS comedy My Sister Sam. The series was canceled in 1988, and she appeared in several films, including the black comedy Sc...

hoary olive
# blazing beacon i have another question <@867080076754681867> . I fetch data from this api https...

I honestly dont think thats a good idea binding it , i honestly have never used java to get API, but for JSON building / reading .
Now looking at some code

  public static void main(final String[] argv) throws JSONException {
    final JSONObject obj = new JSONObject(JSON_DATA);
    final JSONArray geodata = obj.getJSONArray("geodata");
    final int n = geodata.length();
    for (int i = 0; i < n; ++i) {
      final JSONObject person = geodata.getJSONObject(i);
      System.out.println(person.getInt("id"));
      System.out.println(person.getString("name"));
      System.out.println(person.getString("gender"));
      System.out.println(person.getDouble("latitude"));
      System.out.println(person.getDouble("longitude"));
    }
  }
``` O(n) and generally seems slow

func ... throws Exception

    Object obj = new JSONParser().parse(new FileReader("JSONExample.json"));
      
    JSONObject jo = (JSONObject) obj;
      
    String firstName = (String) jo.get("firstName");
    String lastName = (String) jo.get("lastName");
somber heath
#

"Your chances of getting killed by a duck are low, but never zero."

vocal basin
blazing beacon
#

yeah, building and reading the json is no problem. I want to insert that data later on in my own db.

hoary olive
blazing beacon
#

Yes i am using jpa

hoary olive
#

no need to do that ( let me get my own code )

whole bear
blazing beacon
#

Yesh would be great to get an example

somber heath
#
cat = []```
#
[] + []```
#

Cat list. Concat list.

#

@deft robin๐Ÿ‘‹

hoary olive
#

ok heres an example of a DTO

@Data
@NoArgsConstructor
public class VerificationDTO {
    @NotBlank(message = "d[email]e[msg:blank]")
    @Email(message = "d[email]e[invalid]")
    @Size(min = 3, max = 95, message = "d[email]e[msg:char_limit]")
    @NonNull
    private String email;

    @NotBlank(message = "d[password]e[msg:blank]")
    @Size(min = 8, max = 100, message = "d[password]e[msg:char_limit]")
    @NonNull
    private String password;

    @NonNull
    private Integer verificationCode;
}
whole bear
#

@hoary olive I tried limit=500 result same.

somber heath
#

Apiarists.

hoary olive
#
curl -X POST wb/usr/r 
   -H "Content-Type: application/json"
   -d '{"email": "testing@gm.com", "password": "testing", "verificationCode": 12312}'  
``` @blazing beacon
somber heath
#

Or Ant Man.

hoary olive
#

thats literally what a DTO is , it has no business logic , its just like a data structure

somber heath
#

If you use a data structure every day, is it a day-to-datastructure?

hoary olive
#
    ...
    public String verifyUser(@Valid @RequestBody VerificationDTO verificationDTO) {
        return verificationService.verifyUser(verificationDTO);
    }
``` and this is how you would get the data from `verificationDTO` contains email,password,verificationCode
blazing beacon
#

oh

hoary olive
#

verificationService```
Optional<UsersEntity> usersEntity = usersServices.validateUser(
null,
verificationDTO.getEmail(),
verificationDTO.getPassword());

rugged root
blazing beacon
#

so it's still a pojo, just for a specific use case

hoary olive
#

im using Spring validation here so i make sure the data is correct, both in the sense that its valid and it exists, if it doesn't its gonna return an error

somber heath
#

It would be a very tiny consciousness.

hoary olive
#

or else you had to do createUser?username=testing&email=asdas@gmail.com&password=testing and then again check if all of these are set, so its a big hassle

#

you use a DTO so it does all of this junk for you

#

and as a result less network calls

blazing beacon
#

thank you phantom. i actually copied everything you just wrote and i'm gonna re-read it all so i don't forget

hoary olive
somber heath
#

1.21 gigatonnes.

blazing beacon
hoary olive
#

what i would do is i would make a Model/Entity for my pokimon cards

grand plover
#

50 mega tone

blazing beacon
#

yes i have a model

grand plover
#

like the bomb

somber heath
#

About 8 billion.

hoary olive
#
@Entity
@Table(name = "pokimon_users")
@Getter
@Setter
@ToString
@RequiredArgsConstructor
@NoArgsConstructor
public class UsersEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "user_id")
    @SequenceGenerator(name = "user_id", sequenceName = "user_id", allocationSize = 1)
    @Column(name = "id", nullable = false)
    private Long id;

MORE CODE....
``` should look like this
grand plover
#

i sell nuclear bombs

hoary olive
#

then i'd make a DTO with the data i need and i'd use a stream to fill all the data accordingly

#

and then you just need a pokimonRepository.save()

blazing beacon
#

as you can see the api returns an array of json objects

grand plover
#

the night tail

blazing beacon
#

so would you map one json object to one dto and then save it. And continue the process until you processed all json objects

hoary olive
#

dont make a dto just make a pojo

blazing beacon
#

it's nearly 16k json objects

grand plover
#

so it the population is 7 billions of people

blazing beacon
#

as i told you. I map all the Pokemon card to HashMap<String, ArrayList<Pojo>;

vocal basin
hoary olive
grand plover
#

my 140 iq is coming

#

ahhhhhh

#

yeahhhhhh

blazing beacon
#

yes. I loop through the ArrayList<Pojo> and save() every single pojo in the db

grand plover
#

i should do some coding with my iq

blazing beacon
#

Why i use HashMap is because the api has a few more endpoints.
What i get in total is 5 HashMaps and thats every single bit of data the api offers me

#

afterward i access the Arraylist by the String key (which is the api endpoint) and loop through the obejct to save them

#

Do you think thats a good idea or do you have any suggestions?

hoary olive
#

what do you mean by loop through the ArrayList

#

yeah its pretty good
(END1 => POJO
END2 => POJO
END3 => POJO
...)

#

just cache it

#

im saying cache it because when your users make a request to your website each time you will get the data from the database, thats alot of database calls. so you cache and save it in the memory the data, and when a request is made it will just serve data from the memory

#

its way faster

#

yeah i think its actually a pretty good idea, i would have multiple No-SQL databases for each endpoint and get requests from there

#

NOSQL is generally faster - although Postgres has implemented alot of new caching features that make it very fast, but generally partitioning and domaining a SQL is way harder than NOSQL, the second issue is you have a lot of data, you have to run it on multiple databases, with SQL you have sharding as a process to achieve that but NOSQL has that built-in

#

Also most fortune 500 companies use NOSQL

#

so its good to learn it aswell

blazing beacon
#

do you know solr?

#

or lucene?

hoary olive
#

Cassandra is the same

#

its from Apache aswell

#

I'm looking at this JSOn, and its not consistent at all, not sure how you are going to save them , they are very different....

#

its very popular

blazing beacon
#

which nosql db would u recommend for my spring boot project?

somber heath
#

Cassandra is a NoSQL database? I don't believe you.

#

That was a joke.

#

A reference to Cassandra of Greek mythology.

hoary olive
#

Love how netflix literally uses all services , even spring boot is by netflix

somber heath
#

She was an oracle.

hoary olive
#

i have bitbucket/github/gitlab but everything is private on them

#

i dont do opensource

somber heath
#

Yes, but offended a god, who cursed her so that nobody would believe her prophecies.

hoary olive
#

i have email but its my full name

blazing beacon
#

linkedin?

hoary olive
#

let me check if its still there

#

i used to have a linkedin witha bunch of gibirish ....

#

I have worked on Social Networks, School managment systems, and currently online marketplaxce

#

i have my full name on linkedin aswell....

#

i'll just DM you my email

#

I would use anything except java ....

#

I currently use NodeJS for image uploads on my marketplace it works pretty well

#

Hoenstly using multiple languages for your website is prob the best.
Java image uploads are way too overcomplicated besides NodeJS is more tested anyways

#

Ex. I use Go because of its concurrency for email sending - works way better than java

#

yeah but i barely touch my go code

#

And i use k8 for managing them

#

Javas totally fine, but is it the best for everything? no

blazing beacon
#

yeah you are right there

hoary olive
#

aight i friended you to give you my email if you needed it

#

k bye

#

ye just dont leak my email

vocal basin
orchid crown
#

@somber heath Hello Opal

#

I come again

willow gate
#

@vocal basin can we add beep sound or something like in python program?

vocal basin
#
print('\a')
willow gate
vocal basin
#

on some systems it produces sound

willow gate
#

ok let me check

vocal basin
willow gate
#

on mac?

#

yes it produces some wried sound

#

i put that in loop it produce only one time

#

@vocal basin thanks for help ๐Ÿ‘

#

@vocal basin since how long you had experience in python

#

you and opal always help the people i like that

vocal basin
#

since September 2017

willow gate
#

you had pursue any degree?

#

ok bye actually i am making a small project Drink Water Reminder

vocal basin
green cairn
#

pfffffffff

orchid crown
#

finally

#

I can voice chat now

orchid crown
somber heath
#

@whole bear๐Ÿ‘‹

whole bear
#

hi

hoary olive
#

Hello Mustafa, MagicalGirl, Opal

#

Hello Hem

wise cargoBOT
#

msym/core/modulo.py line 20

def simplify(self):```
lavish rover
#

(x % a) // b
(x % a) % b

#

a % b == 0

rugged root
#

Was picking this apart

somber heath
#

Shaved dice.

#

Which begs the question as to the existence of furry dice.

orchid crown
#

barf = ice

somber heath
#

Which...I mean...fuzzy dice.

#

Like the car ornament.

orchid crown
#

ice ice

#

Punjabi or Hindi

molten pewter
#

เจฌเจฐเจซเจผ
Barafa

orchid crown
#

Harishchandra (Sanskrit: เคนเคฐเคฟเคถเฅเคšเคจเฅเคฆเฅเคฐ, romanized: Hariล›candra) is a legendary king of the Solar dynasty, who appears in several legends in texts such as the Aitareya Brahmana, Mahabharata, the Markandeya Purana, and the Devi Bhagavata Purana. The most famous of these stories is the one mentioned in the Markandeya Purana. According to this legend,...

#

Bhagavata Purana

#

Brahmana, Mahabharata

molten pewter
#

Shaved ice is a large family of ice-based desserts made of fine shavings of ice or finely crushed ice and sweet condiments or syrups. Usually, the syrup is added after the ice has been frozen and shavedโ€”typically at the point of sale; however, flavoring can also be added before freezing. The dessert is consumed worldwide in various forms and way...

somber heath
#

@bleak lava๐Ÿ‘‹

orchid crown
#

@sharp lake hello

sharp lake
#

Ya

peak copper
vocal basin
#

in Rainbow Six. +1 round after reload is implemented
in ArmA, it isn't

#

some ArmA mods may have it

#

@rugged root have you seen the bolt-action animation?

#

in ArmA 3

vocal basin
#

DayZ is from ArmA 2

rugged root
#

Goldeneye 64's reloading

#

"Oh no, I have to reload!" -lower gun raise gun-

vocal basin
#

configuring VS Code to work inside a container (just to test how well it performs)

#

so compiler/analyzers are there

#

front-end on windows desktop accesses back-end on the server which accesses the back-end on the container

#

yes, Dev containers

#

yes

#

remote development is pretty much the same as Dev containers
and that made me switch to VS Code from PyCharm

#

there is a way to make pip angry on install
but usually that involves installing from git not from package index

#

pyproject contains some other stuff

rugged root
#

True

vocal basin
#

aren't pyproject.toml/setup.py and requirements.txt for different purposes?
like, first two for packages (that are pip installed from other place) and the second one is for installing things for deployment

#

like node does, yes

rugged root
#

@amber raptor I hope it's good news at the meeting

amber raptor
#

@rugged root itโ€™s not for the meeting

rugged root
#

Oh fair enough

amber raptor
#

Just going to get ready for work

tired atlas
#

It's been three days

#

I'm still not able to use vc

#

Few mins short?

#

Like how many

vocal basin
#

!user in #bot-commands

somber heath
#

43

#

On 43.

#

According to search.

#

So 7?

#

Could be fewer.

#

Discord search has been lagging behind, lately.

vocal basin
#

on one server I have search lagging behind by a day

#

around 2K users

#

it has weird ordering of the query internally
it loads old messages first even if the search is by most recent

somber heath
#

@celest saffron๐Ÿ‘‹

celest saffron
rugged root
#

How goes it

somber heath
#

@lime sail๐Ÿ‘‹

vocal basin
#

I guess it always queries oldest messages first
and sometimes fails to get to new ones

#

it gets all results, then paginates/counts

#

this is very not good

rugged root
#

@lime sail @celest saffron If you're wondering why you can't talk, check out the #voice-verification channel. That'll tell you what you need to know about the voice gate

stuck furnace
#

๐Ÿ‘‹

#

Not bad

somber heath
#

@fossil trench@whole bear๐Ÿ‘‹

stuck furnace
#

Nope

whole bear
#

Hi!

stuck furnace
#

Errrrm, still doing a course, although I've been avoiding looking at it for a while ๐Ÿ‘€

#

Pretty much yep ๐Ÿ˜„

whole bear
#

I've just downloaded discord and i don't understand nothing. Can you tell me about this app?

hoary olive
#

Sup LX how was your coffee

#

Hello Opal, Hem, AF

whole bear
#

It's very difficult.

hoary olive
#

Imagine slack but better

#

And a lot have been removed - Game libary, etc...

whole bear
#

Why are you talking with us?

fossil trench
#

what is slack?

whole bear
#

this app aren't working.

rugged root
#

Slack is a work chat application

hoary olive
# fossil trench what is slack?

~~Discord but worse. ~~

Slack is a messaging app for business that connects people to the information they need. By bringing people together to work as one unified team, Slack transforms the way organizations communicate.

rugged root
#

So very si- yeah Phantom has it

hoary olive
#

Like Uber has a slack community for their developers

#

also for hackers to announce they hacked uber ๐Ÿ˜‚

lime sail
#

What do you do here?

whole bear
#

can I now: How old are you?

rugged root
#

33

vocal basin
#

rust-analyzer is not working for me
something went wrong

whole bear
#

you are too old!

lime sail
#

@lime sailis the best

whole bear
#

i was joking!

hoary olive
#

xDxD

rugged root
#

Uh huh

lime sail
whole bear
#

do you want to see me?

vocal basin
#

from Discord ToS:

By accessing our services, you confirm that youโ€™re at least 13 years old and meet the minimum age required by the laws in your country.

hoary olive
#

didnt outlook have an outage some time ago with xbox live?

whole bear
#

I was joking

#

bro...

lime sail
fossil trench
#

do you want some filippos

lime sail
#

i have got some Filippos

vocal basin
#

trying to get rustlings to get analyzed correctly

hoary olive
vocal basin
vocal basin
lime sail
fossil trench
#

also i

hoary olive
whole bear
#

Can you tell me about Elon Musk? who is this really famous person?

somber heath
#

I've just worked out that "Discord community" is an anagram of "tiny dud microcosm."

lime sail
vocal basin
lime sail
#

it gives an error of the discord library

vocal basin
#

what error?

lime sail
#

if you want i send you my code

whole bear
#

why are searching to ban me? It was only a joke.

vocal basin
lime sail
#

ok

#

wait a minute

hoary olive
#
    async for _ in discord.TextChannel -> Type .history(limit=None):
        count += 1
whole bear
#

Wait some hours!

vocal basin
#

where did you define counter?

lime sail
whole bear
#

What is Python?

vocal basin
#

you might be missing the following at the start of the function

global counter
whole bear
#

Giovanni Falchi basta!

#

Stop!

somber heath
#

!e py def func(): print(var) var = 5 var = 0 func()

wise cargoBOT
#

@somber heath :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 5, in <module>
003 |   File "<string>", line 2, in func
004 | UnboundLocalError: cannot access local variable 'var' where it is not associated with a value
whole bear
#

Ok, I'm really sorry.

vocal basin
lime sail
#

if i write global counter = 0
it doesn't work

fossil trench
hoary olive
#

can you send your actual code please?

vocal basin
lime sail
stuck furnace
#

Yo kitty_wave

amber raptor
#

You shouldnโ€™t global in general

lime sail
fossil trench
#

but what does the function global?

vocal basin
vocal basin
lime sail
#

no thank, i don't what is rust

somber heath
#

@whole bear๐Ÿ‘‹

whole bear
#

What is this code?

somber heath
#

@indigo sundial๐Ÿ‘‹

vocal basin
#

I made thing work

hoary olive
#

it would again be quite nice if you actually sent your code

whole bear
#

maro are you french?

vocal basin
#

VS Code

#

inside a container

fossil trench
#

do you mean docker?

lime sail
amber raptor
vocal basin
fossil trench
lime sail
#

i wanted to send this

stuck furnace
#

Yeah, really unfortunate naming lol

hoary olive
#

Code OSS is the opensource version of VsCode that basically cant do anything

vocal basin
#

they should now release "VS No Code"

stuck furnace
#

Seems almost intended to cause confusion.

hoary olive
#

and then Code/Code-insiders is official

whole bear
#

Managgia is a typical french exclamation.

stuck furnace
#

Oh right, that makes sense

lime sail
whole bear
#

So what is "mannaggia"?

vocal basin
#

global counter just before this line

hoary olive
#

This repository ("Code - OSS") is where we (Microsoft) develop the Visual Studio Code product together with the community. Not only do we work on code and issues here, we also publish our roadmap, monthly iteration plans, and our endgame plans. This source code is available to everyone under the standard MIT license.

Visual Studio Code
[random image]

gentle flint
lime sail
stuck furnace
#

Just waiting for them to make a car and call it "Microsoft Word on Wheels" or something lol

vocal basin
somber heath
#

IBMW

gentle flint
lime sail
hoary olive
#

Powered by twitter

amber raptor
#

Worlds first cloud native car

vocal basin
hoary olive
#

"Controll the Microsoft Car from Twitter Polls" seems like an amazing idea

gentle flint
#

then why not indent the global

vocal basin
somber heath
elder pendant
#

.

vocal basin
#

phone moment?

stuck furnace
gentle flint
whole bear
#

Nope, my french friend that is next to me, he is saying that's french or European exclamation.

hoary olive
#

pov: both right and left are walls....

gentle flint
stuck furnace
amber raptor
elder pendant
#

is the vc full/?????

gentle flint
lime sail
# lime sail oh, thanks

now this:
giovanni@giovanni-X411UA:~/Desktop/Progetti/Python/bot discord$ /bin/python "/home/giovanni/Desktop/Progetti/Python/bot discord/bot discord 2.py"
File "/home/giovanni/Desktop/Progetti/Python/bot discord/bot discord 2.py", line 110
global counter
^
SyntaxError: name 'counter' is assigned to before global declaration

vocal basin
whole bear
#

I don't now what is "mannaggia"!

stuck furnace
gentle flint
somber heath
#

Well, I don't know. Whatever service that when it goes down everything falls to shit.

gentle flint
#

not French

hoary olive
#

Has it been published officially or is it still click 10 times on the "dark theme" button?

whole bear
#

My friend is making fun of me

hoary olive
#

feeding *

elder pendant
#

only if i could screen share in vc ๐Ÿ˜ญ

gentle flint
#

well Neapolitan if you want to be very specific

amber raptor
elder pendant
#

scam

whole bear
#

Ok thanks for everybody!

elder pendant
#

cannot even screen share in live coding

amber raptor
#

No one can.

lime sail
#

if user_message.lower() == "...":
global counter
if counter == 0:
await message.channel.send('...')
else:
await message.channel.send(f'...' )

hoary olive
#

You can but if mods allow it

lime sail
stuck furnace
amber raptor
gentle flint
somber heath
#

Screen sharing privileges were locked down as a result of abuse. It is available by special arrangement with a good reason only and only with supervision bar exception.

vocal basin
#

I'll try to find one now

fossil trench
#

hello , what does the function global do?

amber raptor
vocal basin
gentle flint
#

huh, hadn't expected that rabbit

hoary olive
amber raptor
stuck furnace
vocal basin
vocal basin
gentle flint
hoary olive
stuck furnace
#

Hello ๐Ÿ‘€ @frosty garnet

#

Nope

frosty garnet
elder pendant
#

@lime sail 1 sec

lime sail
#

Hello @frosty garnet

lime sail
elder pendant
#

@lime sail

This error message is indicating that the keyword global is being used to declare a variable named counter, but that variable has already been assigned a value before the global declaration.

amber raptor
hoary olive
whole bear
#

Maro are you angry with me?

amber raptor
frosty garnet
elder pendant
#

global counter
counter = 0

This way, the global keyword will correctly indicate that you are referring to the global variable counter.

stuck furnace
elder pendant
#

@whole bear nice to see you got your discord account today ๐Ÿคฃ

stuck furnace
#

Nothing important

elder pendant
#

#ivoteforstreamingperms

hoary olive
amber raptor
#

I vote no

rugged root
#

Note that asking doesn't necessarily mean it'll be gotten

elder pendant
#

if you dont ask you will never know ?

stuck furnace
#

Yeah he said he had a meeting soon

lime sail
# lime sail ok

^
SyntaxError: name 'counter' is assigned to before global declaration

elder pendant
#

so i always gotta ask

whole bear
#

Why are everybody making fun of me?

elder pendant
#

@lime sail i already told you how to solve it

whole bear
#

What did i do?

hoary olive
#

"Big discord boss"?

lime sail
elder pendant
#
global counter
counter = 0
lime sail
#

ok

#

excuse me so much

#

๐Ÿ˜„

hoary olive
hoary olive
#

i recall a uni using chatgpt to email students about the whole shooting thing that went on

#

pethedic

stuck furnace
#

brb

rugged root
stuck furnace
hoary olive
#

is there really a limit ?

stuck furnace
#

Errrm, in Python?

#

I think it varies

hoary olive
#

!e ```
import sys
print(sys.getrecursionlimit())

wise cargoBOT
#

@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.

1000
hoary olive
#

!e

import sys
sys.setrecursionlimit(10**6)
#

ye INT.MAX_VALUE err but you can def set it if you want

elder pendant
#

!e import math

print(math.fabs(-2.1))
print(math.fabs(-0.0))
print(math.fabs(10.1))
print(math.fabs(0.0))

wise cargoBOT
#

@elder pendant :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | 2.1
002 | 0.0
003 | 10.1
004 | 0.0
limpid umbra
#

who's causing trouble in the room now??

hoary olive
#

Hello Prop

limpid umbra
#

heeeeeyyyyyy , coffee number 2

#

im awake

hoary olive
#

instant?

limpid umbra
#

nahhh brew

#

helps a lot

hoary olive
#

knew this guy who waked up at 4 and eat coffee so always had a head ache

limpid umbra
#

ya a spoonful of instant may do it

#

if i spend the day being a , code monkey , will have a full pot

hoary olive
#

im pretty sure you can eat it from the jar

#

is it (Instant Coffee straight from the jar) easy to digest ? highly doubt that

limpid umbra
#

was wondering about some of the tone decoding stuff in python , to pull data from a shortwave warble

#

i think there is lots of stuff for it - i have not used it

somber heath
#

Is the coffee they have at hospitals in the US made from co-fee beans?

hoary olive
#

DTMF decoding?

limpid umbra
#

not touch tone , its some kind of established protocol , dont know what it is

elder pendant
#

i think

somber heath
#

@whole bear๐Ÿ‘‹

amber raptor
#

Are you talking about making phone calls?

#

on old POTS system

limpid umbra
#

if you listen to old NASA voice com stuff , there is some warble data embedded in it

#

FSKing

#

there are many protocols used for amateur stuff , dont know what they are by hearing it

amber raptor
#

Sure....

limpid umbra
#

i want to try reinvent the wheel kinda , but using others python code

#

output from SW receiver to sound card

#

there is some software for this , but cant look at the software source to see how its cobbled together

#

demodulate signal from a noisy source

#

usually there is all kinds of interference , signal drifting bla bla

#

from last i heard , 7.5Mhz had lots of warbles , but its all overlapping signals

#

fade in / fade out

amber raptor
#

It's possible you are picking up government or military data transmissions

limpid umbra
#

i think GOV uses satellite or something better

limpid umbra
#

SDR can figure it out , but i like building stuff

amber raptor
#

or it could just be background noise of universe

sweet lodge
limpid umbra
#

kinda , i want to use python so i can see how the code is used for decoding

sweet lodge
#

@rugged root tell me how my computer can just decide on it's own that a color means a different thing from one order to the next?

limpid umbra
#

im taking a look here for ideas

#

yes i like open SDR stuff also

elder pendant
#

!e ```py
from scipy.optimize import fsolve

def equations(vars):
x, y, z = vars
eq1 = x2 + y2 + z2 - 1
eq2 = x
3 - y2 + z
eq3 = y
3 - x**2 + z
return [eq1, eq2, eq3]

Initial guess for the solution

guess = [0.5, 0.5, 0.5]

Solve the system of nonlinear equations

sol = fsolve(equations, guess)

print(sol)

wise cargoBOT
#

@elder pendant :white_check_mark: Your 3.11 eval job has completed with return code 0.

[0.6994209  0.6994209  0.14704017]
elder pendant
#

lol

#

!e ```py
import numpy as np
from scipy.sparse import random
from scipy.sparse.linalg import spilu

Create a sparse matrix with 1000 rows and columns

A = random(1000, 1000, density=0.01, format='csr')

Compute the LU decomposition with partial pivoting

lu = spilu(A)

Compute the determinant of the matrix

det = np.prod(np.diagonal(lu.U))

Print the result

print(det)

wise cargoBOT
#

@elder pendant :x: Your 3.11 eval job has completed with return code 1.

001 | /snekbox/user_base/lib/python3.11/site-packages/scipy/sparse/linalg/_dsolve/linsolve.py:485: SparseEfficiencyWarning: spilu converted its input to CSC format
002 |   warn('spilu converted its input to CSC format',
003 | Traceback (most recent call last):
004 |   File "<string>", line 12, in <module>
005 |   File "<__array_function__ internals>", line 200, in diagonal
006 |   File "/snekbox/user_base/lib/python3.11/site-packages/numpy/core/fromnumeric.py", line 1705, in diagonal
007 |     return asanyarray(a).diagonal(offset=offset, axis1=axis1, axis2=axis2)
008 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
009 | ValueError: diag requires an array of at least two dimensions
elder pendant
#

what does that even mean bruh

rugged root
sweet lodge
rugged root
#

Maybe the wrong one was uploaded again or wasn't saved properly?

#

Or there was just some weird corruption

sweet lodge
#

I -- They are actually on different Pantone things, but they shouldn't make a difference
And we double checked the values themselves literally 2 minutes before we loaded them on the machine
I walked out of their office and down to the machine

#

No idea

rugged root
#

No idea

dark ice
#

anyone voice chat?

sterile lichen
#

!e ```py

import os
import subprocess
subprocess.run('python3 -m pip install requests')

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 1, in <module>
003 | ModuleNotFoundError: No module named 'requests'
sterile lichen
#

!e ```py

import os
import subprocess
subprocess.run('python3 -m pip install requests')
print("Test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 |   File "/usr/local/lib/python3.11/subprocess.py", line 548, in run
004 |     with Popen(*popenargs, **kwargs) as process:
005 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 |   File "/usr/local/lib/python3.11/subprocess.py", line 1024, in __init__
007 |     self._execute_child(args, executable, preexec_fn, close_fds,
008 |   File "/usr/local/lib/python3.11/subprocess.py", line 1901, in _execute_child
009 |     raise child_exception_type(errno_num, err_msg, err_filename)
010 | FileNotFoundError: [Errno 2] No such file or directory: 'python3 -m pip install requests'
dark ice
#

lmao don't do that

rugged root
#

We encourage people to try and break it

sterile lichen
#

!e ```py

import os
import subprocess
subprocess.run('ls')
print("Test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 |   File "/usr/local/lib/python3.11/subprocess.py", line 548, in run
004 |     with Popen(*popenargs, **kwargs) as process:
005 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
006 |   File "/usr/local/lib/python3.11/subprocess.py", line 1024, in __init__
007 |     self._execute_child(args, executable, preexec_fn, close_fds,
008 |   File "/usr/local/lib/python3.11/subprocess.py", line 1901, in _execute_child
009 |     raise child_exception_type(errno_num, err_msg, err_filename)
010 | FileNotFoundError: [Errno 2] No such file or directory: 'ls'
rugged root
#

But we do ask that they do it in #bot-commands

#

Cuts down on the clutter

sterile lichen
dark ice
rugged root
#

You already meet the requirements

sterile lichen
#

!e ```py

import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'requests'])
print("test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 3, in <module>
003 | NameError: name 'sys' is not defined
sterile lichen
#

!e ```py
import sys
import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'requests'])
print("test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | WARNING: The directory '/snekbox/~/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.
002 | Defaulting to user installation because normal site-packages is not writeable
003 | ERROR: Exception:
004 | Traceback (most recent call last):
005 |   File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
006 |     status = run_func(*args)
007 |              ^^^^^^^^^^^^^^^
008 |   File "/usr/local/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
009 |     return func(self, options, args)
010 |            ^^^^^^^^^^^^^^^^^^^^^^^^^
011 |   File "/usr/local/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 335, in run
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/odabugapud.txt?noredirect

sterile lichen
#

!e ```py
import sys
import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip3', 'install',
'requests'])
print("test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | /usr/local/bin/python: No module named pip3
002 | Traceback (most recent call last):
003 |   File "<string>", line 4, in <module>
004 |   File "/usr/local/lib/python3.11/subprocess.py", line 413, in check_call
005 |     raise CalledProcessError(retcode, cmd)
006 | subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip3', 'install', 'requests']' returned non-zero exit status 1.
elder pendant
#

!e ```py
import numpy as np
from scipy.optimize import minimize

Define the function to be minimized

def rosen(x):
return sum(100.0 * (x[1:] - x[:-1]**2.0)**2.0 + (1 - x[:-1])**2.0)

Define the constraints

def constraint(x):
return np.sum(x**2.0) - 10.0

Define the bounds for x

bounds = [(None, None)] * 3

Define the initial guess

x0 = np.array([0.0, 0.0, 0.0])

Minimize the function subject to the constraints

res = minimize(rosen, x0, method='SLSQP', constraints={'fun': constraint, 'type': 'ineq'}, bounds=bounds)

Print the result

print(res)

wise cargoBOT
#

@elder pendant :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 |  message: Optimization terminated successfully
002 |  success: True
003 |   status: 0
004 |      fun: 0.38101860897185524
005 |        x: [ 1.250e+00  1.564e+00  2.448e+00]
006 |      nit: 23
007 |      jac: [ 2.099e-01  2.319e-01  3.236e-01]
008 |     nfev: 106
009 |     njev: 23
elder pendant
#

!e ```py
import numpy as np
import scipy
from scipy.sparse import random
from scipy.sparse.linalg import spilu
import warnings

print("SciPy version:", scipy.version)

Create a sparse matrix with 1000 rows and columns

A = random(1000, 1000, density=0.01, format='csr')

Compute the LU decomposition with partial pivoting

if scipy.version >= '1.4.0':
with warnings.catch_warnings():
from scipy.sparse.linalg import SparseEfficiencyWarning
warnings.simplefilter("ignore", category=SparseEfficiencyWarning)
lu = spilu(A)
else:
lu = spilu(A)

Compute the determinant of the matrix

det = np.prod(np.asarray(lu.U.diagonal()))

Print the result

print("Determinant:", det)```

wise cargoBOT
#

@elder pendant :white_check_mark: Your 3.11 eval job has completed with return code 0.

001 | SciPy version: 1.10.0
002 | /snekbox/user_base/lib/python3.11/site-packages/scipy/sparse/linalg/_dsolve/linsolve.py:485: SparseEfficiencyWarning: spilu converted its input to CSC format
003 |   warn('spilu converted its input to CSC format',
004 | Determinant: -28.26790673829067
sterile lichen
#

!e ```py
import sys
import os
import subprocess
subprocess.check_call(['whoami'])
print("test")

wise cargoBOT
#

@sterile lichen :x: Your 3.11 eval job has completed with return code 1.

001 | Traceback (most recent call last):
002 |   File "<string>", line 4, in <module>
003 |   File "/usr/local/lib/python3.11/subprocess.py", line 408, in check_call
004 |     retcode = call(*popenargs, **kwargs)
005 |               ^^^^^^^^^^^^^^^^^^^^^^^^^^
006 |   File "/usr/local/lib/python3.11/subprocess.py", line 389, in call
007 |     with Popen(*popenargs, **kwargs) as p:
008 |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
009 |   File "/usr/local/lib/python3.11/subprocess.py", line 1024, in __init__
010 |     self._execute_child(args, executable, preexec_fn, close_fds,
011 |   File "/usr/local/lib/python3.11/subprocess.py", line 1901, in _execute_child
... (truncated - too many lines)

Full output: https://paste.pythondiscord.com/oqetikalud.txt?noredirect

elder pendant
#

outdated

sterile lichen
#

import sys
import os
import subprocess
subprocess.run()
print("test")

elder pendant
#

or9 common u got this

rugged root
#

@sterile lichen Again, move these to #bot-commands

elder pendant
#

๐Ÿ˜ฆ

rugged root
#

Or actually wait

sterile lichen
#

alright but bot commands dont get me closer to using voice

rugged root
#

I already told you that you are at the mark

sterile lichen
#

Oh thanks sorry

tender wraith
#

WHERES EVERYONE IN THE VOICE CHATS?

#

IM STUCK WITH SOME LOSERS

elder pendant
#

@rugged root he's being a pain in the ass

tender wraith
#

Everyone's fine here

#

I just thought some of them were autistic

#

But asfter a conversation, all i good!

elder pendant
#

defo mate waffle

tender wraith
#

non-autism ceritifed!

rugged root
#

!mute 779709008894361621 1d Looking over your chat history, you seem to have an attitude problem. Do not insult or belittle our users. Do not use autistic as an insult. Please review our #code-of-conduct before the mute expires.

wise cargoBOT
#

:incoming_envelope: :ok_hand: applied mute to @tender wraith until <t:1677877591:f> (1 day).

rugged root
#

Always a wonderful thing to come back to

elder pendant
#

yup

#

@rugged root check ur dms plz

stuck furnace
#

๐Ÿ‘‹

#

Soooo... how goes? ๐Ÿ˜„

elder pendant
#

./.

stuck furnace
#

I don't change my nickname because I barely had the imagination to come up with this one.

gloomy vigil
gentle flint
gloomy vigil
stuck furnace
#

Bye Pub ๐Ÿ‘€

honest pier
#

something is lagging my computer ๐Ÿ˜ฉ i think it's microsoft word ๐Ÿ˜ฉ

#

they gave me a word doc form to fill out ๐Ÿ˜”

elder pendant
#

are you using a potato pc or something ?

honest pier
#

i don't think so...

#

it's a laptop but it's fairly new

elder pendant
#

macOS on top

honest pier
#

it's an x1 carbon

elder pendant
#

lenovo

honest pier
#

indeed

elder pendant
#

that's ur problem

honest pier
#

the screen is actually fucked

#

but it's fine as long as i press on it in the right spot it fixes itself

#

my microphone is incredibly low quality

elder pendant
#

windows + lenovo = disaster

dark ice
honest pier
elder pendant
#

ahahahhaa

#

MacOS best experience I've ever had

dark ice
#

linux masterrace boiz

elder pendant
#

no

#

macos masterrace

honest pier
#

unix is alright. i use wsl

dark ice
elder pendant
#

keep ur laptop on for 1hr before u need to charhe it

#

charge

honest pier
#

i'm on break next week

signal hinge
elder pendant
#

ik custom build

gentle flint
#
Krk

Krk (pronounced [krฬฉฬ‚k]; Italian: Veglia; Istro Romanian: Krk; Vegliot Dalmatian: Vikla; archaic German: Vegl, Latin: Curicta; Greek: ฮšฯฯฮนฮบฮฟฮฝ, translit. Kyrikon) is a Croatian island in the northern Adriatic Sea, located near Rijeka in the Bay of Kvarner and part of Primorje-Gorski Kotar county. Krk is tied with Cres as the largest Adriatic isla...

elder pendant
#

i get 1600 fps

#

bed time for me zzz

honest pier
#

this chat dry af

#

no cap

sweet lodge
#

Pour some water on it

lavish rover
#

@whole bear

whole bear
#

o this is javacript, yes

whole bear
lavish rover
#

!e print(float('nan'))

wise cargoBOT
#

@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.

nan
whole bear