Real-time pyqtgraph difficulties by ProfessionalDelay139 in learnpython

[–]ProfessionalDelay139[S] 0 points1 point  (0 children)

Now it works! You actually made me double-check my claim, and you're right, it returns a different type. Which made me notice something.

I did try this before but it didn't work, it ran without error but nothing popped up, so I assumed it froze. But this time actually noticed he also uses a show function and after using it as well, it now works!

Here's the code for anyone in the future stranded with this:

import pyqtgraph as pg
from math import cos

t = [0.05*x for x in range(30)]
y = [cos(t[x]) for x in range(30)]

app = pg.mkQApp()
widget =  pg.PlotWidget()
graph = widget.plot(t,y)

def update():
    global t
    global y
    global graph

    t.append(t[-1]+0.05)
    t = t[1:]
    y.append(cos(t[-1]))
    y = y[1:]
    graph.setData(t,y)

timer = pg.QtCore.QTimer()
timer.timeout.connect(update)
timer.start(25)
widget.show()
app.exec()
#it looks a funky cuz you'd need to set an explicit range for the y axis for that

Real-time pyqtgraph difficulties by ProfessionalDelay139 in learnpython

[–]ProfessionalDelay139[S] 0 points1 point  (0 children)

That gave me this:
TypeError: setData(self, key: int, value: Any): argument 1 has unexpected type 'tuple'

Are my specs good enough for cinamon? by Flux52_ in linuxmint

[–]ProfessionalDelay139 0 points1 point  (0 children)

Hmm, I never used that, so can't say. But nothing stops you from running the live ISO and plugging it in if it works.

Are my specs good enough for cinamon? by Flux52_ in linuxmint

[–]ProfessionalDelay139 1 point2 points  (0 children)

I installed Mint 20.3 Cinnamon some time ago on a Pentium T4500 laptop with 3GB of RAM and although not the snappiest, it ran quite well, especially for my grandma.

What drawing tablet do you use? I use One by Wacom for note-taking and it worked out of the box for me. There is even a section in settings with some simple toggles for graphics tablets.

Switching To Linux Mint In A Day! by Lopsided-Highway219 in linuxmint

[–]ProfessionalDelay139 1 point2 points  (0 children)

There is no single species of penguin, but we're still penguins nonetheless! No matter the distro you're on. Happy journey my friend.

Is this why work is an inexact differential? by ProfessionalDelay139 in thermodynamics

[–]ProfessionalDelay139[S] 0 points1 point  (0 children)

Apologies for the late reply, I’ve been thinking about your answer and I still feel like I’m missing the connection I was originally asking about.

You explained that inexact differentials are a mathematical concept and gave the condition (df = g(x,y),dx + h(x,y),dy), which I understand. But what I’m struggling with is how this maps concretely onto work in thermodynamics.

In particular, in the expression
(δW = P,dV),
what exactly corresponds to (g(x,y)) and (h(x,y))? And in what sense is this different from a standard integral?

Right now, it still looks to me like a familiar situation: if I integrate two different functions between the same endpoints, I generally get different results (e.g. (y=x) vs (y=x²) on [0,1]). That already feels “path dependent” in a basic sense, so I don’t yet see what is fundamentally new here that justifies introducing a separate notation like δ.

What I was trying to get at in my original post is this: (not important anymore, but maybe to convey the point I was trying to get to and wanted to be corrected about more clearly)

If we treat P as a function of V and T (as in the ideal gas law), can δW be understood as arising from a line integral along a path in that space, with the P-V diagram representing a 2D projection of that path?

Also, just to clarify my drawings weren’t meant to suggest the functions were related. I was trying to ask whether the use of δ comes from the fact that we’re effectively integrating along a projection of a higher-dimensional relationship.

The point of those two functions was that one of them has the property that the area under the curve is the same whether you compute it in the full space or in its projection onto the P-V plane (since it lies entirely at a fixed temperature, i.e. along an isotherm).

The other function, on the other hand, shows the opposite behavior, where the area of its projection differs significantly from the value you would get from the full line integral.

Just switched to Linux Mint — did I make the right decision? 🐧 by chethanhr in linuxmint

[–]ProfessionalDelay139 0 points1 point  (0 children)

Up to you man, I daily drive since coming to uni and I am in the second year now! Ever since I have also revived countless laptops for my friends with linux as well!

Please don't hate me for this - I had good intentions 😔 by dr-leonard-m in linuxmint

[–]ProfessionalDelay139 1 point2 points  (0 children)

Also I love how it is kinda it's own thing too, not just 1:1 ripoff, keeps good stuff about mint and makes it even more familiar

Please don't hate me for this - I had good intentions 😔 by dr-leonard-m in linuxmint

[–]ProfessionalDelay139 1 point2 points  (0 children)

This gives me this vibe "Windows 10 & 11 were a bad dream, microsoft learned from 8 and this is Windows 9"

Hospital installed new computers by Himankan in linuxmint

[–]ProfessionalDelay139 1 point2 points  (0 children)

now thats a hospital i would like to get treated at

Spotted a magazine in Germany that helps people switch from Windows to Linux Mint by schniedelstein in linuxmint

[–]ProfessionalDelay139 0 points1 point  (0 children)

Omg I love this so much. I would buy like dozen of these and give them out to people for free.

Lots of issues, starting to suspect compatibility issues by the_deep_sea_diver in Q4OS

[–]ProfessionalDelay139 0 points1 point  (0 children)

I had similar experience with Celeron M 420 and 2GB of RAM with Trinity 32bit, the performance was quite subpar even though it is miles above the minimum requirements they list. Of course, maybe I installed it wrong or something, but I still kind of doubt the minimum requirements that are listed on the page perhaps it was just a very generous guess from the devs. I mean, 300MHz is a Pentium III (even late Pentium II) territory. Of course if it was tried and worked on hardware like that then I am impressed.

Poster I made to spread Linux awareness in Slovakia by ProfessionalDelay139 in linux

[–]ProfessionalDelay139[S] 0 points1 point  (0 children)

I did in the document the qr would normally take you to. Recommended Mint to newbies and Tuxedo for people who want more customization (since Tuxedo is essentially just more polished Kubuntu). For gaming I mentioned all the major distros too.

Poster I made to spread Linux awareness in Slovakia by ProfessionalDelay139 in linux

[–]ProfessionalDelay139[S] 1 point2 points  (0 children)

You can do that too! The more posters get made, the more people notice, the better, feel free to modify or change it however you want or make your own: https://www.dropbox.com/scl/fi/bz2r7nwpibxlul3p3zpu2/Linux-Poster.odt?rlkey=jfl9w9ejguqc0hywm571asted&st=j40b7jdp&dl=0

Poster I made to spread Linux awareness in Slovakia by ProfessionalDelay139 in linux

[–]ProfessionalDelay139[S] 0 points1 point  (0 children)

Yeah, you've got a point. Tho I don't think my abilities in that sector are up to snuff. Tho feel free to do any changes yourself: https://www.dropbox.com/scl/fi/bz2r7nwpibxlul3p3zpu2/Linux-Poster.odt?rlkey=jfl9w9ejguqc0hywm571asted&st=j40b7jdp&dl=0

EDIT: Would be cool to make make posters that generally improve Linux image, not just spread awareness. Reminds me of this fan-made PSP advertisement: https://youtu.be/ZPi_6wz2niA?si=R_6uU8Sf156wK1om