Bronco1676

@[email protected]

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Bronco1676,

en.wikipedia.org/wiki/Metre

Meter is seemingly the american spelling, it’s also spelled meter in many european countries e.g. germany, netherlands

Bronco1676,

Is there a reason to use this instead of the builtin functionality?

Bronco1676,

Why would your timezone change while using a VPN?

Bronco1676,

Sure, but I really like to look at this when I’m deciding on wether an open source project is worth to use, if you can see that the author is relatively active.

Bronco1676, (edited )

This is the code (Github link):


<span style="font-weight:bold;color:#a71d5d;">class </span><span style="color:#0086b3;">Quitter</span><span style="color:#323232;">(</span><span style="color:#0086b3;">object</span><span style="color:#323232;">):
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#62a35c;">__init__</span><span style="color:#323232;">(self, name, eof):
</span><span style="color:#323232;">        self.name </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">name
</span><span style="color:#323232;">        self.eof </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">eof
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#62a35c;">__repr__</span><span style="color:#323232;">(self):
</span><span style="color:#323232;">        </span><span style="font-weight:bold;color:#a71d5d;">return </span><span style="color:#183691;">'Use </span><span style="color:#0086b3;">%s</span><span style="color:#183691;">() or </span><span style="color:#0086b3;">%s</span><span style="color:#183691;"> to exit' </span><span style="font-weight:bold;color:#a71d5d;">% </span><span style="color:#323232;">(self.name, self.eof)
</span><span style="color:#323232;">    </span><span style="font-weight:bold;color:#a71d5d;">def </span><span style="font-weight:bold;color:#62a35c;">__call__</span><span style="color:#323232;">(self, code</span><span style="font-weight:bold;color:#a71d5d;">=</span><span style="color:#0086b3;">None</span><span style="color:#323232;">):
</span><span style="color:#323232;">        </span><span style="font-style:italic;color:#969896;"># Shells like IDLE catch the SystemExit, but listen when their
</span><span style="color:#323232;">        </span><span style="font-style:italic;color:#969896;"># stdin wrapper is closed.
</span><span style="color:#323232;">        </span><span style="font-weight:bold;color:#a71d5d;">try</span><span style="color:#323232;">:
</span><span style="color:#323232;">            sys.stdin.close()
</span><span style="color:#323232;">        </span><span style="font-weight:bold;color:#a71d5d;">except</span><span style="color:#323232;">:
</span><span style="color:#323232;">            </span><span style="font-weight:bold;color:#a71d5d;">pass
</span><span style="color:#323232;">        </span><span style="font-weight:bold;color:#a71d5d;">raise </span><span style="color:#0086b3;">SystemExit</span><span style="color:#323232;">(code)
</span>

What happens is that the python repl calls __repr__ automatically on each variable/statement that you type into the repl (except assignments e.g. x = 1). But this basically only happens in the repl. So “executing” only exit wouldn’t work in a python script as it is not calling __repr__ automatically, so better you learn how to do it right than using just exit in your python scripts and scratching your head why it works in the repl but not in your code.

Bronco1676,

If you have a variable called exit you’ve overwritten the function in that scope, and won’t be able to execute it.

e.g.


<span style="color:#323232;">>>> exit=1
</span><span style="color:#323232;">>>> exit()
</span><span style="color:#323232;">Traceback (most recent call last):
</span><span style="color:#323232;">  File "<stdin>", line 1, in <module>
</span><span style="color:#323232;">TypeError: 'int' object is not callable
</span><span style="color:#323232;">>>>
</span>
Bronco1676,

There is also try.cloudflare.comalso no account needed

Bronco1676,

I can’t try it right now, but even in their example they used another port than 80: developers.cloudflare.com/…/trycloudflare/

cloudflared tunnel --url http://localhost:8080

You must pick a point in human history before the 1950s to be spend the rest of your life in. What era and place would you choose?

You would still have the same age, gender, personality, skin color, etc. and you would be able to speak at least one local language and would know basic information of the era and place. Your family, social standing, and such would be randomly picked.

Bronco1676,

You didn’t specify the calendar used 🤓, so I’ll go to the year 1401 in the hijri calendar (1980 in the gregorian calendar)

Bronco1676,

Don’t know how techy you are, but I’ve had some luck with using pandas for stuff like this, though I don’t know how good it works on wikipedia.

pandas.pydata.org/docs/…/pandas.read_html.html

You can either do the filtering directly on the resulting pandas datframes or export it to whatever format you like including excel or csv

…pydata.org/…/pandas.DataFrame.to_excel.html

pandas.pydata.org/…/pandas.DataFrame.to_csv.html

Bronco1676,

Different take: If I generate an image through a random number generator, should this be copyrightable?

Bronco1676,

Sounds good to me. So AI generated image should also be copyrightable. As it’s basically a random number generator.

Bronco1676,

Yeah, basically if you used one of these generators to create an image, you are the creator.

Bronco1676,

Running ncdu on it would’ve been cool to see.

Bronco1676,

You should run yay -Sc from time to time. This cleans a) your pacman cache (which is normally done by executing pacman -Sc) b) your AUR build cache, which is what’s taking up 160GB. But this one seems rather unusual, I use paru (which also has the command paru -Sc), so I can’t really tell if this is normal with yay.

The command also asks you for every directory if you want to delete it or not, so it’s completely save to run that command.

Bronco1676,

Indeed, yay utilizes the AUR, which essentially serves as a Git repository for each package. These repositories typically include a PKGBUILD file and a .SRCINFO file, along with possible additional files like patches, desktop, or service files.

For example, take a look at IntelliJ Ultimate: [aur.archlinux.org/cgit/aur.git/tree/?h=intellij-i…]. It contains the .SRCINFO and PKGBUILD, as well as a .desktop file. These files themselves do not occupy much space.

The PKGBUILD specifies the sources for dependencies. For instance:


<span style="color:#323232;">source=("https://download.jetbrains.com/idea/ideaIU-$pkgver.tar.gz"
</span><span style="color:#323232;">        "jetbrains-idea.desktop")
</span>

The PKGBUILD is essentially a Bash script with predefined functions and variables. You can learn more about it here: [wiki.archlinux.org/title/PKGBUILD].

This script primarily downloads and extracts the tar file. In this specific case, it only relocates the files to their intended installation locations, like moving the desktop file to /usr/share/applications.

With such packages, there’s a possibility of wasting significant space since the tar file is downloaded and possibly retained in the cache.

However, other packages, especially those compiled from source, usually involve Git clones. These clones bring the Git repository into a subdirectory of the already cloned AUR package Git repo. Some might also have source tarballs. These types of packages generally do not consume much space in the cache, as they are often just text files, like C source code or Python scripts. These packages frequently rely on external libraries and packages, which are not included in this package’s cache.

While binary packages often bundle all necessary libraries and other components in their source tarballs.

The AUR cache is mostly beneficial if you’re rebuilding the same version or can reuse components from a previous version. For example, a package might depend on a large, static file that doesn’t change often.

In Paru, I’ve enabled the “CleanAfter” option to prevent my cache from overflowing. Given my relatively fast internet speed, redownloading large files isn’t a major concern for me.

Bronco1676,

Qobuz is paying even more $0.04390

community.roonlabs.com/t/…/125013

Bronco1676,

Probably because they sell you the FLAC files directly, too. But you are right, it’s a high payout, that can’t be really sustainable.

e.g. https://lemmy.ml/pictrs/image/412e67ed-035e-4e2d-aeea-7e4b03611ea7.pnghttps://lemmy.ml/pictrs/image/0d64c1fc-5a3d-40d3-a4e6-a77eff411dac.png

Bronco1676,

This seems to be the original source: thetrichordist.com/…/2019-2020-streaming-price-bi…Note that this is sorted by market share and not by the payout.

Bronco1676,

Definitely lost in translation. They are a French company. And if I set the interface to french, it says “Zero DRM”.

https://lemmy.ml/pictrs/image/59bb119e-a136-47ec-8a35-b928f7995b11.png

But they have so many blog articles where you can feel that it was written in French but machine translated.

Bronco1676,

Best (for me) is ArchLinux, it’s never in the way and has the best wiki at wiki.archlinux.org, which is also a great resource for other distros.

Worst are probably Ubuntu and derivatives.

Bronco1676,

Fav berries in no particular order are raspberries, blackberries, cranberries and blueberries

Bronco1676,

It’s delivered quietly, so that should be okay

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • KamenRider
  • TheResearchGuardian
  • KbinCafe
  • Socialism
  • oklahoma
  • SuperSentai
  • feritale
  • All magazines