#voice-chat-text-0
1 messages · Page 407 of 1
it's enough to topologically sort the graph
and then you get all values trivially
you don't need to enumerate all paths
a very popular approach is to never sort them, but just store them sorted already
when you construct a node, calculate its path length as 1 + maximum of children path lengths
class Node:
def __init__(self, *children):
self.height = 1 + max((child.height for child in children), default=0)
for owning structures I prefer height because it has a clearest real definition
yes
and None or an exception for the case with no nodes
height: Option<NonZero<usize>> in Rust's case
def get_user_input(str):
str_o = input(str)
try:
str_o = int(str_o)
if str_o > 4:
print("Please input a valid response!")
get_user_input(str)
else:
return str_o
except ValueError:
print("Please input a valid response!")
get_user_input(str)
def create_task():
pass
def base():
print("""Welcome to the ToDoList Manager! You can manage and display all of the current tasks assigned to you for the up coming days.
Please input what you are currently looking to do with the active list of tasks assigned!
'1' for marking a task complete.
'2' for editting a task in progress.
'3' for creating a new task.
'4' for displaying all tasks currently assigned.
""")
print(get_user_input("Please select from above options: "))
if __name__ == "__main__":
base()```
getting a none value on my return call
trying to ficure out why, this happens after a invalid input is received only. test, and yeah only then
missing return
return is present
ahh
also Python doesn't have tail call optimisation, so given a persistent enough user it will fail with RecursionError
how can I go about solving this while still keeping the loop?
by calling the function with the original arguments, you're doing the equivalent of while True:
another note: to avoid conflict with built-in str, variable names are usually named str_
no, just around the function body
but
there will be a need to do a while-True in that place too later
Yo can someone help me?
what's the issue?
I can’t speak wait lemme write the problem
So I’m using an raspberry pi my project is an „Car counter“ with python3. I’ve got an camera on the hardware and it doesn’t work
Gives me some warnings
I can send it
ok
what are the warnings?
(preferably in text form)
first thought I have is that (root) there might be referring to needing to run it with sudo
but not sure
but that's just for the runtime check failed thing
does the code work? only warnings are the issue?
or does it fail?
@upper basin are you mutating nodes after the whole structure is constructed?
I regenerate the code for like 5times with ChatGPT bcs i don’t know the problem
It’s just the blackscreen
No, I would just extend/expand, not change.
It would only grow.
how are you adding children to a node?
how are you referring to the node when you do that?
if not isinstance(next, DAGNode):
raise TypeError("The next node must be an instance of DAGNode.")
if not self.children:
self.children = {self.name: next}
else:
children = self.children[self.name].children
while children:
if self.name not in children:
break
children = children[self.name].children
children[self.name] = next
where do you get the node object from?
by its path? or do you store it somewhere else (e.g. dict)?
@wary pivot 👋
does a node ever stop getting mutated?
@somber heath yes?
I first make a circuit like so
X(q0)
CX(q0, q1)
H(q0)
the code makes two nodes q0 and q1, and a node for each gate. It then adds that gate node as the child to q0 and q1. If q_i already has a child (meaning a gate has already been applied to it) then the new gate becomes a child of that latest gate.
If you remember circuit log, that would be the perfect example.
You give the circuit log, and then construct the DAG from it.
are q0 and q1 hard-coded variables?
if no, what are they?
are they stored in a collection and referred to somehow?
Yes. When we make a circuit of 2 qubits, q0 and q1 are created as DAGNode("Q0") and DAGNode("Q1").
They are stored in DAGCircuit instance.
that's not hard-coded, that's data, from the parser's point of view
and referred to by name?
Yes. Like so
dag = DAGCircuit(2)
dag.qubits["Q0"]
when do you use the path length?
after you've completed the circuit?
class DAGCircuit:
def __init__(
self,
num_qubits: int
) -> None:
self.num_qubits = num_qubits
self.qubits = {f"Q{i}": DAGNode(f"Q{i}") for i in range(num_qubits)}
Yes.
I mean you can always expand the circuit.
But you can think of the circuit in the meantime until/unless you expand it as the completed circuit.
I use the path length to calculate the circuit depth.
knowing a node, can you enumerate all its parents?
So, I use path length first to calculate max depth of each node (that being Q0 and Q1 for instance) and then find which one has a higher depth.
I don't think I can go upwards given I only store children, not parents.
I could technically do it by starting from Q0 or Q1 and moving downwards until I reach it, and then record that.
Wheeee work phones are being weird
NOTE: Any grumpiness that Mr. Hemlock displays is simply part of the process. He genuinely actually enjoys this. Genuinely
given something like this, where the new nodes go in that case?
@glacial venture 👋
arbitrarily attached?
So, Q0 can only have one child. Each Q node can have one child only. However, gate nodes like CX act on multiple Q nodes, so they can have multiple children.
So only at the bottom.
We go down as we add.
then invert the hierarchy
@thorny hazel 👋
Here the calls are
X(0)
CX(0, 1)
H(0)
flip the arrows, only add parents to existing nodes, not the other way
What would be the difference between going down and up though?
when a value A is derived from values B and C, A is the parent
@dusk glacier 👋
this makes almost everything way more trivial
you get rid of mutability
all of it
nodes no longer need to be changed in any way
no, never store it the way you currently do
you got children and parents the wrong way round
changing list of children is changing the node
this
this exact code
no
you did not, I haven't seen it
just as I said, you did not do it
where are you assigning the value as a field
and it's not __init__
it must be O(1)
@mighty lance 👋
or rather O(number of children)
why i can't speak
which is O(1) for most structures
!voice
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
tik tok attention span strikes again
It's better than being screamed at every 15 minutes.
they already left the server
🎉
@quick cedar 👋
@somber heath hii
@upper basin each node has a list of nodes it depends on
you can build it progressively
there is no "update"
only "create new and replace"
partially new
sharing most nodes with existing one
just because I remember the timecode
https://www.youtube.com/watch?v=F8sZRBdmqc0&t=2558s
for one phrase
there is absolutely no further context
@upper basin
(the "we've got tops and bottoms all mixed up", there is nothing more at that timecode)
@mellow moat 👋
Oh okay, was wondering if there was more after that part.
But I don't understand what is meant by tops and bottoms being mixed up though.
Because the way I understood it was that we start with an empty circuit (aka only Q0 and Q1 nodes) and then gradually add gate nodes to them. So, I went from top to buttom.
okay maybe a little context
So latest gate would be bottom, and the qubits themselves would be top.
To see if I understand it correctly:
- Build the DAG whenever you feel the circuit is complete (reason being that we would build it from bottom to top where qubits are at the bottom and latest operation is at the top) to avoid mutability for the nodes.
- When the circuit is updated, set the old node as the child of the new node (to reuse the old DAG and expand without mutability).
- Calculate the depth of a node with each creation in
__init__where qubit nodes have no children so they have depth of 0.
@vocal basin I have to go sleep. I'll try to wake up early to continue from here if you're ok with it.
Thank you very much for the help thus far.
@primal shadow "fair trade"
@vocal basin @peak depot @upper basin Just sent you three a free Nitro trial. They were just sitting in my inventory
should I think this looks suspicious 
Thank you Hemmy!!
You can, but it is indeed legit
idk, coffee seems out of place
I cannot start a trial for two reasons I think
you said boobie
not sure if trial can be repeated
after 5 years in my case
idk when it stops being counted
geolocation issue is there even when using Tor
"I'll wait for the person who gifted it twice before to wake up again"
seemingly those aren't fully georestricted
That's surprising
at least weren't last summer
Maybe they're tightening it up further because of the current US regime
I think it's just a billing/card thing
gifts are paid for by someone else and not renewed by default
roughly ground
approximately ground
"ah, not geographically migrating the servers"
the route for a Trump joke has been cut off
Much like our connections with our allies
@gentle flint Listen to the person who worked in healthcare for 15 years
What will you do if the tests come back negative?
@gentle flint Tolerate you gloating for a while, usually
Math, not even once
agony
I mean, he seems easy to carry
whoa
it compiles
trait OwOers {
fn owo(&self) -> impl '_ + Send + Future<Output = ()>
where
Self: Sized;
fn owo_dyn(&self) -> Pin<Box<dyn '_ + Send + Future<Output = ()>>>;
}
impl dyn OwOers {
fn owo(&self) -> impl '_ + Send + Future<Output = ()> {
self.owo_dyn()
}
}
I'm getting dangerous ideas
of proc-macro sort
LOL
there is actually no reason for second impl, should just return as is
actually need to head out, good day yall
@peak depot "nowadays, it's already staying for a few days before being delivered"
Peking duck creation is a real art form - crispy skin hard to do proper , duck has lots of oil
ooooh you got turned off Peking Duck
I have 9 or 10 woks now , cast iron the best
1 pound / 454 gram blocks for butter
brb
need a Itchy and scratchy cartoon of - cheese gettin wumped
I'm a big fan of this
they sell that exact brand in the store here
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
See how it says MAY
The rule is grey and errs on the side of caution
on purpose
because discord dropping the ban hammer on the server is significantly worse than your interrupted "right" to share piracy resources
Now I'm hungry..
You need to make a bread bowl
what's a bread bowl?
hello
why are we talking about bread
Why not
why not
It's an off topic channel and it beats politics and religion
indeed
i wonder if admins or directors enter calls every so often or do they never enter
hello
aral sea
one letter away from something completely different
hemlock is an admin and is in vc
yep i realised after
cheese walk
Treasury what?
@chilly wolf link?
Support The Show On Patreon!:
https://www.patreon.com/seculartalk
Subscribe to Krystal Kyle & Friends On Substack!:
https://krystalkyleandfriends.substack.com
Follow Kyle on Twitter:
http://www.twitter.com/kylekulinski
"The first time I ever really listened to Kyle Kulinski’s show was in the back of a cab last summer. The driver had his phone...
Oh, thought you said Hat
I want to see a treasury hat scandal
the magical treasury hat
@peak depot speaking of somewhat small payments,
before 2020 in Russia the employer-provided financial thing per employee's child was... $0.50
monthly
@primal shadow Also depends on where you live
so far my answer to that 3x(my current salary) offer from recently is no, because still sounds like a scam
@amber raptor "We need a doctor! You, get to work!" "I have a PhD in English" "Doesn't matter, you're a doctor, fix this broken leg"
THat'll be $240k, the doctor was out of networkj
Insurance doesn't cover English doctors
whats the chance that someone breaks a bone in their lifetime
IDK< worst I had was a hairline fracture
that the doctor didn't notice on the initial review, they called me when someone else was looking at it to let me know
@gentle flint It just is a chocolate bar
Because people are, say it with me, stupid
aaaaa
stupid and free 🦅
doggo discovered salami
Just imagining a dog standing on its hind legs and its front legs above its head while the salami rotates above its head like in Zelda
Donald Trunk
$1+1$
**```
.latex <query>
*Renders the text in latex and sends the image.*
bots build by committee
Bot built by community, actually
a committee
A communittyee
.latex \frac{d^2y}{dx^2} = (\frac{dy}{dx})^2
XD
.latex $\frac{d^2y}{dx^2} = \left(\frac{dy}{dx}\right)^2$
its 3 pm
yooooo
also I just realised how false that statement was
I just sais that you are also east coast
@peak depot There is always music going on in my head
I'm central time, not east
"just say that d=y and it mostly works"
Potentially cursed idea: using Python 3.13's free-threading option to split the chore of handling the requests while allowing another thread to handle things like A* for my API wrapper thing
@tepid mantle Then there's the one time that you don't do it fast enough and the vomit is everywhere
T-T
I'm feeling too stupid to be able to do it
Trying my best to not be discouraged from coding anything
yeah, I just forgot how to do second order differential equations
@wise loom Sup
@rugged root hi
@peak depot Of course
what is the double something something differentiation or something
what is it called
which branch of math is this?
is this algebra
seems like it
looks like a method of getting roots of a quadratic
usually the logic is pretty straightforward
thats crazy
check the discriminant, check for factoring, else just use quadratic formula
being able to use chatgpt for a test
lool insane
calculus
looked like algebra to be honest
i think it better to input the graph
ic
and get the value from a TI calculator than lettin chatgpt solve it
though it could probably do it no problem i hop
i wouldnt feel well using gbt on everything
i feel like if the desire is to build good software you you need things rooted in your brain
laters
bye
ohno
funny guesses did not lead to success
@primal shadow what was the context about live-reload?
web? or native?
speaking of neovim and android,
termux+neovim is great
Discord finally has a native client (of course, made by volunteers because Discord only offers their 2GB memory slow Electron bs instead).
Voice calls don't yet work but they're on the roadmap.
https://github.com/DiscordMessenger/dm
saw this the other day XD https://www.reddit.com/r/neovim/comments/1ibmj7y/girlfriend_28f_gave_me_an_ultimatum_her_or/
I thought termux was discontinued?
no, it's just not on google play
wasn't that markdown nvim extension made on a phone?
my bad
I only use neovim instead of vim because of less cursed colours
and I only use vim on a phone because there is no better option
I love my gruvbox hard dark
huuuh?
it was even farther ahead of each other option before termux changed their UI
left/right arrows weren't there earlier
yiiiikes
so vim was the only one providing proper navigation through text
are you a tokyo night kinda person?
I recently discovered Helix-editor and it seems nice
and trying to drag the cursor on the screen is just not the way
yeah, it has a lot of nice prepackaged features
If I wasn't bored I would probably switch to helix
Instant art student vibes
I shall interrogate inquire on what editor purplesyringa uses
That's intentional
the other other other Alisa
XD
whoa there are more than 2 ?
how hard do you think it would be to make nvim look and function like base obsidian?
@haughty pier Why do birds suddenly appear every time you are near?
the spy pigeons need to know that the infinitely replicable software wont be a threat
That tracks
it's abirdheid
Delicious
@woeful kettle 4th in their divison of only 2 teams
LOL
Wow, you live in Lapland, that is so cool
aw shucks
Also this one https://youtu.be/G_OISMtqq8s?feature=shared
we're collecting them
Northern lapwing
@haughty pier Don't make me jealous
"yes, I do math often, I write Haskell.
oh, wait, I spelt that wrong"
HA
just don't spell it Hascal
we get these instead
https://youtube.com/watch?v=md3Tjy13o34
Scientific Calculator Introduction This scientific calculator is a versatile tool that provides users with extensive computing capabilities, covering various needs in mathematics, science, and engineering fields. It features 522 different calculation functions, including trigonometric, exponentia...
Kitten was like 😡.
Mother be like " I'm a chill cat"
👋
hey
This voice limitation is so annoying
obviously is python. we do not share anything else :/
There's something very solid about widget-based GUIs 😄
//! Minimal Objective-C runtime wrapper for setting up a Metal layer on macOS windows.
//! Required to bridge GLFW's Cocoa window to a Metal-compatible WebGPU surface on macOS.
const objc = @cImport({
@cInclude("objc/message.h");
@cInclude("objc/runtime.h");
});
const std = @import("std");
const builtin = std.builtin;
fn objc_getClass(name: [*:0]const u8) ?*anyopaque {
return objc.objc_getClass(name);
}
fn sel_registerName(name: [*:0]const u8) ?*anyopaque {
return objc.sel_registerName(name);
}
// Dynamic message sending for Objective-C runtime
fn msgSend(obj: ?*anyopaque, selector: ?*anyopaque, args: anytype) ?*anyopaque {
const Fn = createMsgSendType(?*anyopaque, @TypeOf(obj), @TypeOf(args));
const func: *const Fn = @ptrCast(&objc.objc_msgSend);
return @call(.auto, func, .{ obj, selector } ++ args);
}
// Creates a type-safe function signature for msgSend
fn createMsgSendType(
comptime ReturnType: type,
comptime TargetType: type,
comptime ArgsType: type,
) type {
const argsInfo = @typeInfo(ArgsType).@"struct";
const params = params: {
var arr: [argsInfo.fields.len + 2]builtin.Type.Fn.Param = undefined;
arr[0] = .{ .type = TargetType, .is_generic = false, .is_noalias = false };
arr[1] = .{ .type = ?*anyopaque, .is_generic = false, .is_noalias = false };
for (argsInfo.fields, 0..) |field, i| {
arr[i + 2] = .{ .type = field.type, .is_generic = false, .is_noalias = false };
}
break :params &arr;
};
return @Type(.{
.@"fn" = .{
.calling_convention = .C,
.is_generic = false,
.is_var_args = false,
.return_type = ReturnType,
.params = params,
},
});
}
pub fn getMetalLayer(window: ?*anyopaque) ?*anyopaque {
const content_view = msgSend(window, sel_registerName("contentView"), .{});
_ = msgSend(content_view, sel_registerName("setWantsLayer:"), .{@as(c_int, 1)}); // 1 = YES
const metal_layer_class = objc_getClass("CAMetalLayer");
const metal_layer = msgSend(metal_layer_class, sel_registerName("layer"), .{});
_ = msgSend(content_view, sel_registerName("setLayer:"), .{metal_layer});
return metal_layer;
}
Gotta head out. Cheers all!
see ya
@round stratus , do you use AI often? If so, what do you think about DeepSeek?
Actually I was about to run it locally but I changed my mind due to security problems that have been reported.
Ask it about Winnie the Pooh and report back
data leaking
@somber heath hi
Yeah, but the thing is that the size of the model is massively high: 4GB.
I'm not sure if it's even worth it or not.
Did you see that video where some guys have bound seven M4 MacBooks to each
other to get the best response from the R1 model?
@round stratus IT
https://totallyturkish.co.uk/collections/coaster-sets/products/istanbul
https://totallyturkish.co.uk/products/set-of-6-drink-coasters-cream-cappadocia
This item is available in our store. Buy the best selling trendy Turkish products online from our store at exclusive prices. Our collections include candles, hammam towels, coaster sets, throws, tray gift sets, pocket makeup mirrors, and more. Our store products are the best in quality and price. Click here for more.
A Set of 6 Cream Drink Coasters we call the Cappadocia Set. These cute coasters come in a little box which makes this an ideal housewarming gift. Vibrant & Colourful coasters will brighten up any house. Protect your surface from stains with these functional coasters. Only £9.65 FREE UK DELIVERY | SHIPPED WORLDWIDE
A Set of 6 Orange, Yellow, Blue Drink Coasters we call the Anatolia Set. These cute coasters come in a little box which makes this an ideal housewarming gift. Vibrant & Colourful coasters will brighten up any house. Protect your surface from stains with these functional coasters. Only £9.65 FREE UK DELIVERY | SHIPPED WORLDWIDE
hello
whoever said my name
coding
in notepad today
and you?
btw @chilly wolf there do be a mod in here why you lie to me?
im from the east but different continent
https://chatgpt.com/canvas/shared/67a5205de5cc8191ab998a68e02f955d
since when chatgpt have an env?
yuh
i do that
mine is 27 1440p at 144 hz
altho, ngl my main method of gaming or doing stuff is in vr, so whatever the maths is for that
it supposed to have better viewing angles, also it depends what you use it for
i play echo vr, the greatest game of all time
Varsity Tutors connects you to top tutors through its award-winning live learning platform for private in-home or online tutoring in your area.
Visit https://ocul.us/echo-combat to learn more about Echo Combat, Ready At Dawn’s zero-g, co-op PVP shooter—demoed by Ninja in the 2018 Gamers’ Choice Awards!
Battle in zero-g like never before, with lasers, shields, detonators, and more. Team up with friends and soar into multiplayer mayhem with two explosive modes: Payload or Capture Point.
...
Visit https://ocul.us/echo-combat to learn more about Echo Combat, Ready At Dawn’s zero-g, co-op PVP shooter—demoed by Ninja in the 2018 Gamers’ Choice Awards!
Battle in zero-g like never before, with lasers, shields, detonators, and more. Team up with friends and soar into multiplayer mayhem with two explosive modes: Payload or Capture Point.
...
and to lazy to screen shot
i also play these games
i have like 70 more vr games, just not on steam
these are are banger of games
adhd are supposed to get calmer from coffee i think?
Benefits
Caffeine can improve attention and cognitive deficits
Caffeine can increase alertness and energy
Side effects
Sleep issues: Caffeine can make it harder to sleep, which can worsen ADHD symptoms
Anxiety: Caffeine can increase anxiety, which can make it harder to manage ADHD symptoms
Jitteriness: Caffeine can cause jitteriness, which can worsen ADHD symptoms
Impulsivity: Caffeine can increase impulsivity, which can make it harder to manage ADHD symptoms
Tolerance: Caffeine is highly addictive, so people may need more caffeine to get the same effect
Other considerations
Combining caffeine with ADHD medication can cause dangerous jitteriness or impulsivity
People with certain health conditions, such as high blood pressure, kidney disease, or heart disease, may be advised to avoid caffeine
bye
👋
👋
more notepad coding
lol
i use notepad
lol
just notepad
yes
mine is nvim
you can use like processing, lol idk
@chilly wolf lol i have lotsa storage, lol
The first $2 notes (called United States Notes or "Legal Tenders") were issued by the federal government in 1862 and featured a portrait of the first Secretary of the Treasury, Alexander Hamilton (1789-1795). The first use of Thomas Jefferson's portrait on $2 notes was on Series 1869 United States Notes. The same portrait has been used for al...
my challange for today was using notepad lol, its very painful, cause like typos, and other stuff, lol
nah we using notepad
powershell is so much better
i also use git-bash when i need a unix type env, however powershell is much better then cmd
@unique wyvern heyyyy, i use nvm as my daily text editor
you okay ri?
this is your comupter?
@placid jackal 
Oracle Linux with Oracle enterprise-class support is the best Linux operating system (OS) for your enterprise computing needs.
@main comet is there any chance i could send you a wav file and you process it with your up-sampling script since you already have it set up? i'd do it on my end but i'd rather not have to go through the whole setup process and stuff. and since i only need to do this once
You're going to wake up with him looming over you
I'm not waking up for a few weeks. That'd require not being so full of caffine that I no longer blink
Wait
I genuinely don't even remember what I was saying wait to
it wasnt the above gif?
considering the time, probably shouldn't stay up for much longer
two more chapters to read
or 5
or 8
"Erio and the Electric Doll"
somewhat chaotic
something something AI apocalypse nearly avoided, now everything is steampunk
correction: 7
give me a sec to fix my mic
testing appending date - 2025-02-06
date_to_string = str(day)```
the day was cold, and the man shivered, his jacket, buffeted in the wind making loud claps as the fabrics fighted the gusts. he continued to walk down the valley, pulling his hat over his face, to cover his identity
After 5 years of development, contributions from hundreds of developers, the critically acclaimed open source programming hacking sim is available on Steam.Inspired by games like Else Heart.break(), Hacknet, Uplink, and Deus Ex, Bitburner is a programming-based idle incremental RPG where you, the player, take the role of an unknown hacker in a d...
hello alisa
second volume of this
hello i have a problem with my code (idk if its the code) but i am trying to make the python code into a exe file but after succesfully downloading the exe file when i open the app it shows me this errorTraceback (most recent call last):
File "PWS202502.py", line 44, in <module>
File "PWS202502.py", line 40, in initialize_model
File "deepface\DeepFace.py", line 67, in build_model
File "deepface\modules\modeling.py", line 96, in build_model
File "deepface\models\facial_recognition\VGGFace.py", line 45, in init
File "deepface\models\facial_recognition\VGGFace.py", line 158, in load_model
File "keras\src\ops\operation.py", line 254, in input
File "keras\src\ops\operation.py", line 285, in _get_node_attribute_at_index
ValueError: The layer sequential has never been called and thus has no defined input. why i am geetting this error and what im a missing what i did in the command prompt. ( btw it works perfectly when i run it in my visual studio )
why exe?
because i want it to be a app
to ship it into an app
what you using to make it into an EXE?
he used pyinstaller but he got some error called
you're likely missing hidden imports
trace the imports with and without conversion
how do i do that
without conversion: step through the import process with a debugger
with conversion: pyinstaller logs all modules it includes
if anything is imported/loaded by code but never appears in the logs, then there's a problem
is that the thing the pyinstaller shows in cmd while converting the code to .exe?
@spare galleon nvim has LSP support, e.g. pyright
@calm smelt gradle or whatever build server by default binds to 0.0.0.0
which is a security vulnerability
remote cloud LSP is some cursed level of BS
@calm smelt @spare galleon GitHub/GitLab are stuck with it for a while
Rails specifically
sorry but i couldnt understand almost anything i am a newbie to python
ruby is my fav language
lol
and ROR is super cool
Rails used to have some cursed performance issues, now fixed apparently
Twitter experienced those
Cya @spare galleon
bye mindful, always nice to see you
You too!
the ruby discord server, and community is very active, i do believe that perf could be fixed, i personally prefer it over JS, and rails over js backends
"my opinion is that..." it's been longer than necessary since I said this, so time to go
Have a good one!
hi
Hello
What were you reading?
Ah I see.
I fixed the slowness a bit differently. I found out I was re-calculating each sub-node's depth many many times, so when it's calculated, I just saved it into an attribute.
It went from 6.1 seconds to 6e-5 which is almost instantaneous.
What we need is nocapitalism.
Do P.E. It's about staying healthy.
@wind raptor
"manually moving the B-Trees around"
Electron it
make the software >20x bigger than it should be
we were taught PySide at school
@dry jasper you'll need to compile pyinstaller on your own rather than installing it from prebuilt wheels when you get to packaging
VBA it
@wind raptor also kotlin multiplatform or whatever it's called
how do I do multi-column PK in this
quick scan through docs did not help
just use https://ponyorm.org 's online db diagram maker. It's my goto and also provides the code for a bunch of different db types.
Different implementations of the same sort of concept?
hai hi
You're sounding less dead.
It would also depend on who the parties elect internally, yeah?
I think I'm on the mend
🎶 I don't want to set the world on fire. I just want to start a flame in your heart. ❤️🔥
Haa.
have you tested its correctness?
Yes.
even when expanding the circuit?
if you're still mutating leaves, you need to invalidate the whole structure's cached values
Lemme show you. I think I have to fix that too.
store an epoch index alongside each value
increment its global value each time you add any child node
Ohh nice. I'll do that too.
First lemme show you for the case where we make the DAG and then call get depth on it.
if it differs when queries, recalculate
@primal shadow it's a question of immutable memoization vs mutable one
i.e. whether or not it needs to be revalidated
I'm still strongly convinced the hierarchy is invalid
inverting all arrows does not change the longest path
@upper basin
each node you add takes some previous nodes in its constructor
it's symmetric
(longest path length)
there is no direction
would be first try if not for missing the !e
should probably add "name" key for ease of reading
!e
from pprint import pprint
nodes = {}
def add_node(name, *children_names):
children = [nodes[child_name] for child_name in children_names]
nodes[name] = {
"name": name,
"height": 1 + max((child["height"] for child in children), default=0),
"children": children,
}
add_node("A")
add_node("B", "A")
add_node("C", "A", "B")
add_node("D", "B", "C")
pprint(nodes["D"])
:white_check_mark: Your 3.12 eval job has completed with return code 0.
001 | {'children': [{'children': [{'children': [], 'height': 1, 'name': 'A'}],
002 | 'height': 2,
003 | 'name': 'B'},
004 | {'children': [{'children': [], 'height': 1, 'name': 'A'},
005 | {'children': [{'children': [],
006 | 'height': 1,
007 | 'name': 'A'}],
008 | 'height': 2,
009 | 'name': 'B'}],
010 | 'height': 3,
... (truncated - too many lines)
Full output: https://paste.pythondiscord.com/KMXH5JWDRQWD7WMQXSD3XWIFLM
All things being equal, the simplest explanation tends to be the correct one.
@primal shadow @woeful kettle it's about the least number of assumptions
nothing about simplicity
ed.: saying it's about simplicity is somewhat dangerous
at least of overall thing
simplest basis that the explanation is derived from, not the simplest explanation
wait what I zoned out did I just hear Oracle
why are we doing Oracle anything
even Oracle hates OracleDB despite Oracle being a lawnmover incapable of emotion including hate
"leadership"
lawnmovership
lawnmower?
I don't know how to spell it
lawnmower.
as in I know I spell it wrongly
Mowing the lawn.
God, could we get a dictionary bot please?
That'd be so useful.
like !dic mow like that.
we don't have these machines here
You don't have grass?
the thing we use isn't what US people use to cut it
Most use weed wackers. US and UK have different type of home infrastructure I guess.
Like this one.
yeah, the Oracle metaphore one refers to the other
It's actually better than a lawnmower. You don't have to push it, and it's less prone to getting clogged with a pebble.
it doesn't look enough like a car so US won't use it
make it look more like a gun maybe then it'll get adopted
soon I'll need to go talk with someone who has experience deploying this thing in production
Howdy
Hate my UI hehe. Makes things so hard.
# X(0)
# CX(0, 1)
# H(0)
add_node("Q0")
add_node("Q1")
add_node("X", "Q0")
add_node("CX", "X", "Q1")
add_node("H", "CX")
It needs to do X(0), CX(0, 1), H(0) and the code needs to check if 0 and 1 have children or not and add it to the latest child.
@rugged root that's their whole point
is emp is real ??
enterprise multiprocessing
@lethal shell Yo
what about embedded multiprocessing
have anybody tried new arma game ??
oh
will it run in 1650 ??
ok i will try when it will be available on xbox game pass
ArmA 4 Beta Reforger?
or a newer one?
it's been more years since Arma 3 than between 2 and 3
i think its arma reforger
I've spent 293 hours in it doing nothing meaningful
game look so realistic
(arma 3)
i tried sniping onetime ask about the pain of doing nothing
still haven't completed that aliens DLC
the one with Poland
@rugged root or did not finish
I was reading a thing about A.I.
I have a difficult choice to continue reading that:
translate from French or translate from Japanese
I like doing the telephone game with google translate
Going through multiple languages to see what I end up with when I get back to English
It sets me off.
let's hope it doesn't set off whatever that bomb that timer making those sounds clearly is installed on
Scarelock.
okay, now I suddenly have an obvious question:
is it I.A. in French version
Fedora?
I wasn't going to say it.
oh, look, I totally did guess that from all possible options
all possible options being 1 because dnf
it has been answered
any good mechanical keyboard under like 60 to 70 usd
Y combinator
ah, yes, the S(K(SII))(S(S(KS)K)(K(SII))) combinator
tactile like and bold sound
I need to make a partner site called "Just Because Combinator"
combination of brown and red switch
i need for my typing practice what will be better for it ??
For typing specifically either tactile or clicky are recommended
> goes to NPC
> looks above their head
> ~
So browns in your case. Although I find that the browns don't feel bumpy enough
It's too subtle
ok so any good recommendations??
Why does he have so many active tabs?
Why?
He could make desktop 1 desktop 2 different desktop for different purpose
I avoid using chrome on the same desktop as Vscode.
Because my buttery smooth brain can't handle too many things in one view
mine dont even work with out charging
Love it
Hollywood is beyond law, as law is dynamic and influential people use both money and influence to breach law and escape at any cost.
Best example, Capitol Riot (Trump Supporter and Trump)
bye
There there's the Catholic church... I mean it's everywhere
If there was a all-knowing, all-loving, all-powerful god he wouldn't have allowed this to happen
Yet here we are
Yes
Hmm?
Easier to fool religious people in the name of God!
My co-worker is back here and I don't know when he'll be done, so it may be a while
be back later
You're watching the official music video for Talking Heads - "Burning Down the House" from the album 'Speaking in Tongues' (1983)
Director: David Byrne
🔔 Subscribe to the Talking Heads channel and ring the bell to stay updated with Talking Heads https://th.lnk.to/SubscribeToTHID
Shop official Talking Heads releases and merchandise https://www....
And can therefore let said mother fucker burn
Yeah that song is great
Classic
Pretty lit
I know Python has a deque but I feel like I remember seeing a regular queue...
!stream 457991756399771651
✅ @placid jackal can now stream until <t:1738945961:f>.
Already done
Before they even finished asking
@placid jackal Please don't ACTUALLY burn
@peak depot Suuuup
sush
Oh I meant you specifically
Fuck the server
To each their own
I'll suffer along with you with Oracle
"The" not "This"
Source code: Lib/queue.py
The queue module implements multi-producer, multi-consumer queues. It is especially useful in threaded programming when information must be exchanged safely between multiple threads. The Queue class in this module implements all the required locking semantics.
The module implements three types of queue, which differ only in the order in which the entries are retrieved. In a FIFO queue, the first tasks added are the first retrieved. In a LIFO queue, the most recently added entry is the first retrieved (operating like a stack). With a priority queue, the entries are kept sorted (using the heapq module) and the lowest valued entry is retrieved first.
@unreal thicket Yo
@primal shadow Sorry dad
Making an AsyncRateLimiter class for the SpaceTraders thing
Or at least trying to
hah, I just did this (for httpx tho)
Oh sweet. This is for niquests in this case
!d asyncio.Queue
class asyncio.Queue(maxsize=0)```
A first in, first out (FIFO) queue.
If *maxsize* is less than or equal to zero, the queue size is infinite. If it is an integer greater than `0`, then `await put()` blocks when the queue reaches *maxsize* until an item is removed by [`get()`](https://docs.python.org/3/library/asyncio-queue.html#asyncio.Queue.get).
Unlike the standard library threading [`queue`](https://docs.python.org/3/library/queue.html#module-queue), the size of the queue is always known and can be returned by calling the [`qsize()`](https://docs.python.org/3/library/asyncio-queue.html#asyncio.Queue.qsize) method...
!pypi pyrate_limiter
Started from this
I'm still bummed that the InMemoryBucket doesn't support async natively
I was trying to use that one as well
What I was doing was combining a caching backend with a rate limiter behind it (since you only want to rate limit cache misses).
Httpx has a nice ecosystem, where you'd implement the rate limiting at the transport level, which would sit behind the controller (which implements the caching)(
Be nice Krzysztof lol
I have a fast api code, how can i turn a pc into a server? with full domain and that. When i ask how i mean good documentation haha
google-fu is deprecated
i have a questions in c++ language
who can help me to solve this problem :
Write a C++ program that takes a string as input and finds the longest repeated substring within it. A repeated substring is a sequence of characters that appears more than once in the original string.
chat gpt
both in combination ideally
just use Python coward
And your lecturer is probably the correct person to ask
some new outputs from my autumn leaf model:
https://huggingface.co/Borcherding/FLUX.1-dev-LoRA-AutumnSpringTrees
these 3 are real training data
this is wiggy
@rapid jungle where are you from
I am from Iran
It was obvious from your accent,me too.
If you work with Django, we would be happy to have you on our team, Erfan.
I am getting tired of this voice limitation.
Conveniently, with that last message, you just hit the criteria
Go into #voice-verification and hit the button
You may need to disconnect then reconnect for the perm to kick in
thank god I'm pleased
The Resources page on our website contains a list of hand-selected learning resources that we regularly recommend to both beginners and experts.
class threading.RLock```
This class implements reentrant lock objects. A reentrant lock must be released by the thread that acquired it. Once a thread has acquired a reentrant lock, the same thread may acquire it again without blocking; the thread must release it once for each time it has acquired it.
Note that `RLock` is actually a factory function which returns an instance of the most efficient version of the concrete RLock class that is supported by the platform.
I'm here @versed heath
There's like 10 ways to center a div
Can anyone help me with this code
from turtle import Turtle, Screen
Turtle_Object=Turtle()
Screen_Object=Screen()
# Turtle Settings
Turtle_Object.color("white")
# Screen Settings
Screen_Object.bgcolor("black")
Paradox=set()
def forward():
global Paradox
Paradox.add("Up")
def backward():
global Paradox
Paradox.add("Down")
def right():
global Paradox
Paradox.add("Right")
def left():
global Paradox
Paradox.add("Left")
def forward_discard():
global Paradox
Paradox.discard("Up")
def backward_discard():
global Paradox
Paradox.discard("Down")
def right_discard():
global Paradox
Paradox.discard("Right")
def left_discard():
global Paradox
Paradox.discard("Left")
def listener():
global Paradox
if "Up" in Paradox:
Turtle_Object.fd(10)
if "Down" in Paradox:
Turtle_Object.backward(10)
if "Left" in Paradox:
Turtle_Object.left(10)
if "Right" in Paradox:
Turtle_Object.right(10)
Screen_Object.ontimer(listener,1)
Screen_Object.listen()
Screen_Object.onkey(forward,"Up")
Screen_Object.onkey(backward,"Down")
Screen_Object.onkey(left,"Left")
Screen_Object.onkey(right,"Right")
Screen_Object.onkeyrelease(forward_discard,"Up")
Screen_Object.onkeyrelease(backward_discard,"Down")
Screen_Object.onkeyrelease(left_discard,"Left")
Screen_Object.onkeyrelease(right_discard,"Right")
listener()
Screen_Object.mainloop()
I am trying to make a game enabling simultaneously button pressing like left and up so that it can move left going forward.
Can anyone find issue, its not working
which div are we centring
!stream 455720889196216331
✅ @ebon sandal can now stream until <t:1738957196:f>.
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
@ebon sandal
@wise loom https://pastebin.com/V0NfwQ1M
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
here it is
JSFiddle - Test your JavaScript, CSS, HTML or CoffeeScript online with JSFiddle.
so far, I've only separated the CSS/JS/HTML and organized it into a jsfiddle
@ebon sandal what's your goal? what is the ask?
you can see the balls are moving to the right and out of screen
i see balls bouncing
!stream 455720889196216331
✅ @ebon sandal can now stream until <t:1738958623:f>.
I'd answer if my co-worker wasn't back here
We try
But things just explode with awesome
what now
also
@chilly wolf i finished my project
we gave it to our teacher
begeleider
idk what begeleider is in english
our document had 40 pages of research and 30 of log
getBoundingClientRect
@primal shadow thanks for all the help
Deliveries
i booted into bios, and my cpu was reading 96c with my fans on full speed, rebooted, and then it read 51, but continually dropping until stabilizing at around 38c, never had the happen before, very strange
Had some indian cuisine for the first time today, delicious.
hello
hey don
hello
you waitin' on your project to get graded?
awesome, let me know how it goes
because we also need to present it
yeah no problem
we will also be sending our project to a competition in the netherlands
hopefully ours is unique and good enough to get in the top 10
though the things some of the other make are insane
well hey, you should still be proud of what you made
yes
i learned a lot from this project
i might take on a personal project to make
though not for now
helo
@ivory bane 👋
Sup
@peak nacelle sup
Whoud anyone be interested in https://github.com/pl23/Community-governance
@peak nacelle documentation is so big
can explain in short or like explaining to a dumb student
Make a GitHub issue please. so don't forget
from ultralytics import YOLO
Load a pretrained YOLO model
model = YOLO("yolo11n.pt")
Export the model to NCNN format
model.export(format="ncnn", imgsz=320)
Creates "yolo11n_ncnn_model"
@dry jasper wait a sec
is that rifle up there ?
Can’t talk in voice chat? Check out #voice-verification to get access. The criteria for verifying are specified there.
I see you like Mario, what's your favorite mario and zelda game
I'm doing well, appreciate that man ❤️
hey opal
ok don't hate me for saying this regarding zelda, always the classic ocarina of time, but i think the one i enjoyed the most as in fun was phantom hourglass/spirit tracks
@karmic zodiac@spark torrent👋
hii
Yes. We can.
Nothing wrong with those choices!
sub!
And they are your preferences, so no need to apologize for liking them
They were just fun to zone out and play without stressing
where are ya guys from?
@dark dove @calm smelt @chilly wolf @somber heath @spiral basalt
Legal, yes, for you, if that's as far as it goes, absent other factors. Advisable? Probably not.
I am from australia, in perth actually
🇮🇷
I've always liked Ocarina of Time, but I do love Breath of the Wild as well it is probably my favorite but I get why people who are used to the classic formula would be put off by the new formula they've come up with
I hate this flag though previous was better
Just so everyone knows, i have 0 python experience! I am here to learn and also get advice if python should be the language i should be using to do something, am i allowed to talk about that in this channel ?
Feel free to ask me anytime, and when I can I will do my best to assist!
We talk about Python here. We talk about not Python here.
same here
Feel free, man. We don't have any prejudice against the technology we are using. As I mentioned recently, every technology has its advantages.
so imagine i want a simple ui like this, i've never done this before, but i can do it in html etc
and all i'd like is to be able to push the button ping hmi or ping cisco
and it essentially pings the device
that'd be pretty easy to do in python
you can do this in any language
thats good to hear!
Is pinging something you can do from Javascript or html5?
In browser
Hey Jikky! 😄
@dark dove that is the plan, but I have no idea which would be the easiest good sir, hence I thought i'd ask the guru's
In what field do you aspire to work?
I am a heavy diesel mechanic
Is there something wrong Jikky ?
Cards Against Humanity.
@quartz beacon LOL yeah
@somber heath Can you do that in javascript ? that would be amazing!!
Does anyone know if you can ping in javascript ?
yes via browser
so imagine a html link that says Ping xxx
and it pings that ip address and gives a response in browser via a popup or something that says successful
or time out
@jikky TF2 was always about the sniper map lol
scout bashing heads in
spy was my favourite!
hello world !
Nothing like house
@somber heath Any chance you know would it be better to do in python or javascript like you suggested ?
IMHO it really just depends on how you yourself want to do it. Altough I'm interested what Opal would say
There is a website for playing Cards Against Humanity, yes.
What does this arr command do?
Hm. Maybe Ajax or Java.
In Python?
yes
@somber heathit will have to be able to run on an old windows sesrver i guess, so something that can run in a browswer would be really nice
it can run on chrome/edge etc
I mean, you can do it in Python, but I was just trying to think of something serverless.
What exactly does it do?
@somber heath that sounds perfect
Your question is meaningless without the context in which you have seen it.
arr is a common variable name
thanks bro
I often use it to refer to numpy array instances.
@somber heathi will google about how to do it in ajax i guess, and maybe try get my bearings on it
@chilly wolf what;s the name of your game ?
okey

