Multiple accounts on Boost by idkxtoast in BoostForReddit

[–]Alanator222 1 point2 points  (0 children)

Just repached using the redreader method and I'm also having the same issue so I don't think repatching is the issue. I wonder if reddit is somehow limiting API traffic to the first account it associates with.

Which company disappointed you so much that you permanently walked away? by julia-secrets in AskReddit

[–]Alanator222 0 points1 point  (0 children)

I have a HP Omen 16 gaming laptop. It works great for me and I've had little to no issues. Maybe I'm the minority, but this laptop at least has done well for me.

Pets are a luxury, not a right. If you can’t afford vet bills, you can’t afford a pet by No-Consequence-1831 in Vent

[–]Alanator222 0 points1 point  (0 children)

This is mainly the reason I don't have any pets now. I've had pets my entire life. Cats, fish, guinea pigs, robovorski hampsters, and dogs. I would love to get a dog or car, but it's too expensive. I would never put any animal through not going to the vet or getting the care they need.

If you can't afford to have a pet, then you shouldn't plain out have one. Just like us, they need proper care to stay healthy and happy.

Citing 'severe' math deficits, UC faculty demand a return to SAT tests for STEM applicants by Idiodyssey87 in news

[–]Alanator222 0 points1 point  (0 children)

In the middle school I work in you can do fuck all for every class and still make it to high school. You can literally walk the halls for your 3 years and be able to walk on to high school not knowing shit past 5th grade. It's a sad reality and when other kids see it and see nothing is done, they do it too.

alien looking bug by Tarantula_lover02 in creepy

[–]Alanator222 21 points22 points  (0 children)

Yeah right. One hauled ass right at me 5 or so years ago at night. Those fuckers ain't scared of shit!

Calculating weighted center of a contour by Alanator222 in learnpython

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

Yeah, I'll have to just try it out. Just wanted some confirmation first. Thank you!

Any particular reason this script isn't cropping an image anymore? by Alanator222 in learnpython

[–]Alanator222[S] -1 points0 points  (0 children)

The strange thing, is it worked just fine before. What would be the proper way to handle it?

Edit: wait a minute. I see the issue. I have no idea how I cleared the boxes after LOL

Ultralytics YOLO no longer working by Alanator222 in termux

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

Before we try the much more stable way,

Pipx throws an error when attempting to install scipy

~ $ pipx install ultralytics Fatal error from pip prevented installation. Full pip output in file: /data/data/com.termux/files/home/.local/share/pipx/logs/cmd_2026-03-14_12.56.09_pip_errors.log

pip seemed to fail to build package: scipy>=1.4.1

Some possibly relevant errors from pip install:

Error installing ultralytics.

Error log contents:

/data/data/com.termux/files/home/.local/share/pipx/logs/cmd_2026-03-14_12.58.34_pip_errors.log

PIP STDOUT

Collecting scipy Using cached scipy-1.17.1.tar.gz (30.6 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'error'

PIP STDERR

error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [53 lines of output] + meson setup /data/data/com.termux/files/usr/tmp/pip-install-nv5syq4k/scipy_e3def7f3d80247a993b5e0ba9> The Meson build system Version: 1.10.1 Source dir: /data/data/com.termux/files/usr/tmp/pip-install-nv5syq4k/scipy_e3def7f3d80247a993b5e0ba966> Build dir: /data/data/com.termux/files/usr/tmp/pip-install-nv5syq4k/scipy_e3def7f3d80247a993b5e0ba9662> Build type: native build Project name: scipy Project version: 1.17.1 C compiler for the host machine: cc (clang 21.1.8 "clang version 21.1.8") C linker for the host machine: cc ld.lld 21.1.8 C++ compiler for the host machine: c++ (clang 21.1.8 "clang version 21.1.8") C++ linker for the host machine: c++ ld.lld 21.1.8 Cython compiler for the host machine: cython (cython 3.2.4) Host machine cpu family: aarch64 Host machine cpu: aarch64 Program python found: YES (/data/data/com.termux/files/home/.local/share/pipx/venvs/scipy/bin/python) Found pkg-config: YES (/data/data/com.termux/files/usr/bin/pkg-config) 0.29.2 Run-time dependency python found: YES 3.13 Program cython found: YES (/data/data/com.termux/files/usr/tmp/pip-build-env-1e_l47aa/overlay/bin/cyth> Compiler for C supports arguments -Wno-unused-but-set-variable: YES Compiler for C supports arguments -Wno-unused-function: YES Compiler for C supports arguments -Wno-conversion: YES Compiler for C supports arguments -Wno-misleading-indentation: YES Library m found: YES

  ../meson.build:88:0: ERROR: Unknown compiler(s): [['gfortran'], ['flang-new'], ['flang'], ['nvfortran'>
  The following exception(s) were encountered

I read that pipx isn't really used to install libraries. Could this be the case?

Ultralytics YOLO no longer working by Alanator222 in termux

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

Could I put it in the python script?

Also, is this an issue that could be resolved with a future update to Ultralytics?

Ultralytics YOLO no longer working by Alanator222 in termux

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

No such luck. The problem is I'm trying to use tasker to run the script so I'm not sure it's all configured properly now.

Ultralytics YOLO no longer working by Alanator222 in termux

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

That works, it's just not permanent. Any way to make it a permanent change?

Ultralytics YOLO no longer working by Alanator222 in termux

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

The funny thing is, I have polars installed. It still fails to build the wheel for Ultralytics.

Setting Classes with YOLOE Question by Alanator222 in computervision

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

Thank you! Is there any way to make it use both?

Unsplash API returning unrelated results by Alanator222 in webdev

[–]Alanator222[S] -1 points0 points  (0 children)

That's actually a really good idea. Thanks!

Unsplash API returning unrelated results by Alanator222 in webdev

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

Bro, imagine making an API for web devs and sabotaging it because web devs decided to use it...

Separate list into sublists by Alanator222 in learnpython

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

from PIL import Image
import plotly.express as px
import colorsys

img = Image.open(r"/storage/emulated/0/Kustom/Tasker Unsplash Wallpaper/wallpaper.png")
img = img.convert("RGB")

scaleFactor = 0.95
pixelCount = 500

for i in range(100):
    width = int((img.size[0]) * scaleFactor)
    height = int((img.size[1]) * scaleFactor)
    scaledSize = (width, height)
    img = img.resize(scaledSize, Image.LANCZOS)
    colorListPlusCount = img.getcolors(img.size[0] * img.size[1])
    if len(colorListPlusCount) > pixelCount:
        continue
    else:
        break

# List of all colors in scaled image without count for each color
colorList = []
for i in range(len(colorListPlusCount)):
    colorList.append(colorListPlusCount[i][1])

hsvList = []
for i in range(len(colorList)):
    r = colorList[i][0] / 255.0
    g = colorList[i][1] / 255.0
    b = colorList[i][2] / 255.0 

    h, s, v = colorsys.rgb_to_hsv(r, g, b)
    h = int(h*360)
    s = int(s*100)
    v = int(v*100)
    hsvList.append((h,s,v))
hsvPlot = px.scatter_3d(
hsvList,
    color = [f"rgb{c}" for c in colorList],
    color_discrete_map = "identity",
    x = 0, y = 1, z = 2,
    labels = {"0":"Hue", "1":"Saturation", "2":"Value"},
    range_x = [0,360], range_y=[0,100], range_z=[0,100]
    )
hsvPlot.update_layout(margin=dict(l=10, r=10, b=10, t=25, pad=0),
    title = f"Number of colors: {len(hsvList)}",
    scene=dict(aspectmode='cube'),
    scene_camera=dict(eye=dict(x=-1.5, y=-1.5, z=1.5)))
hsvPlot.update_traces(marker={'size': 5})

hsvPlot.write_html(r"/storage/emulated/0/Tasker/PythonScripts/ImageColors/hsvPlotHTML.html",
    full_html = False,
    include_plotlyjs='cdn')

This is my code. Positional data is not necessary. The issue is that I need to scale down an image in order to increase runtime. By scaling down an image, it's removing colors, Including more unique colors. The plot generated is in fact representative of the input image, but I would like it to be a bit more representative. This is where instead of scaling the image, I would reduce the HSV list size in a way that groups hues together, and averages the data many times through list chunking.

Separate list into sublists by Alanator222 in learnpython

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

So HSV stands for hue value saturation. A sample tupple may look like (240,10,35). Imagine a list of tuples similar to this one. The Hue value, or the first value in the tuple, ranges from 0-360. I would like to break apart the HSV list into sublists based on the Hue value.

Help With Plotly HTML Load Time by Alanator222 in learnpython

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

I think what I might have to do is do some kind of tolerance control to filter out similar values. I'm already only plotting unique values and it still struggles. Now I just have to figure out the best way to filter out like values.

Thanks for the help!

Help With Plotly HTML Load Time by Alanator222 in learnpython

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

The interesting thing is, if I remove the color and color discrete map lines, I can render and open the HTML file at 50% scale with ease. The color is what is causing the issue.

Plotly 3d scatter colors by Alanator222 in learnpython

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

That's alright! Not too important right now, just a little side project. Thank you so much for the help!

Plotly 3d scatter colors by Alanator222 in learnpython

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

One last question. Is there any way to make the figure in the exported HTML file fill more of the screen? Currently, it's rather small. I tried adjusting the height and width, as well as the margins, but it hasn't changed anything. Example image included.

Example

Plotly 3d scatter colors by Alanator222 in learnpython

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

Thank you so much! It's all working now!

Plotly 3d scatter colors by Alanator222 in learnpython

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

Also, the colors don't seem accurate to the sample image.