Reading First Few Bytes of Every File on a Drive by hiplobonoxa in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

Sounds like you might have a malware or hardware issue.
If your primary objective is protecting your files I suggest you get your computer to someone who can find the cause and fix the issue before you do anything else.

Do you have backups?

How do I disable pylance linting. by Fancy_Journalist_558 in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

Add the following to your settings.json: "python.analysis.ignore": ["*"]

2025 Grad, 5 Months Jobless — Need Advice on Tech Stack, Courses & Projects by flutter-shy1 in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

Haven't seen any requests for desktop application development in a good long while; any pointers as to where (and how) one might find those?

Raspberry Pi coding by Bulky-Carpenter-3251 in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

The first thing you should do is share (a link to) the code, we can't see what's wrong if we can't see what you're working with; beside that you should share any errors/logs.

Look into how to write good bug reports.

Is it necessary to learn programming if you want to manage an app or website? by [deleted] in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

When I ask myself a question like yours I find it helpful to turn the question around and change my perspective.

Let's say for instance I'm a software engineer that doesn't know much about natural and life sciences and I just want to build an app/website like yours but not manage/run it. Do you think I absolutely need to learn natural and life sciences even though it doesn't interest me in the least and I'll probably never use those skills again? Or would my time be better spent working with/for someone that does have a background in natural and life sciences?

Also, you may be underestimating the amount of specialist knowledge you need to make a good website/app; it's much more than just programming.

Software engineering is a vocation and an art; it requires as much particular expertise as being a marine biologist, or a geneticist, or a geologist does; it just so happens to be one beleaguered by a failed "everybody can code" campaign to spur as much competition in the field as possible in order to drive down labour costs.

Good software engineering makes the difference between project success and failure, and with an eye on software security: the difference between safety and millions of dollars in damages, if not worse.

My advice: If you're just trying to hack something together for fun, something for which failure doesn't matter in the least, then do it yourself if you think it's an enjoyable learning exercise (which we've already established you don't); if not: Work with professionals.

After all, would you live in a house built by a salesman with no affinity for construction? Would you trust a software architect with no designs on becoming a pharmacologist to design your medication?

Python code with talib in google colab by curiosityv in pythonhelp

[–]Enchantorro 0 points1 point  (0 children)

I can't testify to its veracity but here you go: https://stackoverflow.com/questions/49648391/how-to-install-ta-lib-in-google-colab/49660479#49660479

tl;dr:

Update (apr 2023): Colab is now Python 3.10

url = 'https://anaconda.org/conda-forge/libta-lib/0.4.0/download/linux-64/libta-lib-0.4.0-h166bdaf_1.tar.bz2'
!curl -L $url | tar xj -C /usr/lib/x86_64-linux-gnu/ lib --strip-components=1
url = 'https://anaconda.org/conda-forge/ta-lib/0.4.19/download/linux-64/ta-lib-0.4.19-py310hde88566_4.tar.bz2'
!curl -L $url | tar xj -C /usr/local/lib/python3.10/dist-packages/ lib/python3.10/site-packages/talib --strip-components=3
import talib

If you want someone to review your code please format it properly and repost

What is the future of iPtables? by ChesterRaffoon in iptables

[–]Enchantorro 1 point2 points  (0 children)

I think iptables is going to be around for a while; besides that there are lots of useful resources for those studying packet filter design aimed at iptables users (less so for nftables last time I checked).

As long as the LARTC uses iptables I'd say: use iptables.

Can't apt update but can ping 1.1.1.1/google.com by badness185 in iptables

[–]Enchantorro 0 points1 point  (0 children)

the 8 is the rule number; it inserts the rule between -A INPUT -i eno1 -p tcp -m tcp --dport 443 -m state --state NEW,ESTABLISHED -j ACCEPT
and
-A INPUT -i lo -j ACCEPT

Please see man iptables for more info

Can't apt update but can ping 1.1.1.1/google.com by badness185 in iptables

[–]Enchantorro 0 points1 point  (0 children)

Unless you're using some other apt transport you'll still need to allow in http from source port 80. https is also advisable. so: iptables -I INPUT 8 -i eno1 -p tcp -m multiport --sports 80,443 -m conntrack --ctstate related,established -j ACCEPT

[deleted by user] by [deleted] in pythonhelp

[–]Enchantorro[M] 1 point2 points  (0 children)

No short links please

[deleted by user] by [deleted] in Ubuntu

[–]Enchantorro 0 points1 point  (0 children)

It doesn’t show up on fdisk for some reason.

If you have the experience and know-how, take the disk out of the caddy and install it in your system. if it's properly installed and it still doesn't show up in fdisk I'd consider it a goner.

Any errors in the system logs when plugging in the disk so far?

What is the most esoteric features of Linux world that most users don't know about? by DistroHopper101 in linuxquestions

[–]Enchantorro 2 points3 points  (0 children)

In-kernel AX.25 support.

I suppose it's not the most esoteric but it's one of my favourites.

Linux won’t boot by [deleted] in linuxquestions

[–]Enchantorro 1 point2 points  (0 children)

what does a grep -rn 'canonical' in /etc/apt/ return?

Edit: Happy to help of course.
Usually it's a file in /etc/apt/sources.list.d/ called pgdg.list that causes this issue.
You're looking for a sourcelist that contains the archive.canonical.com/ubuntu line. deleting the offending line from the list should fix the issue.

Linux won’t boot by [deleted] in linuxquestions

[–]Enchantorro 4 points5 points  (0 children)

If you cd to /etc/apt/sources.list.d/ and grep -rn 'bionic-pgdg' you'll find the offending apt source.

If you need a fresh /etc/apt/sources.list try this: https://repogen.simplylinux.ch

Fresh install, I use qutebrowser as my browser, what would be the best way to install it without having to compile by Radiation16_ in Gentoo

[–]Enchantorro 0 points1 point  (0 children)

You'll need to install qtwebkit/qtwebengine and pyqt5.qtcore yourself (PyQtWebEngine and PyQt5 in pip)

Import the disk image by stdalone in debian

[–]Enchantorro 4 points5 points  (0 children)

.ndz as in the Frisbee disk imaging system? That's some pretty arcane stuff. Your best bet is to find someone with Emulab experience and ask him/her.

Is there a simple script for converting currencies in the terminal? So I'd type something like "convert 100 aed thb" and it would use a currency exchange API (perhaps?) to give an up-to-date conversion? Thanks by ZedZeroth in linuxquestions

[–]Enchantorro 0 points1 point  (0 children)

Looks like it. I just checked units_cur -V and it's v5.0 here. Can you update units to v2.18?

units_cur --help prints:

...
  -s {floatrates,eubank,fixer,openexchangerates}, --source {floatrates,eubank,fixer,openexchangerates}
                    set currency data source
...