#voice-chat-text-0
1 messages ยท Page 94 of 1
And factually correct
Also, Kristoff... I would.
That always makes me sad :C
I made this ๐ https://www.desmos.com/calculator/ie5wwrruyr
is mem more important or execution time?
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
They walk out under the branches of hopelessness
They think of this world welcoming
the bodies of their sons.
Support me and receive a full-length video commentary on this essay: https://www.patreon.com/JacobGeller
Follow me: https://twitter.com/yacobg42
Additional voices provided by Zac Frazier (youtube.com/c/ZacFrazier) and Laura Crone (y...
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?
(responding to deleted message)
code readability is a third dimension in that question
doesn't correlate with any particular of the other two
Is V an SQL?
Programming is abstract plumbing.
hailmary
Everyone know you only uncover the true secrets of the toaster on the third disassembly.
Sure but if you want to get into InfoSec, read, try, read more, try more, keep reading.
@somber heath what's up
Lurking.
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
what operations do you need?
Key->Value is literally a map (in maths sense)
!d typing.Mapping
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).
if you just need to get all pairs, you'll be fine with a sequence of pairs
Product testing is for DevOPS though ?
I need keys aswell
get/set value by a key, you mean?
correct
Write it using letters cut from a newspaper.
No, that's QA job
Map also supports iterating over keys if it's easier
(Map, the interface)
wait does str.replace use mem address or Objects.equal?
Since str.replace(Objects.toString(name.getKey()), ""); not effecting anything
ah sorry mixup
depends on the type of testing
although, yeah, the product testing is probably QA
s = s.replaceAll(Objects.toString(name.getKey()), "");
replace and replaceAll both return a new string
unit testing is a developer concern
and integration testing is something that is DevOps-adjacent
peper your passwords and then write them in a book
issue resolved
can't Map.Entry be replaced by var or something?
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
knowing ReSharper/Rider, I'd expect IntelliJ to scream to replace everything with var too
it doesnt....
i'll endup using streams any ways trying to get an idea of how to make it currently
@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
make people depend on that state
speaking of IntelliJ
i presume you use CLion primarly
when I had access to the license, I used (ordered by use hours) PyCharm Pro, ReSharper, CLion, WebStorm
Whats better than having O(2n) because maps aren't sorted by position.
if you need sorted map, you need trees
implement Map interface with an AVL tree
accidentally used some others
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, ...
in python i would just not worry until you actually run into perf issues
or just use a database ยฏ_(ใ)_/ยฏ
I was making a report/presentation on that for someone who asked for help on licensing mechanisms
(didn't finish yet because I'm dumb and slow)
how are my loops async ๐
as in threading. but it should be threading. i'ma head out guys , enjoy your day/night ๐
bye bye
hello there!
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
Well, I have seen great games written in opengl with C before so it's absolutely possible, what will matter though is how determined you are and how experienced of a developer you are
I would advise against it but it's absolutely possible
Possible, anything is POSSIBLE. Easily feasible, not really
@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
fuck cars
so hemlock should do his deliveries by bike?
lol that's not the point, which i tried to explain in VC. also this was partly to prove a point
Please god no
lol
!e methods
@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
Welcome to Thomson Reuters Tax and Accounting Professionals's home for real-time and historical data on system performance.
I'm finally back but I can't join VC because I'm going to sleep, (I'm in GMT) Have a good one!
Is there a browser plugin for this? ๐
Shouldn't be hard to write one tbh
... profit?
made no difference for me
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://...
Honestly cbf I don't think it's marketable
If people actually cared for it someone would make a free version in a weekend
Yeah actually, I just want it so I can use it myself ๐
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

I went through 5 pages and not a clue what I read
Lmao
So probably not going to use it regularly
The fastest way to tie your shoes! This video breaks down how to tie your shoes with the Ian knot. The steps are presented in a clear and concise manner, that makes it super easy to learn!
As far as I know this knot was invented by Ian Fieggen "ProfessorShoelace". You can check out his website, and his Youtube channel below!
http://www.fieggen...
Ah you should have done 4 months
brb
Left over right, right over left 
Otherwise it's a granny knot
When is it?
How big typically is Pycon US?
PyCon UK Friday 22nd September to Monday 25th September 2023, Cardiff City Hall
Ah right
meatballs organises that one I think ๐
What are you all up to? ๐
Mhm
He's sometimes around in python-general.
You can identify him by the 
bot#439
You still working on the lambda calculus thing?
yes
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())
@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
where is your \

I have been implementing this in my parser https://en.wikipedia.org/wiki/De_Bruijn_index#Alternatives_to_De_Bruijn_indices
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...
@terse needle I think it would fall into this definition:
a particular method or system of calculation or reasoning.
As a definition for calculus
Hmm, Lark has "transformers", so I might give that a go (e.g. transforming from the parse tree to that representation).
slightly fucking, might be able to swap some of the heap allocs to just static stack allocations https://github.com/jbutcher5/lambda-calculus/blob/main/src/parser.c#L150-L179
Yeah. Calculus in maths is just short for "differential and integral calculus".
TIL
just learnt how to integrate and differentiate polynomials and tbh I love calculus
Nerd
and it's so beautiful seeing differentiate from first principles i.e. why the power rule works
Ah yeah. Is there like a reverse polish notation type thing for lambda calculus ๐ค
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...
is rpn 1 1 + or + 1 1
.
(f(x + h) - f(x)) / h
beta reductions are by convention the latter normally
Burned into my brain lol.
First one ๐
so that would be a right-most beta reduction
Tutorial for tying the โIan Knotโ, the world's fastest shoelace knot.
Oh right ๐ค
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
๐ค
however an outer most beta reduction would apply ((\x.xx)(\x.xx)) to (\y.a) and evaluate to a
Hmm, I feel like I'll have to read up on lambda calculus to understand this sorry ๐
https://lambdacalc.io/documentation.pdf very good write up on the design decisions for https://lambdacalc.io/
Lambda Calculus Calculator supporting the reduction
of lambda terms using beta- and delta-reductions as well as defining rewrite rules
that will be used in delta reductions. Terms can be reduced manually or with an
automatic reduction strategy.
Forgotten most of what I know ๐
Oh nice ๐
aurora
you can skip to chapter 5 tbh
borealis?
no
did you see it two days ago
damn
Pilot turned in a circle so that passengers on the other side could see.
brb
hi @rugged root
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
tyvm
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
@vestal rivet ๐
Ye
yes sir
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))```
!epy a, b, c = (1, 2, 3) print(a) print(b) print(c)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
Variable unpacking.
!e py letters = 'abc' numbers = '123' symbols = '@#$' for abc in zip(letters, numbers, symbols): print(abc)
@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', '$')
!e py letters = 'abc' numbers = '123' symbols = '@#$' for a, b, c in zip(letters, numbers, symbols): print(a, b, c)
@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 $
!d isinstance
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).
Similar names: 2to3fixer.isinstance
!e py a = isinstance('abc', str) b = isinstance(5, str) print(a, b)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
True False
!e py result = isinstance('abc', object) print(result)
@somber heath :white_check_mark: Your 3.11 eval job has completed with return code 0.
True
for A in zip():
if type(A) is isinstance(ham, A):
print(float(10))
@gilded radish I'd poke around in #web-development
Check the pins.
@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 ^
no
? You can prove an algorithm's correctness
Independent of runtime
hello
?
@somber smelt can you type
i can't hear properly what are you saying?
yes i need
Walrus Operator
how they work
๐ปBecome a Master Python Developer: https://bit.ly/b001-python
Background Music:
Slowly by Tokyo Music Walker | https://soundcloud.com/user-356546060
Music promoted by https://www.free-stock-music.com
Creative Commons / Attribution 3.0 Unported License (CC BY 3.0)
https://creativecommons.org/licenses/by/3.0/deed.en_US
sure
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
gg
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
gg
@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
Yahoy.
Nothing important.
Drilling?
I may have been talking about someone else who does it. 8080, I think.
8080?
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 bye
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
conversion to roman numerals? or from?
roman numerals
conversion both ways?
!d def
8.7. Function definitions
A function definition defines a user-defined function object (see section The standard type hierarchy):
least useful way to answer that, I guess
then why bother to help ?
hello, is this a good place to ask for some tech support?
i apparently don't qualify for voice privilages
!voice
Voice verification
Canโt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
elaborate a bit more - generally yes (although don't expect constant replies)
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
Call python setup script.
'echo %PATH%' seems to indicate otherwise. at least GPT says the output indicates the PATH is fine
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 )
win 11
python 3.10?
3.9.13 it's the latest version compatible with my version of matlab
.
not sure what you're instructing me to do there
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
correct
py seemed to do the trick. thanks!
can i DM you if i need a followup?
sadly DM's are closed. i'd have to friend you if you needed further help. but @ me also works
will @ then. thanks
Hello Mustafa, Opal, Hem
i recall installing manjaro, and then immendiatly forgot my password, so i moved to another distro.....
Tarbooj
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
i think its bread with something
they usally make them on pans
Generally Batman/Joker films have nice quotes
โMy mask allowed me to be myself completely, no shame.โ pov:every discord user
๐ต It's a little bit funny, this feeling, inside.
Love that song
Hello magicalgirl
did you understand what DTO's are then ?
no DTO's dont have bussiness logic - they are like data structures
@whole bear๐
best to remember them as like signup so then using a DTO you can pass
{
"username": "phantom",
"password": "123"
}
yes
you send this in the body of your POST request ( as JSON )
yes
Guys I want to ask you about api something
sure
whats your question
@hoary olive i am waiting man
let me get my old code from gitlab so you understand better , one sec
yes pls
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.
are you using a libary to access this?
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?
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
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?
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 ...
The Key is the Api Endpoint which i extract from the url
``` then?
I tried. Result same.
@olive ermine๐
will AI replace programmers in 5years ?
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...
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");
"Your chances of getting killed by a duck are low, but never zero."
discord.gateway.DiscordVoiceWebSocket.initial_connection died
yeah, building and reading the json is no problem. I want to insert that data later on in my own db.
https://www.opensubtitles.org/en/search2/sublanguageid-all/moviename-dangal its correct isnt it?
Dangal - 9 subtitles results: Dangal, dangal S04E03, Koffee with Karan Team Dangal...Movie and TV Subtitles in multiple languages, thousands of translated subtitles uploaded daily. Free download from source, API support, millions of users.
Are you using JPA?
Yes i am using jpa
no need to do that ( let me get my own code )
Dangal subtitles Turkish. AKA: ะะฐะฝะณะฐะป. Former wrestler Mahavir Singh Phogat and his two wrestler daughters struggle towards glory at the Commonwealth Games in the face of societal oppression.
how? can you give me an example or some keywords
Yesh would be great to get an example
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;
}
@hoary olive I tried limit=500 result same.
Apiarists.
curl -X POST wb/usr/r
-H "Content-Type: application/json"
-d '{"email": "testing@gm.com", "password": "testing", "verificationCode": 12312}'
``` @blazing beacon
Or Ant Man.
thats literally what a DTO is , it has no business logic , its just like a data structure
If you use a data structure every day, is it a day-to-datastructure?
...
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
oh
verificationService```
Optional<UsersEntity> usersEntity = usersServices.validateUser(
null,
verificationDTO.getEmail(),
verificationDTO.getPassword());
so it's still a pojo, just for a specific use case
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
It would be a very tiny consciousness.
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
thank you phantom. i actually copied everything you just wrote and i'm gonna re-read it all so i don't forget
ok now for this
1.21 gigatonnes.
yes pls
what i would do is i would make a Model/Entity for my pokimon cards
50 mega tone
yes i have a model
like the bomb
About 8 billion.
@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
i sell nuclear bombs
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()
as you can see the api returns an array of json objects
the night tail
so would you map one json object to one dto and then save it. And continue the process until you processed all json objects
dont make a dto just make a pojo
just use https://www.jsonschema2pojo.org/
Generate Plain Old Java Objects from JSON or JSON-Schema.
it's nearly 16k json objects
so it the population is 7 billions of people
yes i used that one
as i told you. I map all the Pokemon card to HashMap<String, ArrayList<Pojo>;
am writing an issue now
to then save it in the databse?
yes. I loop through the ArrayList<Pojo> and save() every single pojo in the db
i should do some coding with my iq
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?
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
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....
Apache Cassandra
Open Source NoSQL Database Manage massive amounts of data, fast, without losing sleep
its very popular
which nosql db would u recommend for my spring boot project?
Cassandra is a NoSQL database? I don't believe you.
That was a joke.
A reference to Cassandra of Greek mythology.
Love how netflix literally uses all services , even spring boot is by netflix
She was an oracle.
i have bitbucket/github/gitlab but everything is private on them
i dont do opensource
Yes, but offended a god, who cursed her so that nobody would believe her prophecies.
i have email but its my full name
linkedin?
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
yeah you are right there
aight i friended you to give you my email if you needed it
k bye
ye just dont leak my email
FastAPI has built-in file upload support
@vocal basin can we add beep sound or something like in python program?
print('\a')
what is this
on some systems it produces sound
ok let me check
A bell character (sometimes bell code) is a device control code originally sent to ring a small electromechanical bell on tickers and other teleprinters and teletypewriters to alert operators at the other end of the line, often of an incoming message. Though tickers punched the bell codes into their tapes, printers generally do not print a chara...
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
since September 2017
you had pursue any degree?
ok bye actually i am making a small project Drink Water Reminder
I have exactly one semester of higher education and it was almost exclusively C
pfffffffff
@whole bear๐
hi
msym/core/modulo.py line 20
def simplify(self):```
barf = ice
เจฌเจฐเจซเจผ
Barafa
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
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...
@bleak lava๐
@sharp lake hello
Ya
ok here is how they use shotguns in movies
SUB TO SVEN: https://bit.ly/3hu7YNX
โCOME FOLLOW ME HERE OR I WILL CRY (HARD)โ
- Twitch: https://www.twitch.tv/gusjohnson
- Twitter: https://twitter.com/Gusbuckets
- Instagram: instagram.com/johnsongus
- Facebook: https://www.facebook.com/gustoonz
- Reddit: https://www.reddit.com/r/gusjohnson/
- Snapcha...
how do you do, fellow environment lovers?
โCOME FOLLOW ME HERE OR I WILL CRY (HARD)โ
- Twitch: https://www.twitch.tv/gusjohnson
- NEW MERCH: https://www.gusjohnson.co/store
- Twitter: https://twitter.com/Gusbuckets
- SUBSCRIBE TO THE PODCAST: https://bit.ly/2wA7zDR
- Instagram: instagram.com/johnsongus
- Facebook: https://www.facebook.com/gustoo...
I got 57 more goddamn rounds in this 4 rounds magazine
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
in short, it doesn't exist
DayZ is from ArmA 2
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
True
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
@amber raptor I hope it's good news at the meeting
@rugged root itโs not for the meeting
Oh fair enough
Just going to get ready for work
!user in #bot-commands
43
On 43.
According to search.
So 7?
Could be fewer.
Discord search has been lagging behind, lately.
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
@celest saffron๐
Hey....
How goes it
@lime sail๐
this was when I was searching my messages
for some other users it lags by half a year
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
@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
@fossil trench@whole bear๐
Hi!
Errrrm, still doing a course, although I've been avoiding looking at it for a while ๐
Pretty much yep ๐
I've just downloaded discord and i don't understand nothing. Can you tell me about this app?
It's very difficult.
Why are you talking with us?
what is slack?
this app aren't working.
Slack is a work chat application
~~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.
So very si- yeah Phantom has it
Like Uber has a slack community for their developers
also for hackers to announce they hacked uber ๐
What do you do here?
can I now: How old are you?
33
rust-analyzer is not working for me
something went wrong
you are too old!
@lime sailis the best
i was joking!
xDxD
Uh huh
i don't know why i entered here
do you want to see me?
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.
didnt outlook have an outage some time ago with xbox live?
what does it mean bro?
do you want some filippos
i have got some Filippos
trying to get rustlings to get analyzed correctly
yes, discord.py got fixed
(another person submitted a proper patch)
hey, i'm creating a Discord Bot but there are some bugs, can you fix them?
also i
bugs in what sense?
Can you tell me about Elon Musk? who is this really famous person?
I've just worked out that "Discord community" is an anagram of "tiny dud microcosm."
for example i added a counter for the messages that you write but now it doesn't woks anymore
in what sense does it "not work"?
it gives an error of the discord library
what error?
if you want i send you my code
why are searching to ban me? It was only a joke.
send traceback of the error
async for _ in discord.TextChannel -> Type .history(limit=None):
count += 1
Wait some hours!
where did you define counter?
is this right
at the begin of the code
What is Python?
you might be missing the following at the start of the function
global counter
!e py def func(): print(var) var = 5 var = 0 func()
@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
Ok, I'm really sorry.
@lime sail
did this fix the issue?
if i write global counter = 0
it doesn't work
but what does the function global?
can you send your actual code please?
no, not like this
how
Yo 
You shouldnโt global in general
excuse me
but what does the function global?
counter = 0
def your_function():
global counter
...
also this, yes
no thank, i don't what is rust
@whole bear๐
What is this code?
@indigo sundial๐
I made thing work
it would again be quite nice if you actually sent your code
maro are you french?
do you mean docker?
global counter = 0
Container is correct terminology
global counter = 0 syntax is invalid
ok
i wanted to send this
Code OSS is the opensource version of VsCode that basically cant do anything
they should now release "VS No Code"
Seems almost intended to cause confusion.
and then Code/Code-insiders is official
Managgia is a typical french exclamation.
Oh right, that makes sense
c'est right
So what is "mannaggia"?
global counter just before this line
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]
french?
what do you mean
Just waiting for them to make a car and call it "Microsoft Word on Wheels" or something lol
global counter
if counter == 0:
IBMW
why indent the if?
oh, thanks
Powered by twitter
Worlds first cloud native car
implying this is inside a function
"Controll the Microsoft Car from Twitter Polls" seems like an amazing idea
then why not indent the global
"Oh, no, Cloudflare is down!"
.
phone moment?
Looks indented to me 
"should I turn right or left"
Nope, my french friend that is next to me, he is saying that's french or European exclamation.
pov: both right and left are walls....
What client are you on?
You mean Azure Front Door
is the vc full/?????
European, possibly
French, serious doubt
android
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
same on my phone
I don't now what is "mannaggia"!
Ah, explains most things
Italian, lol
Well, I don't know. Whatever service that when it goes down everything falls to shit.
not French
Has it been published officially or is it still click 10 times on the "dark theme" button?
My friend is making fun of me
feeding *
only if i could screen share in vc ๐ญ
well Neapolitan if you want to be very specific
No one can.
scam
Ok thanks for everybody!
cannot even screen share in live coding
No one can.
if user_message.lower() == "...":
global counter
if counter == 0:
await message.channel.send('...')
else:
await message.channel.send(f'...' )
You can but if mods allow it
now this:
i-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
Screen sharing permissions are granted on a temporary basis to trusted users, due to past misuse.
I pretend that doesnโt exist.
no one?
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.
I'll try to find one now
hello , what does the function global do?
Yep, I canโt.
Shame ๐ฆ
it's not a function, it's a statement/keyword
huh, hadn't expected that rabbit
global is a modifier
Video permissions operate under fight club rules.
It's not a function, it's a keyword. Inside a function, it declares that a name refers to a global variable and not one local to the function.
in python, less so
yes (exercise yes)
those being?
Do not talk about the fight club
can somebody help me
@lime sail 1 sec
Hello @frosty garnet
ok
@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.
๐ด
It seems to have some big names, does twitch really allow it?
Maro are you angry with me?
ok
If disclaimered, it might be ok.
Yeah he has Biden! Risky, "Parody" is a great word for it
global counter
counter = 0
This way, the global keyword will correctly indicate that you are referring to the global variable counter.
I think they've blocked you.
@whole bear nice to see you got your discord account today ๐คฃ
Nothing important
#ivoteforstreamingperms
just ask a mod for it, like LX,
I vote no
Note that asking doesn't necessarily mean it'll be gotten
if you dont ask you will never know ?
Yeah he said he had a meeting soon
^
SyntaxError: name 'counter' is assigned to before global declaration
so i always gotta ask
Why are everybody making fun of me?
@lime sail i already told you how to solve it
What did i do?
"Big discord boss"?
can you right another time everything
global counter
counter = 0
@frosty garnet https://www.hindustantimes.com/trending/man-claims-he-became-richer-than-elon-musk-for-seven-minutes-101645263069619.html
i recall a uni using chatgpt to email students about the whole shooting thing that went on
pethedic
brb
@olive ermine Check out the #voice-verification channel if you're wondering why you can't talk

is there really a limit ?
!e ```
import sys
print(sys.getrecursionlimit())
@hoary olive :white_check_mark: Your 3.11 eval job has completed with return code 0.
1000
!e
import sys
sys.setrecursionlimit(10**6)
ye INT.MAX_VALUE err but you can def set it if you want
!e import math
print(math.fabs(-2.1))
print(math.fabs(-0.0))
print(math.fabs(10.1))
print(math.fabs(0.0))
@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
who's causing trouble in the room now??
Hello Prop
instant?
knew this guy who waked up at 4 and eat coffee so always had a head ache
ya a spoonful of instant may do it
if i spend the day being a , code monkey , will have a full pot
im pretty sure you can eat it from the jar
is it (Instant Coffee straight from the jar) easy to digest ? highly doubt that
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
Is the coffee they have at hospitals in the US made from co-fee beans?
DTMF decoding?
not touch tone , its some kind of established protocol , dont know what it is
@whole bear๐
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
Sure....
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
It's possible you are picking up government or military data transmissions
i think GOV uses satellite or something better
SDR can figure it out , but i like building stuff
or it could just be background noise of universe
You want to build your own SDR in Python?
kinda , i want to use python so i can see how the code is used for decoding
@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?
Have you looked at some existing open source SDR projects?
https://github.com/gqrx-sdr/gqrx
https://github.com/AlexandreRouma/SDRPlusPlus/
https://github.com/SDRSharpR/SDRSharp
im taking a look here for ideas
yes i like open SDR stuff also
!e ```py
from scipy.optimize import fsolve
def equations(vars):
x, y, z = vars
eq1 = x2 + y2 + z2 - 1
eq2 = x3 - y2 + z
eq3 = y3 - 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)
@elder pendant :white_check_mark: Your 3.11 eval job has completed with return code 0.
[0.6994209 0.6994209 0.14704017]
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)
@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
what does that even mean bruh
Was there some sort of update from Pantone?
Shouldn't have been
And we had just verified the colors in both files matched before loading them into the software, because the art people had given us the wrong color the first time around
Maybe the wrong one was uploaded again or wasn't saved properly?
Or there was just some weird corruption
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
No idea
anyone voice chat?
!e ```py
import os
import subprocess
subprocess.run('python3 -m pip install requests')
@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'
!e ```py
import os
import subprocess
subprocess.run('python3 -m pip install requests')
print("Test")
@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'
lmao don't do that
We encourage people to try and break it
!e ```py
import os
import subprocess
subprocess.run('ls')
print("Test")
@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'
Oh okay im just trying to get voice
ah okay
!e ```py
import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'requests'])
print("test")
@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
!e ```py
import sys
import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip', 'install',
'requests'])
print("test")
@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
!e ```py
import sys
import os
import subprocess
subprocess.check_call([sys.executable, '-m', 'pip3', 'install',
'requests'])
print("test")
@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.
!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)
@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
!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)```
@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
!e ```py
import sys
import os
import subprocess
subprocess.check_call(['whoami'])
print("test")
@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
outdated
1.10
its on 1.4.0
import sys
import os
import subprocess
subprocess.run()
print("test")
or9 common u got this
@sterile lichen Again, move these to #bot-commands
๐ฆ
Or actually wait
alright but bot commands dont get me closer to using voice
I already told you that you are at the mark
#voice-verification has the instructions
Oh thanks sorry
@rugged root he's being a pain in the ass
Everyone's fine here
I just thought some of them were autistic
But asfter a conversation, all i good!
defo mate waffle
non-autism ceritifed!
!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.
:incoming_envelope: :ok_hand: applied mute to @tender wraith until <t:1677877591:f> (1 day).
Always a wonderful thing to come back to
./.
I don't change my nickname because I barely had the imagination to come up with this one.
LX stands for Alex though right?
cool nickname overall
Bye Pub ๐
something is lagging my computer ๐ฉ i think it's microsoft word ๐ฉ
they gave me a word doc form to fill out ๐
macOS on top
it's an x1 carbon
lenovo
indeed
that's ur problem
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
windows + lenovo = disaster
for some recent models they offered ubuntu as well
linux masterrace boiz
unix is alright. i use wsl
i'm on break next week
that's beautiful
ik custom build
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...
Pour some water on it
@whole bear
I had known about this before. I am familiar with only np.nan in python with no built in way to do it.
!e print(float('nan'))
@lavish rover :white_check_mark: Your 3.11 eval job has completed with return code 0.
nan
o, cool.

