#voice-chat-text-0
1 messages Β· Page 506 of 1
shhh you saw nothing
or any AI; also Reddit
only read docs/books (in mdbook sense); Q/A information tends to be excessively wrong for Rust
ah.
i do read docs most of the time
and sometimes just guessing based on function names + signature
Alisa what do we think about this statement
one of the examples for structuring stuff
I slightly dislike bin as a separate directory
in some other random tool, clap stuff it just directly in main.rs
just pick some reference that fits the current project best
and link to the source in the comments
@unique wyvern DDD: docstring-driven development
or doctest-driven development, but that's too close to TDD
and might even be useful, and we can't have that
!d enum
Added in version 3.4.
Source code: Lib/enum.py...
im having a fking blast trying to use shit in rust π
!pypi ursina
half-A
how many A's would this be? https://github.com/spelis/ats2
.17
@midnight agate resources reserved
a something against the while statement
while statement considered something
@midnight agate COME FROM
the superior control construct
dude...
imagine a langauge
imagine a language which is just rust but interpreted
imagine how slow that would be
miri
considering its compile times
Alisa do you have a voice
cranelift is jitted
what is your criteria for a language being interpreted?
!e ```py
def foo():
bar.append(123)
bar = []
foo()
print(bar)```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[123]
whatever python is doing
Python is compiled to bytecode
you can compile Rust to an intermediate non-CPU code too
(MIR or WASM)
a = 0
def foo():
a = 5
foo()
there are some important nuances to how Rust works which make it less compatible with interactivity
types are static
block:
some code
!e ```py
def foo():
globals()['bar'] = 456
bar = 123
foo()
print(bar)```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
456
question: why does Python not have do { } while(cond) ?
try the same with locals
(almost same)
!e ```py
def foo():
locals()['bar'] = 456
bar = 123
foo()
print(bar)```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
123
as in also move print there
because it doesnt have curly braces
nah jk
!e
def foo():
bar = 123
locals()['bar'] = 456
print(bar)
foo()
:white_check_mark: Your 3.13 eval job has completed with return code 0.
123
!pypi bython
very expected behaviour
!e
fs = [(lambda x: x + i) for i in range(5)]
print([f(10) for f in fs])
:white_check_mark: Your 3.13 eval job has completed with return code 0.
[14, 14, 14, 14, 14]
!e
a = [1, 2, 3, 4]
for x in a:
print(x)
a.pop()
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1
002 | 2
!e
a = [1, 2, 3, 4]
it = iter(a)
for x in it:
print(x)
next(it)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1
002 | 3
!e
a = [1, 2, 3, 4, 5]
it = iter(a)
for x in it:
print(x)
next(it, None)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1
002 | 3
003 | 5
this is scary stuff to run into
Go had the same thing
Go fixed it
Python didn't
lambdas share scope
in Go it basically caused soundness issues
i hate myself for making this...
in Rust you strictly can't mutate what you're forin over
because for moves the iterable
they're not immutable
they're exclusively owned by the for in Rust
Theyβre not?
absolutely not
they're just moved
for mutates it
it creates an intermediate unnamed value
So the for is the only one allowed to change the iterator.
you can't even refer to the iterator, but it is being mutated
same happens in Python, but Python doesn't have move semantics
so the original iterator may remain shared
I see, thanks π
@midnight agate Makefile generation has been automated https://github.com/parrrate/cargo-publish-makefile/blob/main/src/lib.rs
for those reasons, no longer using a shell script inside it
back to plain cargo publish one-liners
I could've possibly used IndexMap/IndexSet instead there
IndexMap/IndexSet are to LinkedHashMap/LinkedHashSet
what Vec is to VecDeque
and I generally operate on them there like stacks
so I should probably change it
nvm I do more than just stack operations
I do move things up from the middle
heyo
before you make it fast, first make it slow
https://byteofdev.com/posts/making-postgres-slow/
@midnight agate no, that's in November
EoP =?
Elements of Programming
yes. i was awake until like 4 AM yesterday.
so its early
-# (for me)
@midnight agate in response to "maybe we'll get incinerated"
(it's not a reference to anything)
Stepanov the man who thinks C++ is Ocaml/Haskell
author of STL
C++ owes being usable at all to him
C++ was supposed to have generics similar to Haskell
if you don't apply principles that OCaml/Haskell/Rust force you to follow to C++ code, you end up with incorrect C++
the language has those same rules
just not in the compiler
they're in the standard and papers
In the.. preprocessor?
they're not automated
you must follow them as a programmer
and compilers sometimes assume you follow them
No matter, Herb Sutter will make a 1000 page proposal and fix everything
self-assignment is a terrible mistake allowed by the standard
x = x
general C++ safety guidelines involve rules which effectively ban it
just like in Rust, aliasing is extremely problematic
Rust bans it
whereas C++ has to deal with it
@midnight agate DHH?
under some dialects/rulesets of C++, all types are supposed to support operation that, in C terms, is *ptr = *ptr
which in turns also means you should support assignment from both &T and &const T
the giant amount of many magic methods required to make a sound type is so annoying
Are types sound in Ocaml or Haskell?
Or maybe Lean?
Idk what the gold standard is for a language that got types right
But i feel like types cannot be an afterthought like they are in say.. python π
yeye so I heard... π
with open("arubacx_show_vlan.txt") as f:
data = f.readlines()
vlans = {}
for line in data:
if "-----" in line:
continue
if "Name" and "Type" in line:
continue
line_elements = line.split()
vlan_id = line_elements[0]
interfaces_whole = line_elements[5]
interface_groups = interfaces_whole.split(",")
for interface_group in interface_groups:
numbers = []
if "-" not in interface_group:
interface = interface_group
vlans[vlan_id] = interface
elif "-" in interface_group:
interfaces = interface_group.split("-")
for i in interfaces:
number = i.split("/")
numbers.append(number[2])
number.pop()
for i in range(int(numbers[0], (int(numbers[1] + 1)))):
interface = str('/'.join(i))
vlans[vlan_id] =
if "lag" in i:
number = int(''.join(filter(str.isdigit, i)))
else:
print("error")
----------------------------------------------------------------------------------
VLAN Name Status Reason Type Interfaces
-----------------------------------------------------------------------------------
1 DEFAULT_VLAN_1 up ok static 1/1/3-1/1/4
2 UserVLAN1 up ok static 1/1/1,1/1/3,1/1/5
3 UserVLAN2 up ok static 1/1/2-1/1/3,1/1/5-1/1/9
5 UserVLAN3 up ok static 1/1/3
10 TestNetwork up ok static 1/1/3,1/1/5
11 VLAN11 up ok static 1/1/3
12 VLAN12 up ok static 1/1/3,1/1/6,lag1-lag2
13 VLAN13 up ok static 1/1/3,1/1/6
14 VLAN14 up ok static 1/1/3,1/1/6
20 ManagementVLAN down admin_down static 1/1/3,1/1/10
from collections import defaultdict
vlans = defaultdict(list)
for ...:
vlans[vlan_id].append(x)
from rich import print
# Read in file
filename = "arubacx_show_vlan.txt"
with open(filename) as f:
data = f.read()
# Initialize blank dictionary
vlan_map = {}
for line in data.splitlines():
# Skip header lines
if "----" in line:
continue
if "Status" in line and "Reason" in line:
continue
vlan_id, vlan_name, status, reason, vlan_type, interfaces = line.split()
intf_groups = interfaces.split(",")
# Construct list of interfaces associated with given VLAN-ID
intf_list = []
for intf in intf_groups:
# Check for ranges
if "-" in intf:
intf_start, intf_end = intf.split("-")
# Dropping the last character will give us the base interface
base_intf = intf_start[:-1]
# Interfaces with x/x/x notation
if "/" in intf_start and "/" in intf_end:
intf_fields = intf_start.split("/")
start_idx = int(intf_fields[-1])
intf_fields = intf_end.split("/")
end_idx = int(intf_fields[-1])
# lag interfaces
if "lag" in intf_start and "lag" in intf_end:
start_idx = int(intf_start.split("lag")[-1])
end_idx = int(intf_end.split("lag")[-1])
# Deconstruct the ranges i.e. each individual interface listed
new_intf = [f"{base_intf}{idx}" for idx in range(start_idx, end_idx + 1)]
intf_list = intf_list + new_intf
else:
# not an interface range, just add the intf to the list
intf_list.append(intf)
# intf_list is now fully constructed, add it to the VLAN map.
vlan_map[int(vlan_id)] = intf_list
print()
print("VLAN Table:")
print("-" * 25)
print(vlan_map)
print()
fs::create_directory(".git")
fs::create_directory(".git/objects")
fs::create_directory(".git/refs")
fs::create_directory(".git/refs/heads")
fs::create_directory(".git/refs/tags")
fs::write_file_str(".git/HEAD", "ref: refs/heads/master\n")
this is interesting, is this part of a course or something?
i am curioous tooo
Yep
@ocean turret π
f
g
h
i
ok
@sour steppe https://hammad7crit.github.io/Task-Manager/
i will fix it more later when im done with school work
yeah i see
so should i find a way to utilize the space?
yeah maybe sorting out completed tasks etc?
alr
mhm
yeah but like
i dont wanna slow down my learning and just stay stuck on this yk
i havent progressed on python since i started this so in that sense but i guess making project is also progress
i mean how can i make this easier for me
react?
ok
what...
everything in 1?
bruh i just create new repos and add the code there lol
yeah no database stuff
yeah like i could pause after i have this frontend done then maybe after 1 week i know basic backend i can do it
yeah ok
yep
ight i'll go do hw now thanks for review
thx
@modern ibex π
Hi
yo how are you brother
good, wbu
good just chilling and coding as the usual
I see
LOL
hi @scarlet halo
@pseudo trellis π
@olive jolt π
Hello
#[derive(Subcommand, Debug)]
enum Commands {
/// Initialize the note file
Init,
/// List notes
List,
/// Create a new note as [ID]
New { id: String },
/// Edit a existing note by [ID]
Edit { id: String },
/// Delete the note at [ID]
Delete { id: String },
/// Search notes by [QUERY]
Search { query: Vec<String> },
/// Show note info by [ID]
Info { id: String },
/// Show info about the app
About,
/// Toggle tag by [ID] [TAG]
Tgtag { id: String, tag: String },
/// Search notes by [TAG]
Srchtag { tag: Vec<String> },
}
reminder for myself
what is he making?
@ocean turret π
LOL
on different platforms
i only bought it once in my life
@modern bear π
when I told someone that I was playing around in Rust, they asked me if I were remaking something. Now I see what they mean π
Wii U, Xbox 360, IPhone, Switch, PC
lol
Hi
@robust cliff π
Hello
!e py print({1, 2, 3} & (2, 3, 4))
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m1[0m, in [35m<module>[0m
003 | print([31m{1, 2, 3} [0m[1;31m&[0m[31m (2, 3, 4)[0m)
004 | [31m~~~~~~~~~~[0m[1;31m^[0m[31m~~~~~~~~~~[0m
005 | [1;35mTypeError[0m: [35munsupported operand type(s) for &: 'set' and 'tuple'[0m
average_grade = (math_grade + english_grade + science_grade)/3``
!e py print({1, 2, 3}.intersection((2, 3, 4)))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{2, 3}
code
!e ```py
very_cool_set = {1,2,3}
boring_tuple = (2,3,4)
print(very_cool_set.intersection(set(boring_tuple)))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{2, 3}
that works....
!e ```py
very_cool_set = {1,2,3}
boring_tuple = (2,3,4)
print(very_cool_set & set(boring_tuple))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{2, 3}
!e ```py
very_cool_set = {1,2,3}
boring_tuple = (2,3,4)
another_set = {3,5,7}
print(very_cool_set & set(boring_tuple) & another_set)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{3}
stream isn't working
ah
!e
math_grade=2
english_grade=2
science_grade=3
print(mathgrade & set(set(english_grade)set(science_grade))``
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m1[0m
002 | [1;31m`[0mpy
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax[0m
!e
math_grade=2
english_grade=2
science_grade=3
print(mathgrade & set(set(english_grade)set(science_grade))```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m4[0m
002 | print(mathgrade & set([1;31mset(english_grade)set(science_grade)[0m)
003 | [1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax. Perhaps you forgot a comma?[0m
!e
math_grade=2
english_grade=2
science_grade=3
print(mathgrade & set(set(english_grade) & set(science_grade))```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m4[0m
002 | print[1;31m([0mmathgrade & set(set(english_grade) & set(science_grade))
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35m'(' was never closed[0m
Every time I try installing RustOver, something happens to my pc
!e
math_grade=2
english_grade=2
science_grade=3
print(mathgrade & (set(english_grade) & set(science_grade))```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m4[0m
002 | print[1;31m([0mmathgrade & (set(english_grade) & set(science_grade))
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35m'(' was never closed[0m
neovim would never do that
π
I have something that started Neovim and Vim, downloaded right here on my pc
!e
math_grade=2
english_grade=2
science_grade=3
print(set(str(science_grade , math_grade , science_grade```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m4[0m
002 | print(set(str[1;31m([0mscience_grade , math_grade , science_grade
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35m'(' was never closed[0m
!e
math_grade=2
english_grade=2
science_grade=3
print(set(str(science_grade , math_grade , science_grade)```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m4[0m
002 | print(set[1;31m([0mstr(science_grade , math_grade , science_grade)
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35m'(' was never closed[0m
!e
math_grade=2
english_grade=2
science_grade=3
print(set(str(science_grade , math_grade , science_grade)))```
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m4[0m, in [35m<module>[0m
003 | print(set([31mstr[0m[1;31m(science_grade , math_grade , science_grade)[0m))
004 | [31m~~~[0m[1;31m^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^[0m
005 | [1;35mTypeError[0m: [35mstr() argument 'encoding' must be str, not int[0m
lol
!e
math_grade=2
english_grade=2
science_grade=3
print(set(str(science_grade + math_grade + science_grade)))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{'8'}
!zen
Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than right now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
what if you set the integers to strings?
!e
math_grade=2
english_grade=2
science_grade=3
print(set(list(map(str, [science_grade, math_grade, science_grade]))))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{'2', '3'}
ohh
so, a set can't have duplicate values
just so you know
!e
math_grade=2
english_grade=2
science_grade=3
print(set(map(str, [science_grade, math_grade, science_grade])))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
{'2', '3'}
@rich plover π
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
get the avverage grade]```
```py
average_grade = (math_grade + science_grade + english_grade) / 3```
neovim did in fact not do that π
ig i stick to it
!d statistics.mean
statistics.mean(data)```
Return the sample arithmetic mean of *data* which can be a sequence or iterable.
The arithmetic mean is the sum of the data divided by the number of data points. It is commonly called βthe averageβ, although it is only one of many different mathematical averages. It is a measure of the central location of the data.
If *data* is empty, [`StatisticsError`](https://docs.python.org/3/library/statistics.html#statistics.StatisticsError) will be raised...
!e
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
math_grade = student_alice[0]
english_grade = student_alice[1]
science_grade = student_alice[2]``
```py
average_grade = (math_grade + science_grade + english_grade) / 3```
:x: Your 3.13 eval job has completed with return code 1.
001 | File [35m"/home/main.py"[0m, line [35m11[0m
002 | science_grade = student_alice[2][1;31m`[0m`
003 | [1;31m^[0m
004 | [1;35mSyntaxError[0m: [35minvalid syntax[0m
!e
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
math_grade = student_alice[0]
english_grade = student_alice[1]
science_grade = student_alice[2]
```py
average_grade = (math_grade + science_grade + english_grade) / 3```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Analyzing Alice's Academic Record:
002 | Student data: ('Alice Johnson', 85, 92, 88, 'Computer Science', 15)
!e
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
math_grade = student_alice[0]
english_grade = student_alice[1]
science_grade = student_alice[2]
average_grade = (math_grade + science_grade + english_grade) / 3```
:x: Your 3.13 eval job has completed with return code 1.
001 | Analyzing Alice's Academic Record:
002 | Student data: ('Alice Johnson', 85, 92, 88, 'Computer Science', 15)
003 | Traceback (most recent call last):
004 | File [35m"/home/main.py"[0m, line [35m13[0m, in [35m<module>[0m
005 | average_grade = ([31mmath_grade [0m[1;31m+[0m[31m science_grade[0m + english_grade) / 3
006 | [31m~~~~~~~~~~~[0m[1;31m^[0m[31m~~~~~~~~~~~~~~[0m
007 | [1;35mTypeError[0m: [35mcan only concatenate str (not "int") to str[0m
Click here to see this code in our pastebin.
.
@scarlet halo How do I get the Neovim you're using? Not the terminal one
I'm using the terminal one
my neovim config files. Contribute to Spelis/nvim development by creating an account on GitHub.
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")
# TODO 1: Unpack Alice's tuple and calculate average grade
name = "" # TODO: Extract name from tuple
math_grade = 0 # TODO: Extract math grade
science_grade = 0 # TODO: Extract science grade
english_grade = 0 # TODO: Extract english grade
major = "" # TODO: Extract major
credits = 0 # TODO: Extract credits
# TODO: Calculate average grade
average_grade = 0```
.
@zenith notch π
ok
isn't that advertising?
Hi, voice was muted so I thought itβs some demo/tution call.
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
#game-development might be a better channel for it
is what advertising?
^
no
oh
theyre asking for feedback
i see
@cursive condor π
hello
!e py a, b, c = (1, 2, 3) # a, b, c = 1, 2, 3 print(a) print(b) print(c)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1
002 | 2
003 | 3
@unborn island π
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
@full anvil π
!e
import datetime
t = datetime.timedelta(hours=1,minutes=46)
print(t+t)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
3:32:00
hello @somber heath
just like anime..
Hey
heyyy
# Write your if/elif/else logic here:
# TODO 3: Academic status classification
# Dean's List: Average >= 90 AND credits >= 15
# Honor Roll: Average >= 85 AND credits >= 12
# Good Standing: Average >= 70
# Academic Probation: Average < 70```
What does this tax want me to do ]
bec i got this and i dint understand the meaning of academic in this sentence
@tacit crane GoDot engine
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")```
.
letter_grade=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90]
for grade in All_grades:
if grade >= 90:
print("A",grade)
elif grade >= 80:
print("B",grade)
elif grade >=70:
print("C",grade)
elif grade >=60:
print("D",grade)
elif grade >=0:
print("F",grade)
elif grade < 0:
print("invalid input",grade)```
:x: Your 3.13 eval job has completed with return code 1.
001 | Traceback (most recent call last):
002 | File [35m"/home/main.py"[0m, line [35m2[0m, in [35m<module>[0m
003 | for grade in [1;31mAll_grades[0m:
004 | [1;31m^^^^^^^^^^[0m
005 | [1;35mNameError[0m: [35mname 'All_grades' is not defined[0m
!epy letter_grade=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90] for grade in All_grades: if grade >= 90: print("A",grade) elif grade >= 80: print("B",grade) elif grade >=70: print("C",grade) elif grade >=60: print("D",grade) elif grade >=0: print("F",grade) elif grade < 0: print("invalid input",grade)
!epy All_grades=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90] for grade in All_grades: if grade >= 90: print("A",grade) elif grade >= 80: print("B",grade) elif grade >=70: print("C",grade) elif grade >=60: print("D",grade) elif grade >=0: print("F",grade) elif grade < 0: print("invalid input",grade)
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | B 85
002 | B 88
003 | A 92
004 | D 67
005 | C 72
006 | C 75
007 | A 95
008 | B 89
009 | A 92
010 | C 78
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/Q6D77UQPGKKC5UFHHDUYZOVCCQ
All_grades = alice_grades + David_grades + carol_grades + Bob_grades
print(All_grades)
###output (85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90)
# Write your if/elif/else logic here:
# TODO 3: Academic status classification
# Dean's List: Average >= 90 AND credits >= 15
# Honor Roll: Average >= 85 AND credits >= 12
# Good Standing: Average >= 70
# Academic Probation: Average < 70```
!e
letter_grade=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90]
for grade in letter_grade:
if grade >= 90:
print("A",grade)
elif grade >= 80:
print("B",grade)
elif grade >=70:
print("C",grade)
elif grade >=60:
print("D",grade)
elif grade >=0:
print("F",grade)
elif grade < 0:
print("invalid input",grade)```
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | B 85
002 | B 88
003 | A 92
004 | D 67
005 | C 72
006 | C 75
007 | A 95
008 | B 89
009 | A 92
010 | C 78
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/IMKWX3RC5XMXIXLAA56QOENGQU
Write your if/elif/else logic here:
TODO 3: Academic status classification
Dean's List: Average >= 90 AND credits >= 15
Honor Roll: Average >= 85 AND credits >= 12
Good Standing: Average >= 70
Academic Probation: Average < 70
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)
print("Analyzing Alice's Academic Record:")
print(f"Student data: {student_alice}")```
letter grade to academic status and change the grade to satus
.
this was another the last code i sent
# Write your if/elif/else logic here:
# TODO 3: Academic status classification
# Dean's List: Average >= 90 AND credits >= 15
# Honor Roll: Average >= 85 AND credits >= 12
# Good Standing: Average >= 70
# Academic Probation: Average < 70
so this is something else not realaed to the other thing i sent
,
-
get their average grades
-
compare it with their goal (ex. 90 for Dean)
-
check if their cradits are higher or equal ( >= ) than the goal (ex. 15 for Dean)
-
if all of that checks out, return "{STUDENT} has passed."
!e```py
avg, credits = 92, 16
if avg >= 90 and credits >= 15:
Pass = True
if Pass:
print('student passed !!1!!')
else:
print('student failed :(')
:white_check_mark: Your 3.13 eval job has completed with return code 0.
student passed !!1!!
!e```py
avg, credits = 42, 16
if avg >= 90 and credits >= 15:
Pass = True
else:
Pass = False
if Pass:
print('student passed !!1!!')
else:
print('student failed :(')
academic_status=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90]
for grade in academic_status:
if grade >= 90:
print("Dean's list",grade)
elif grade >= 85:
print("Honor Roll",grade)
elif grade >=70:
print("Good Standing",grade)
elif grade <70:
print("Academic Probation",grade)
else
print("student failed")```
!e```py
avg = 42
credits = 16
CALCULATE IF PASSES
if avg >= 90 and credits >= 15:
Pass = True
else:
Pass = False
RETURN RESULTS
if Pass == True:
print('student passed !!1!!')
else:
print('student failed :(')
# Write your if/elif/else logic here:
# TODO 3: Academic status classification
# Dean's List: Average >= 90 AND credits >= 15
# Honor Roll: Average >= 85 AND credits >= 12
# Good Standing: Average >= 70
# Academic Probation: Average < 70
!epy academic_status=[85, 88, 92, 67, 72, 75, 95, 89, 92, 78, 85, 90] for grade in academic_status: if grade >= 90: print("Dean's list",grade) elif grade >= 85: print("Honor Roll",grade) elif grade >=70: print("Good Standing",grade) elif grade <70: print("Academic Probation",grade) else: print("student failed")
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | Honor Roll 85
002 | Honor Roll 88
003 | Dean's list 92
004 | Academic Probation 67
005 | Good Standing 72
006 | Good Standing 75
007 | Dean's list 95
008 | Honor Roll 89
009 | Dean's list 92
010 | Good Standing 78
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/FDIZAZZDCAT4TMZHIPFJDFBXKE
!e```py
avg = 98
credits = 16
CALCULATE IF PASSES
if avg >= 90 and credits >= 15:
Pass = True
else:
Pass = False
RETURN RESULTS
if Pass == True:
print('student passed !!1!!')
else:
print('student failed :(')
:white_check_mark: Your 3.13 eval job has completed with return code 0.
student failed :(
!stream 856263284764311583
β @echo bison can now stream until <t:1754411148:f>.
average_grade ###output 84.0```
!stream 1145811320621510738
β @manic basin can now stream until <t:1754411180:f>.
!stream
!stream 856263284764311583
β @echo bison can now stream until <t:1754411778:f>.
hey Chris, how you doing?
Good, thanks. How about yourself?
doing good, was a thunderstorm so had to plug out my PC for a bit, so sadly no progress on any programs :(
weather was good outside, half a second later its just POURING
and i 3D printed an ocarina
but sadly only these notes work
so im missing like 9 notes
# Write your if/elif/else logic here:
# TODO 3: Academic status classification
# Dean's List: Average >= 90 AND credits >= 15
# Honor Roll: Average >= 85 AND credits >= 12
# Good Standing: Average >= 70
# Academic Probation: Average < 70
# Given data - Tuple format: (name, math, science, english, major, credits)
student_alice = ("Alice Johnson", 85, 92, 88, "Computer Science", 15)
student_bob = ("Bob Smith", 78, 85, 90, "Mathematics", 18)
student_carol = ("Carol Davis", 95, 89, 94, "Physics", 12)
student_david = ("David Wilson", 67, 72, 75, "Chemistry", 20)```
yes
Hey @peak depot π
Can't voice chat at the moment. My fam's watching a movie in the same room and I don't want to interrupt.
I might be able to game tomorrow
I can hear haha
My honost opinion
It's Microsoft... you never know
@echo bison Terminal access is restricted by default when live sharing. (it can be granted though)
https://prod.liveshare.vsengsaas.visualstudio.com/join?654816D546B94BD47B6F85D2A005A2FF7A16 join yall π
Build with Visual Studio Code, anywhere, anytime, entirely in your browser.
@manic basin you saved it as iiiii or something on your desktop
@manic basin check recent files
file -> open recent
β @manic basin can now stream until <t:1754413484:f>.
hello
Gotta make some lunch. BRB
im watching you streaming rn
kind of the point of a screenshare :P
custom minecraft launcher
yeah real mc, theres a python implementation at https://github.com/spelis/vanta
it does support offline mode but whatever
cool, where can i download it?
^^^ the github that i sent
ok π
Back π
That is nuts
yes
i love my little (fat) noodle
He's beautiful
Why nowdays everyone has a pet snake?
It's a she (I don't blame you, they're basically impossible to tell the gender from a glance) and sometime like 2 years ago i just decided i wanted a snake π€ i think the reason so many people have them is either they think snakes are cute or they wanna make money (by breeding and getting cool patterns, which sells for lots of money the rarer they are)
!e
def total_polytrees(num_nodes: int) -> int:
return num_nodes ** (num_nodes - 2)
for i in range(1, 20):
print(total_polytrees(i))
:white_check_mark: Your 3.13 eval job has completed with return code 0.
001 | 1.0
002 | 1
003 | 3
004 | 16
005 | 125
006 | 1296
007 | 16807
008 | 262144
009 | 4782969
010 | 100000000
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/MMVR57GYXTSX5A346WIPRKGI4M
A random and necessary meme
.latex (n-1)(n-2)
In probability theory, the asymmetric simple exclusion process (ASEP) is an interacting particle system introduced in 1970 by Frank Spitzer. Many articles have been published on it in the physics and mathematics literature since then, and it has become a "default stochastic model for transport phenomena".
The process with parameters
...
I think this one treats it as text not mathblock
.latex $2n -4$
@lapis brook π
being away with no join sounds is so surreal
just more and more voices appearing out of nowhere
@tulip gyro "from scratch" -- out of B-Trees and fsync?
that'd be my bar for "from scratch"
@tulip gyro to my understanding, Maro expects quiz-like questions no "have you ... before" questions
Hii
next stage: exFAT?
HAHAHAHA
extremely vibe-codeable
since when we got pubsub in postgres??
I've actually never seen that before that's kinda cool
btw, did you know that SQLite has update hooks?
π₯
the more you know
hi
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
How is everyone doing today?
ROSEΜ & Bruno Mars - APT.
Download/stream: https://rosesarerosie.lnk.to/APTID
Order APT. single CD: https://rosesarerosie.lnk.to/APT-CDID
'rosie' - the first studio album by ROSΓ - out now
download/stream: http://rosesarerosie.lnk.to/rosieID
ROSΓ store exclusive 'rosie' vinyl, cd's, and more available now: http://rosesarerosie.lnk.to/store...
what we other distro think about ubuntu users:
@unreal berry distro is an empty topic for the most part
frfrf
@upper grotto π
hey, apparently I can't talk yet @somber heath lol
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
got it, thanks, apparently I need to be here for at least 3 days
well too bad, see you in 3 days
@wanton radish π
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
yah
its failed
your profession
your country
Kangroo MAnπ
you married
any gf
that cool
@rugged mauve π
Hi
This is my first time
So I didn't know there were conditions to be met
@peak depot since 8 am
To talk in vc
For this one, yes. π
Other servers may differ.
Yes, I am sorry
You've no need to be.
The Hayes command set (also known as the AT command set) is a specific command language originally developed by Dale Heatherington and Dennis Hayes for the Hayes Smartmodem in 1981.
The command set consists of a series of short text strings which can be combined to produce commands for operations such as dialing, hanging up, and changing the par...
@arctic pawn π
heyy @somber heath
hi @somber heath
@turbid basin you can't upgrade memory that is of type LPDDR or LPCAMM or in general soldered memory
so if you want to upgrade a laptop's memory, it needs to be DDR SODIMM
hey @topaz sparrow
Hey guys need some help with pdf generations through reportlab now what my concern is large data sets am totally upto options, if pdf generation is according to my template which i have made programmatically using reportlab but thats too much resource intensive for my production set up whether i am handling all that in a scheduled job or in an api both seems to be taking time any help
Why i canβt talk in the voice chat
bro where r u from
nice to meet u
im from Egypt
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
So r u a new programmer ? ( me yes )
Elo ?
mine is 1080
but it becomes 1000
on chess.com
There was a free knight
user in chess.com ?
hello i will stay in shadows
what is the problem if duckduckgo joined the voice chat?
why is Hemlock pfp shaking
what are you talking about?
idk
π
(and yes discord if my mic is muted, when I join a voice channel I want you to unmute it, duhhh :/ )
<script src="https://cdn.tailwindcss.com"></script>```
@sour steppe almost done
u there?
@sour steppe deployed!
they arent supposed to work for now
hm?
what doesnt work
wait
does the bg not change color?
the green turns dark green
yes.. thats all i added for complete π
can u screen share
its documentation
its docs
it for each field
These "comments" literally is what generate the docs
imagine asking to learn logic gates and bro handed this to you
Lol
Am new here
Bad design showcase?
"Oh, you made a mistake and want to delete or backspace something? Haha! Fuck you! Get a shutdown instead!"
God I hate css
how is something "valid" if it "doesnt work"
infinite is a valid value for scroll-driven animations, but it results in an animation that doesn't work.
Negative affirmations for the unemployed?
my stream is 1440p.... maybe if you close that π
or not.... I literally set 15fps in the settings
@peak depot I have no idea when I'm unbusy today
just left the office
I also need to finish Noctuary's free DLC
(extra story thingy)
(mostly doing it at, like, 2 am)
today got asked by a PM whether I'm overworking
(because of lack of schedule)
π£οΈ "unbusy"
busyn't
bun'tsy
one interesting consequence of me opting out of controlling anything that happens to my schedule (including wake hours) is that I no longer undersleep noticeably
I think I am gonna go now as well
Please react with β
to upload your file(s) to our paste bin, which is more accessible for some users.
:warning: Your 3.13 eval job has completed with return code 0.
[No output]
without a mic but yes
Okie dokie! I was just in a typing mood anyhow
I wonder how long Discord will work without a VPN
typing
anyhow
Rust mentioned
I hope this all makes sense
my game generates ~190 million narrative threads, uses WFC to narrow it down to ~15 million coherent narrative threads, another layer of WFC to organize with coherent narrative threads together into a complete story, and a complex promp injection algorithm to generate the descriptions of each frame
then it uses a pointer system like in old video games to do a reverse procedural generation seed to index all information stored in the game, every action ever taken, then builds it into a cohesive world that weaves the tapestry of the characters you've created and played with in the game, allow your characters to run into each other between playthroughs, giving greater impact to your actions
to create a dynamic text rpg that's never the same once and has true weight and impact in a cohesive world
we can do this simply because
it's a text RPG
not minecraft or slay the spire, or
spelunky
but just narrative threads simplified to their base concepts and constructed together
I'm currently developing a language for VNs/text games which does auto-composition of separate causally related pieces into one story
but that one isn't related to AI in any way
hmmm nice very interesting
more so that I can easily describe excessively complex choice trees myself
since that thing would allow difficulty to get a certain outcome complexity
mine uses a MiniLM for speech syntehsis, gemma3:4b
my idea for the compiler for this thing is just that it only enforces that any point in the plot can be reached somehow
I kind of prefer to really keep any sort of AI narration separate from the stuff I write myself
10k points within a couple seconds
AI involvement is more so for me to practice writing myself
Yeah, I understand completely. It's a very valid point
I also really need a very convenient IDE for it, or a syntax that doesn't get in the way
i just thought it would be impossible to boil down a consistent set of random 1500 concepts into something workable
that'd be like
though overconveniencing it might hinder the process
nearly impossible especially considering they're randomly organized and generated from a base 190 million concepts
I actually wouldn't be that much against just using Vim with some self-written plugin
why Vim: I want to write it on a phone
and Vim is so great there
I feel so uncomfortable editing text on a phone in anything other than Vim
nearest neighbour
*flashbacks to ML courses*
Part List - AMD Ryzen 9 9950X3D, GeForce RTX 5070, Lian Li A3-mATX MicroATX Mini Tower
@opaque raft I was talking to @upper basin he's making a desktop build. and I was looking at his cooler and I don't understand how to assess if it's good for the CPU. https://pcpartpicker.com/list/939PqH
Part List - AMD Ryzen 9 9950X3D, GeForce RTX 5070, Lian Li A3-mATX MicroATX Mini Tower
@opaque raft if someone gave you that cooler, how would you assess whether it can cool the CPU?
That would 100% cool a 9950X3D
can you explain your judgement please? how did you reach that conclusion?
Its a 360mm AIO theyve been known to cool the 13900ks (which is alot hotter than the 9950X3d) so in conclusion it should be fine.
"they've been known" <-- citation please? where have they been known/benchmarked/tested?
i see so there's no centralized benchmark website for it
I have such a great cooler on one of my computers by it ran out of stock by the time I went to buy a second one
it's so quiet
and how did you choose this cooler?
low noise, low rotation speed, high enough heat dissipation
which generally seems to mean tower cooler
(for the CPU)
And all that was in the product sheet? Cause the TDP of the CPU should match the cooler I think
TDP of the cooler must be at least that of the CPU
if you room and/or case aren't good enough for the cooler, need even more gap
Right but for ACEβs cooler i couldnt find the TDP
also you can get an high TDP low RPM cooler for a low TDP CPU and have a quiet cooler as a result
2000 RPM and below is the goal, approximately
the case influences the noise too
there are some which are specifically designed to be quiet while still not hindering cooling
@upper basin I have BG3 running at just below 60 but I don't remember on which settings
@vocal basin can you find the TDP of his cooler? I couldnβt find it
my GPU is having troubles with Noctuary's DLC for some reason
maybe I should upgrade at some point
still using a GPU from almost the GTX era
(mine is late 2018, and RTX is early 2018)
I still don't want to get an RTX
I'll wait a few more years
when my GPU dies of old age or whatever
I bought my current CPU on the basis of funny not performance
@vocal basin did you read product sheets when you chose the cooler?
Sorry for my cooler fixation.. it is what it is
The noise and heat are big factors for me
I know some coolers don't list TDP
But you picked yours because it listed TDP?
this liquid cooler is as loud as my non-liquid cooler
(the bigger one, on the server computer)
louder than the main PC one
Do liquid coolers have moving parts? Where the noise coming from?
I know so little about liquid coolers
they still involve regular coolers
the heat is moved using liquid further from the CPU
analogously to inner parts of a heatsink of a non-liquid cooler
I see
I really wish for passive cooling but thatβs a pipe dream requires massive blocks of copper
Like masssive
I just realised that it's not worth trying
active cooling can be silent
this includes server racks
Well you have to go in and clean it every few years i think
How often?
So not very often then. I donβt upgrade my stuff. I just want to ride them out until the wheels fall off
there was only a single time I ever cleaned a cooler because it needed it
(reduced heat by 50 degrees Celsius)
next time I upgrade my CPU it's going to be 65W again probably
@vocal basin this reminds me iβd like to discuss minimalistic monitoring solutions with you at some point
snmpd type of monitoring?
Uhm no snmpd but.. monitoring like metrics and yeah
Actual monitoring of servers for a homelab
@dry jasper my company pays my tax for me, so idk about it much
I could throw in prometheus and grafana but iβm not sure itβs the best
Zabbix
Tell me why you like it. Itβs on my list already
What did you get?
8700F
Gotcha.
from the weirdo CPU line
Ryzen 8000s are not normal
I think might even have a half-functioning NPU
which I can't use
even though I'm not a console player, I am content with having 30fps
@wise loom the moment you start seeing games and playing as a "phase", you fail as a programmer
@odd patrol I can only remember one game which bet on single core
Crysis
that bet failed so much
youβre kidding
I recommend getting better educated on how humans and creative professions work
Which part of how humans and creatives work is relevant here? You mean we have to balance out work with play?
(and I'm not willing to be the one responsible for such education)
Alright ok
@upper basin anything that has heterogeneous cores tends to be a pain to deal with for performance-heavy programs
(there was a 14 cores 20 threads on screen)
I don't see much point in getting efficiency cores for a PC
Hey Alisa, right now I'm rewriting a slightly old note taking app i made in Rust as my first real (Rust) application. I haven't committed it yet but i think its gonna be a huge upgrade
You can fine tune the CPU usage..
as Intel suggested, disable efficiency cores
or disable AVX
Of course itβd be better if it βjust worksβ instead of messing with power profiles and usage limits
Wouldnβt every core matter? Even the E-cores?
Disabling them seems counter intuitive
that was almost a quote from Intel
efficiency cores don't support certain AVX sets
which means applications which get rescheduled onto them might crash because they previously assumed those to be supported
so you either disable AVX or efficiency cores
I forgot Intel is nuts π₯ and they laid off 20% of their employees
Maybe AMD is just better in this regard with the P-core and E-core thing
Thatβs like for laptops but not even because a laptop should still be general purpose and not crash randomly like that
I guess only Intel knows who their CPUs are for
reminder that AMD released Ryzen 8000s
speaking of weird hybrids
CPUs with an NPU that does not work
cache sizes of Ryzen 1000s
and for whatever reason support for 256GB RAM
they sure are aiming for mobile market next with this
When mobile is dominated by ARM. Actually AMD has Mendoccino and Van Gogh(used on steam deck) for mobile.
still waiting for anything RISC-V
the CPU history museum in every house. I think thatβs what these processor companies are building, a distributed CPU museum
Milk-V is out there on the market already
Starlabs had a few laptops with it
Not starlabs sorry but some vendors
seems like already at GHz
You want to break free from the x86 and ARM tyrannies and oligopolies into license-free and trademark-free ISAs ?
I'll go order some from aliexpress
Possibly a good decision after you check benchmarks and reviews. I myself wanted to do the same. After all, in 1990 the movie hackers said βRISC is the futureβ
RISC V isn't license-free, it's permissive license
(CC attribution)
Still better than x86 or arm no?
Well qualcomm was sued by arm uk because they hadnβt paid their tribute to the uk overlords and qualcomm is like huge..
The tribute that had to be paid were the licensing fees
patent-free
don't write patents, don't read patents
what's a patent
I don't even know what a patent is
neither should you
literally does not exist
A patent is when you say you got dibs on bubblesort
(it was a joke about how you should actually respond to stay legally safe)
@upper basin isn't it just a cache size thing? as in transparent to the application
@upper basin ugh that is just wrong afaik
it might not matter as much
but it always works
always involved
@upper basin I am sure
L3 cache is what all apps must go through
they may or may not optimise for it
but they go through it always
L2 optimisations are very similar to L3 optimisations, you just want general data locality
chat is this overkill for a note taking app π
https://lmarena.ai/?mode=direct
@upper basin gpt-4 free
...
huh interesting
meanwhile when I code and I need something I use this revolutionary concept called thinking
yeah but that dose`t work for me
maybe in a few years they'll add this feature to LLMs
Just try harder
yeah i know but somtims i dont even now the function i need to use so i go and do it the hard way
it would be so funny if chat LLMs were allowed to edit their own messages
especially if that was not indicated to the user
gasllama
it would work so well given it won't even remember it
@dry jasper it's BSaaS
@vocal basin have there been things on CPUs only released in the last 5y that numpy can leverage?
Or Python itself
I mean instruction sets
U guys r lowkey smart as fuck and i hope you all succeed in life
no.
am i smart?
@random stag sorry ihave to go
brb
Don't have permission to speak
!voice
Canβt talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
<tag></tag>
Whyyyyyy!!!!
mute lmao
It said send 25 messages istg
Wait see for yourself
Why would you block me you demonππππ
Ik wait
I need to delete them
Hold on goddimit
Give me time
I'm scared
Okkkk stoppppp speak
You scaring meeeee
Ok wait
!tvmute 1026279943472169032 2w
:incoming_envelope: :ok_hand: applied voice mute to @light onyx until <t:1755740422:f> (14 days).
mindful is actually in here this time
Oh great
I'm just trying to delete img
Omg*
Ok so... I don't read the rules... kinda boring
Stop rubbing it in my face
I don't work
I ammmmmm omg that shit is so hard once it gets to modules
I give up a month ago
Yeah like that
I want to get back to it
I'm taking that course the cs50 one... the teacher is kinda fine tho heheheh
Wait do I have to delete this shit too
Should I buy this gitar
I rally like it
Omg yessss girlll I'm getting it now
I have some money
It's acoustic ..
Are guys all smart ppl who make a living of programming
can't connect in VC
Idk man..some random gay perhaps
Oh I don't have it either
Omg a frog
Wait guys since you all program and stuff.. does that mean you can hack too
uhh guys how to make discord desktop to create cache data???
how is everyone?
my PC is a total potato and now it's having stroke
u never have one...
u still need to verify
@light onyx check out #voice-verification
Oh..
I did it said come back after 2 weeks
When will you be free?
I'm pretty sure at no point does it say to come back after 2 weeks.
it's supposed to be "you"
Well that guy with you said it'll be 2 weeks
Me?.. aren't we both deaf
were you suspended for two weeks?
yes
..... for reference
Shut upppp I'm not spamming I'm just communicatingπππ
No the bot is being a bihh
Yes squish it
Omg why would he break things
Bro stand up for yourself
im working on my new implementation of logic gates
fk it im rewriting the entire thing
dose anyone use matplotlib?
Yes, he uses some
well someone used them somewhere on their timeline on python
I once did a big dose
im doing research but i didnt understand,..... uhhh how to use enum?
Help him he needs enum
i want a ways to pass different types of objects
He wants to pass objects
lets say
void process_objs(Obj object){
if (object == Obj::processables) {
do_something(object.get_something());
} else {
do_different(object);
}
} ```
someone...
What is the question?
Doesn't C++ have generics? <T>
...
well that will not work...
thats called template
Interface then?
idk what that is
how is everyone?
Good and you?
sob
Yes I have three more but they're my babies you know what I mean
I'm pretty sure templates/generics would work
Does anyone know how to make a Matplotlib danger meter?
Or even overloading
What I mean is if a population let's say I have 1000 watermelons for an experiment so i to have a population that doesn't go under a specific threshold if it reaches or goes under that threshold I want to alert me to plant more seeds to make up for the ones that died
Does anyone know but they have three different types of watermelons they're all on the same graph I want to take all those populations of that specific watermelon breed an alert me when a population is close to being to the point of no return specifically 500 individuals
test_line_format = {"color":"blue","linewidth":2,"marker":"$β¦$","label":"test"}
File "C:\Users\casti\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\category.py", line 215, in update
for val in OrderedDict.fromkeys(data):
TypeError: unhashable type: 'dict'
whenever i open it, i see only memes
years = [2006,2007,2008]
File "C:\Users\casti\AppData\Local\Programs\Python\Python313\Lib\site-packages\matplotlib\axes_base.py", line 494, in _plot_args
raise ValueError(f"x and y must have same first dimension, but "
f"have shapes {x.shape} and {y.shape}")
ValueError: x and y must have same first dimension, but have shapes (4,) and (3,)
da
i hope java isnt too bad
i hope the hate of programmers on java is just a myth
my teacher give us tutorial to run and install java and eclipse ide
and its an indian guy who has low quality vid and audio
Have fun with Eclipse
and has bad editing skills
Uhh.. You'll need Eclipse to do a bunch of stuff, although you can do most things with IntelliJ instead if you want a nicer experience
NeoVim doesn't have all the tools you'll need
what tools ill be needing to compile and run java program?