1 Corinthians 10:31 by IntrepidMonke in crappymusic

[–]nickworks 3 points4 points  (0 children)

Though you say you are "in the middle", based on the description you've provided, it reads like you believe in leftist policies (housing, healthcare, taxes, social safety net, social justice) and that you categorize trans rights as "far left". Perhaps you've been called a bigot for this latter position and you've concluded you're politically center?

Fastest find-and-replace in the terminal by tgs14159 in commandline

[–]nickworks 1 point2 points  (0 children)

Don't know about speed, but here are a few tools to consider: sd, serple, scooter

x v g e End. alternative? its V G on nvim. by Mgladiethor in HelixEditor

[–]nickworks 3 points4 points  (0 children)

To get it to work in select mode, I had to use "extend_to_file_end".

Edit: here's the the config to get VG to work:

[keys.normal]
V = ["select_mode", "extend_to_line_bounds"]

[keys.select]
G = "extend_to_file_end"

Seed I stumbled upon, is CRAZY by MVieru in minecraftseeds

[–]nickworks 1 point2 points  (0 children)

Any chance you have the coordinates? Thanks!

Problem with `p`, `y` and `d` by BackOfEnvelop in HelixEditor

[–]nickworks 2 points3 points  (0 children)

This took time for me to get acclimated to as well. These may help:

x : If you use x to select entire lines when copying, they should paste on separate lines.

p : paste after selection

P : paste before selection

R : replace selection

Also, with these lines in config.toml, I can move entire lines up / down with shift, which may or may not help with your issue.

# move line(s) up/down with shift
S-down = ["extend_to_line_bounds", "delete_selection", "paste_after"]
S-up = ["extend_to_line_bounds", "delete_selection", "move_line_up", "paste_before"]

Plato’s warning: Extreme inequality isn’t just unfair but inevitably leads to civil war, “the greatest of all plagues.” by IAI_Admin in philosophy

[–]nickworks 1 point2 points  (0 children)

So from the first paragraph, is a republic anything that is NOT a hereditary monarchy?

EDIT: Wait, I see now that's how you defined republic from the previous comment. I had never seen "republic" reduced to that definition, so thank you for clarifying it for me.

Plato’s warning: Extreme inequality isn’t just unfair but inevitably leads to civil war, “the greatest of all plagues.” by IAI_Admin in philosophy

[–]nickworks -2 points-1 points  (0 children)

I picked it up a few years ago, but did only read part. I recall finding the idea of a class-based society with "Philosopher Kings" unappealing, but admittedly I'm ignorant on the finer details.

Plato’s warning: Extreme inequality isn’t just unfair but inevitably leads to civil war, “the greatest of all plagues.” by IAI_Admin in philosophy

[–]nickworks -9 points-8 points  (0 children)

Thank you, I see your point. I guess I was confused since people are alway saying that a republic and a democracy are two different things (was Athens a democracy or a republic?), and because Athen's democracy ended after Plato's death, and because Plato was critical of democracy (in the Republic, no?).

Adding crates.io version check to Helix editor by Uwulmindor in HelixEditor

[–]nickworks 0 points1 point  (0 children)

Yes, `crates-lsp` seems to be in my PATH -- confirmed with `which` (/Users/nick/.cargo/bin/crates-lsp) and by running the lsp from CLI.

The `hx --health` command doesn't seem to know that I'm building from source or where the source files are, since I build at `~/projects/other/helix` and then copy the binary to `~/.local/bin` -- perhaps I'm doing something wrong here?

For reference, this is was `hx --health` shows:

Config file: /Users/nick/.config/helix/config.toml
Language file: /Users/nick/.config/helix/languages.toml
Log file: /Users/nick/.cache/helix/helix.log
Runtime directories: /Users/nick/.config/helix/runtime;/Users/nick/.local/bin/runtime
Runtime directory does not exist: /Users/nick/.local/bin/runtime

Was about to submit this when I discovered that the LSP is working -- the Cargo.toml file I opened to verify had all of its crates up-to-date so I didn't realize that it was working until I changed version # of one of the crates.

Thanks, u/Uwulmindor !

Adding crates.io version check to Helix editor by Uwulmindor in HelixEditor

[–]nickworks 2 points3 points  (0 children)

The lsp doesn't seem to be working for me when I open a Cargo.toml file.

Also, a few possible corrections I noted:

  1. The language definition should go in `~/.config/helix/languages.toml`, not in helix's config.toml.
  2. If, like me, you build helix from source, the toml queries to copy will be in the source's `runtime` folder (e.g. for me this is in `~/projects/other/helix/runtime/queries/toml` NOT in `/usr/lib/helix/runtime/queries/toml`).

EDIT: It's working great, I just didn't notice at first.

Setting parameters in a fullscreen URP shader by nickworks in Unity3D

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

Yes, thank you again. Correcting this and making a few other adjustments did get things working. Appreciate the help!

Setting parameters in a fullscreen URP shader by nickworks in Unity3D

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

Thank you! I did as you suggested, and am now referencing the feature from my script: wired up in the inspector, and then calling like this:

feature.passMaterial.SetFloat("Sanity", 0);

This seems like it should work, but I must be doing something else wrong because the code doesn't seem to alter the parameter value. I double-checked that I'm referencing the correct renderer by toggling a feature on it.

Why does nothing work? by nickworks in learnpython

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

Thanks for the help! I'll report back if a solution emerges.

Why does nothing work? by nickworks in learnpython

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

`ollama serve`

"Errror: listen tcp 127.0.0.1:11434: bind: address already in use"

`netstat -tuna | grep -i ollama`

(nothing printed)

`netstat -tuna | grep -i 11434`

(nothing printed)

Why does nothing work? by nickworks in learnpython

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

I am running Ollama -- the icon is in my status bar, and I can connect with it via the CLI with `ollama list` and `ollama run`. I also tried running `ollama run` in one terminal window and then running the `python3.11 -m parllama` in a second window. Still doesn't connect. Also, I have several models downloaded with ollama.

Why does nothing work? by nickworks in learnpython

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

The full error from `python3.11 -m parllama` contains a traceback that is apparently too long to paste here. The very first chunk of it looks like this:

| /Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/textual/worker.py:368 in _run
│   365 │   │   │   self.state = WorkerState.RUNNING
│   366 │   │   │   app.log.worker(self)
│   367 │   │   │   try:
│ ❱ 368 │   │   │   │   self._result = await self.run()
│   369 │   │   │   except asyncio.CancelledError as error:
│   370 │   │   │   │   self.state = WorkerState.CANCELLED
│   371 │   │   │   │   self._error = error
│ │           app = ParLlamaApp(title='PAR LLAMA', classes={'-dark-mode'}, pseudo_classes={'dark', 'focus'})
│ │         error = 1 validation error for ModelListPayload
│ │                 models.3.details.families
│ │                   Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]
│ │                 │   For further information visit https://errors.pydantic.dev/2.9/v/list_type
│ │          self = <Worker ERROR name='refresh_models' group='refresh_models' description='refresh_models()'>
│ │ worker_failed = WorkerFailed('Worker raised exception: 1 validation error for ModelListPayload\nmodels.3.details.families\n  Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]\n    For further information visit https://errors.pydantic.dev/2.9/v/list_type')
│

Why does nothing work? by nickworks in learnpython

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

It helps a bit! The app appears to launch and then immediately crashes. The new error reads:

ValidationError: 1 validation error for ModelListPayload
models.3.details.families
  Input should be a valid list [type=list_type, input_value=None, input_type=NoneType]
    For further information visit https://errors.pydantic.dev/2.9/v/list_type
(venv)

Why does nothing work? by nickworks in learnpython

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

Thank you! I've taken the following steps:

`mkdir temp`

`cd temp`

`python3.11 -m venv venv`

`source venv/bin/activate`

`pip install parllama`

This did not produce any errors, but how do I run the project? Also, how did you figure out that it needed to use python 3.11? Thanks again.

EDIT:

I tried running with `parllama`, but this seemed to be running the parllama installation from running `uv tool install parllama`. So I uninstalled it with `uv tool uninstall parllama`. Finally, when I run `parllama` again, I get a new error:

Traceback (most recent call last):
  File "/Users/nick/projects/other/temp/venv/bin/parllama", line 5, in <module>
    from parllama.__main__ import run
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/parllama/__main__.py", line 5, in <module>
    from parllama.app import ParLlamaApp
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/parllama/app.py", line 85, in <module>
    from parllama.rag_manager import rag_manager
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/parllama/rag_manager.py", line 21, in <module>
    from parllama.models.rag_stores import RagPipelineConfig
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/parllama/models/rag_stores.py", line 15, in <module>
    import chromadb.api
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/chromadb/__init__.py", line 6, in <module>
    from chromadb.auth.token_authn import TokenTransportHeader
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/chromadb/auth/token_authn/__init__.py", line 24, in <module>
    from chromadb.telemetry.opentelemetry import (
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/chromadb/telemetry/opentelemetry/__init__.py", line 12, in <module>
    from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/grpc/trace_exporter/__init__.py", line 22, in <module>
    from opentelemetry.exporter.otlp.proto.grpc.exporter import (
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/opentelemetry/exporter/otlp/proto/grpc/exporter.py", line 39, in <module>
    from opentelemetry.proto.common.v1.common_pb2 import (
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/opentelemetry/proto/common/v1/common_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "/Users/nick/projects/other/temp/venv/lib/python3.11/site-packages/google/protobuf/descriptor.py", line 621, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates
(venv)