Installation error ?

Hi,
I try to install ouimeaux on raspberry and it's what i get:
pi@TODpi ~ $ sudo pip install ouimeaux
Requirement already satisfied (use --upgrade to upgrade): ouimeaux in /usr/local/lib/python3.2/dist-packages/ouimeaux-0.7.9_r0-py3.2.egg
Requirement already satisfied (use --upgrade to upgrade): gevent>=1.0 in /usr/local/lib/python3.2/dist-packages (from ouimeaux)Requirement already satisfied (use --upgrade to upgrade): requests>=2.3.0 in /usr/local/lib/python3.2/dist-packages (from ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): pyyaml in /usr/local/lib/python3.2/dist-packages/PyYAML-3.11-py3.2-linux-armv7l.egg (from ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): pysignals in /usr/local/lib/python3.2/dist-packages/pysignals-0.1.2-py3.2.egg (from ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): flask-restful in /usr/local/lib/python3.2/dist-packages/Flask_RESTful-0.3.4-py3.2.egg (from ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): gevent-socketio in /usr/local/lib/python3.2/dist-packages/gevent_socketio-0.3.6-py3.2.egg (from ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): greenlet>=0.4.7 in /usr/local/lib/python3.2/dist-packages (from gevent>=1.0->ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): aniso8601>=0.82 in /usr/local/lib/python3.2/dist-packages (from flask-restful->ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): Flask>=0.8 in /usr/local/lib/python3.2/dist-packages (from flask-restful->ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): six>=1.3.0 in /usr/local/lib/python3.2/dist-packages (from flask-restful->ouimeaux)
Requirement already satisfied (use --upgrade to upgrade): pytz in /usr/local/lib/python3.2/dist-packages (from flask-restful->ouimeaux)
Collecting gevent-websocket (from gevent-socketio->ouimeaux)
Using cached gevent-websocket-0.9.5.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 20, in
File "/tmp/pip-build-ali7kk/gevent-websocket/setup.py", line 4, in
version = import('geventwebsocket').get_version()
File "geventwebsocket/init.py", line 18, in
from .server import WebSocketServer
File "geventwebsocket/server.py", line 1, in
from gevent.pywsgi import WSGIServer
File "/usr/local/lib/python3.2/dist-packages/gevent/init.py", line 41, in
from gevent.hub import get_hub, iwait, wait
File "/usr/local/lib/python3.2/dist-packages/gevent/hub.py", line 289
except Exception, ex:
^
SyntaxError: invalid syntax
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-ali7kk/gevent-websocket
What's wrong ?

Invalid syntax pointing at "," after Exception

You are attempting to use python 3, which is not supported yet. Try Python 2.x.

How can i choose to use python 2.x ?

The "pip" you're using is installed into a python3 environment. Install
python 2 using the package manager for your distro, then install pip into
that environment (you may already have it if it's python 2.7.9 or higher),
then use that pip to install ouimeaux.
On Wed, Dec 2, 2015 at 1:59 PM todely<EMAIL_ADDRESS>wrote:

How can i choose to use python 2.x ?
—
Reply to this email directly or view it on GitHub
https://github.com/iancmcc/ouimeaux/issues/106#issuecomment-161415417.

I have try easy_install-3.2 ouimeaux and it works like a charm
Thanks for your help


Geschäftskundenversand-API 3.0 - shipmentNumber

Hey,
this Project is currently not for Version 3, also see here: https://github.com/Petschko/dhl-php-sdk/issues/64


Issue with lost+found dir and mounting parent folder (/var/lib/postgres) as volume

According to this: https://www.postgresql.org/message-id/12168.1312921709%40sss.pgh.pa.us
it is not possible to mount "data" dir directly as for example longhorn volume in kubernetes so I should mount the parent folder, but according to
https://github.com/docker-library/postgres/blob/master/14/alpine/Dockerfile
line 155 VOLUME /var/lib/postgresql/data
it does not work to mount it, because then it only contains an empty "data" folder (next to the lost+found one) and the actuall database is then mounted separately into an anonymous volume and therefore lost on container restart.
So what is the solution?

Ah found explanation on dockerhub:
PGDATA
This optional variable can be used to define another location - like a subdirectory - for the database files. The default is /var/lib/postgresql/data. If the data volume you're using is a filesystem mountpoint (like with GCE persistent disks) or remote folder that cannot be chowned to the postgres user (like some NFS mounts), Postgres initdb recommends a subdirectory be created to contain the data.
For example:
$ docker run -d
--name some-postgres
-e POSTGRES_PASSWORD=mysecretpassword
-e PGDATA=/var/lib/postgresql/data/pgdata
-v /custom/mount:/var/lib/postgresql/data
postgres
This is an environment variable that is not Docker specific. Because the variable is used by the postgres server binary (see the PostgreSQL docs), the entrypoint script takes it into account.


KinematicBody keeps "jumping" with move_and_slide

Godot 3 master 18e453baf
Issue description:
Using move_and_slide a KinematicBody will make it jump constantly even at the smallest separation margin, and a bit bigger safe margins do not seem to be working right, like if small are still too big.
This affects is_on_floor and also is noticeable on the visual nodes attached to the body (like meshes).
Steps to reproduce:
Use move_and_slide and watch the body little jumps.
Or use is_on_floor and look at the intermittent true/false values.

Link to minimal example project:
Can be seen in the Kinematic Character 3D demo.

I am getting the boolean flickering without the jumping. Maybe its because I'm using a capsule collider and not a cube, but when asked to print AIR or FLOOR based on KinematicBody's return value of is_on_floor(), I get output such as:
    AIR
    FLOOR
    AIR
    FLOOR
    AIR

There are points on ramps and when falling where I get a chain of the same value back again, but in an idle state I too get this flickering of the function is_on_floor()

After some fiddling around I had the idea to check the potential of falling for two frames. If it thinks the player can fall it will start applying gravity. This small check before I apply gravity solved my issue, as well as let me detect ramps for stairs, so I stop applying gravity so he doesn't slide.
I know this isn't the optimal fix but I have yet to dive into the physics portion of the engine.
Here is my snippet that solved things for me:
if not is_on_floor() and not test_move(global_transform, Vector3(0,GRAVITY*delta*2, 0)):
	    velocity.y += GRAVITY * delta
	    print("AIR")
    else:
	    print("FLOOR")

I think the issue is related to the separation, the same can be made with a big margin (in relation to the body and speeds) on 2D, but 3D seems to have bad separation values (maybe too big for the 3D units).

Yeah I boiled it down to "the physics engine must be separating the bodies for one frame; in turn being enough to be off the floor".
Is the intention of is_on_floor() to detect if it hit the floor this frame? Or should it be is this body standing on a floor. I feel like intuition points to the latter.

Well, I have thought that the safe margin values were caped at 0.001 minimum (like in the inspector), the problem gets solved if manually set the safe margin to 0.0001 (it does not have a setter so I had to use set).
@reduz could be possible to increase the minimum (allow smaller) values for the inspector? in case the extreme low values needed for this are not related to a separation bug.

I ended up just doing a check based on the gravity I was applying, I know its not the best but it also fixed my issues. I did if test_move(GRAVITY * delta * 1.25) and only applying gravity if it will hit nothing 1.25 frames in the future. It also fixed my ramps because now I no longer apply gravity when on any surface I would hit going downwards. Good for my game so far, but I can see issues of doing this in more complex scenarios with more bodies in the scene.

probably it's worth to recheck now (#12641)

Weird, after bullet some of the issues I've been having have "reversed".
I was getting this popping effect on the Plane shape previous to bullet, so I switched my prototype to Cube collisions and that stopped the jumping. Now after bullet I get popping on the Cube collisions and perfect collisions against the Plane. Hmm. I'm sure this will be buffed out eventually, as changing the safe margin didn't have much effect either.
However this could just be old code not wanting to port, but I thought that there shouldn't have to have been changes on the dev side. I'll clean it up and try to discover more this week.

There is no noticeable bouncing using bullet with any separation but there is a weird issue.
Using the Kinematic Character demo with bullet and a safe margin of 1 on the kinematic, I have noticed some bouncing on the initial contacts after falling (some false after true on is_on_floor ) , the strange thing (tm) is higher and lower separations work as expected.
I wonder if big safe margin with bullet does something too, with godot physics, high margins make bodies literally jump at low speeds but bullet keeps the bodies in place.
cc @AndreaCatania

Yeah I was going to say that I noticed some issues on the GridMap mostly, when walking over transitions made my walking man jump. I'm sure this is an easy fix for someone who understands bullet.

Jumping in between meshes may be another issue, if you can make a simple working sample project with that problem open another one (if you think is not the same as this, of course).

I'll check it soon
On Nov 6, 2017 12:04 AM, "eon-s"<EMAIL_ADDRESS>wrote:

Jumping in between meshes may be another issue, if you can make a simple
working sample project with that problem open another one (if you think is
not the same as this, of course).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/11520#issuecomment-342013439,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AH9MRzRbeonNbv6WoM2s0ANhPvQ4rMJwks5szj8FgaJpZM4PhsBr
.

Something common for godot and bullet, while hitting a wall AND floor with a good separation, it does a true-false on floor.
Looks like sliding is clearing the floor hit when hitting wall when both should be true.
cc'ing @randomshaper too.

i have the same issue on 2D physics both with move_and_slide and move_and_collide :/

I've fixed it, Now I'm trying to improve the code.

let me guys remind you that safe margin should be a really small value,
like 0.001 which is invisible
On Mon, Nov 6, 2017 at 1:21 PM, Mariano Javier Suligoy <
<EMAIL_ADDRESS>wrote:

i have the same issue on 2D physics both with move_and_slide and
move_and_collide :/
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/godotengine/godot/issues/11520#issuecomment-342201161,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF-Z2x49H4thfZ3Y2c_J-jbpVbPrqS_pks5szzIVgaJpZM4PhsBr
.

Fixed: #12713
Now the kinematic body should be perfectly stick with floor, even with margin equal to 1.

(closed to quickly, pr is not merged yet)


Charm in error state after configuring redfish creds

Deploy ubuntu, hardware-observer and grafana-agent on a machine with redfish.
hardware-observer revision is 48
juju deploy ubuntu
juju deploy hardware-observer --channel edge
juju deploy grafana-agent

juju relate ubuntu grafana-agent
juju relate ubuntu hardware-observer

# status blocked due to missing storcli resource
juju attach-resource hardware-observer storcli-deb=./storcli.deb

Here are the juju debug logs
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log hw_white_list: [<HWTool.STORCLI: 'storcli'>, <HWTool.IPMI_SENSOR: 'ipmi_sensor'>, <HWTool.IPMI_SEL: 'ipmi_sel'>, <HWTool.IPMI_DCMI: 'ipmi_dcmi'>, <HWTool.REDFISH: 'redfish'>]
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Skip fetch tool: HWTool.PERCCLI
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Skip fetch tool: HWTool.SAS2IRCU
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Skip fetch tool: HWTool.SAS3IRCU
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Install deb package HWTool.STORCLI from /var/lib/juju/agents/unit-hardware-observer-2/resources/storcli.deb success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Strategy <hw_tools.StorCLIStrategy object at 0x7fd9a30e4e20> install success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Strategy <hw_tools.IPMISELStrategy object at 0x7fd9a30e5120> install success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Strategy <hw_tools.IPMIDCMIStrategy object at 0x7fd9a30e5fc0> install success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Strategy <hw_tools.IPMISENSORStrategy object at 0x7fd9a30e5ba0> install success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Strategy <hw_tools.RedFishStrategy object at 0x7fd9a30e4f40> install success
unit-hardware-observer-2: 17:17:37 INFO unit.hardware-observer/2.juju-log Attempt 1 of /redfish/v1/
unit-hardware-observer-2: 17:17:38 INFO unit.hardware-observer/2.juju-log Response Time for GET to /redfish/v1/: 0.12259700102731586 seconds.
unit-hardware-observer-2: 17:17:38 INFO unit.hardware-observer/2.juju-log Attempt 1 of /redfish/v1/SessionService/Sessions
unit-hardware-observer-2: 17:17:39 INFO unit.hardware-observer/2.juju-log Response Time for POST to /redfish/v1/SessionService/Sessions: 1.3072235389845446 seconds.
unit-hardware-observer-2: 17:17:39 INFO unit.hardware-observer/2.juju-log Login returned code 401: {"error":{"@Message.ExtendedInfo":[{"MessageId":"ExtendedError.1.2.InvalidCredentials","Resolution":"Please request again with correct credentials.","MessageSeverity":"Critical","Message":"The login credentials is invalid.","MessageArgs":[],"@odata.type":"#Message.v1_1_0.Message"}],"message":"A general error has occurred. See ExtendedInfo for more information.","code":"Base.1.8.GeneralError"}}

unit-hardware-observer-2: 17:17:39 ERROR unit.hardware-observer/2.juju-log invalid redfish credential: HTTP 401 Unauthorized returned: Invalid credentials supplied
unit-hardware-observer-2: 17:17:39 ERROR unit.hardware-observer/2.juju-log Invalid redfish credentials.

The charm should ideally be in blocked status because of the invalid redfish credentials with the message: Invalid config: 'redfish-username' or 'redfish-password'. But the charm actually gets blocked with the message Missing relation: [cos-agent]. This is because the blocked status message for invalid redfish creds has been overwritten by the missing relation message while executing the update status hook.
Now relate the hardware-observer and grafana-agent charms.
juju relate hardware-observer grafana-agent

This does not change the existing blocked status message for missing cos-agent relation immediately. Only once the update hook runs again (after 5m by default) does the charm's status change to the invalid redfish credentials one.
unit-grafana-agent-0: 17:46:48 INFO juju.worker.uniter.operation ran "cos-agent-relation-created" hook (via hook dispatching script: dispatch)
unit-hardware-observer-3: 17:46:49 INFO juju.worker.uniter.operation ran "cos-agent-relation-created" hook (via hook dispatching script: dispatch)
unit-grafana-agent-0: 17:46:49 INFO juju.worker.uniter.operation ran "cos-agent-relation-joined" hook (via hook dispatching script: dispatch)
unit-hardware-observer-3: 17:46:50 INFO unit.hardware-observer/3.juju-log cos-agent:9: Defer cos-agent relation join because exporter or resources is not ready yet.
unit-hardware-observer-3: 17:46:50 INFO juju.worker.uniter.operation ran "cos-agent-relation-joined" hook (via hook dispatching script: dispatch)
unit-grafana-agent-0: 17:46:51 INFO juju.worker.uniter.operation ran "cos-agent-relation-changed" hook (via hook dispatching script: dispatch)
unit-hardware-observer-3: 17:46:51 INFO unit.hardware-observer/3.juju-log cos-agent:9: Defer cos-agent relation join because exporter or resources is not ready yet.
unit-hardware-observer-3: 17:46:52 INFO juju.worker.uniter.operation ran "cos-agent-relation-changed" hook (via hook dispatching script: dispatch)
unit-grafana-agent-0: 17:46:53 INFO juju.worker.uniter.operation ran "cos-agent-relation-changed" hook (via hook dispatching script: dispatch)
unit-grafana-agent-0: 17:47:02 INFO juju.worker.uniter.operation ran "update-status" hook (via hook dispatching script: dispatch)
unit-pin-ubuntu-0: 17:47:12 INFO juju.worker.uniter.operation ran "update-status" hook (via hook dispatching script: dispatch)

Now set the redfish credential config options
juju config hardware-observer redfish-username="user" redfish-password="password"

The config change hook fails and the charm goes into error state with the following logs,
unit-hardware-observer-3: 17:52:10 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:10 ERROR unit.hardware-observer/3.juju-log Failed to run 'check_health'
unit-hardware-observer-3: 17:52:10 WARNING unit.hardware-observer/3.juju-log Exporter health check - failed.
unit-hardware-observer-3: 17:52:10 WARNING unit.hardware-observer/3.juju-log Restarting exporter - 1 retry
unit-hardware-observer-3: 17:52:10 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:10 ERROR unit.hardware-observer/3.juju-log Failed to run 'restart'
unit-hardware-observer-3: 17:52:13 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:13 ERROR unit.hardware-observer/3.juju-log Failed to run 'check_active'
unit-hardware-observer-3: 17:52:13 WARNING unit.hardware-observer/3.juju-log Restarting exporter - 2 retry
unit-hardware-observer-3: 17:52:13 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:13 ERROR unit.hardware-observer/3.juju-log Failed to run 'restart'
unit-hardware-observer-3: 17:52:16 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:16 ERROR unit.hardware-observer/3.juju-log Failed to run 'check_active'
unit-hardware-observer-3: 17:52:16 WARNING unit.hardware-observer/3.juju-log Restarting exporter - 3 retry
unit-hardware-observer-3: 17:52:16 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:16 ERROR unit.hardware-observer/3.juju-log Failed to run 'restart'
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Failed to run 'check_active'
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Exporter is not installed properly.
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Failed to run 'check_active'
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Failed to restart the exporter.
unit-hardware-observer-3: 17:52:19 ERROR unit.hardware-observer/3.juju-log Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/model.py", line 2955, in _run
    result = subprocess.run(args, **kwargs)  # type: ignore
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-hardware-observer-3/status-set', '--application=False', 'error', 'Exporter crashed unexpectedly, please refer to systemd logs...')' returned non-zero exit status 2.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/./src/charm.py", line 346, in <module>
    ops.main(HardwareObserverCharm)  # type: ignore
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/main.py", line 451, in __call__
    return main(charm_class, use_juju_for_storage=use_juju_for_storage)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/main.py", line 436, in main
    _emit_charm_event(charm, dispatcher.event_name)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/main.py", line 144, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/framework.py", line 351, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/framework.py", line 853, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/framework.py", line 942, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/./src/charm.py", line 229, in _on_config_changed
    self._on_update_status(event)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/./src/charm.py", line 148, in _on_update_status
    self.model.unit.status = restart_status
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/model.py", line 541, in status
    self._backend.status_set(value.name, value.message, is_app=False)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/model.py", line 3157, in status_set
    self._run('status-set', f'--application={is_app}', status, message)
  File "/var/lib/juju/agents/unit-hardware-observer-3/charm/venv/ops/model.py", line 2957, in _run
    raise ModelError(e.stderr) from e
ops.model.ModelError: ERROR invalid status "error", expected one of [maintenance blocked waiting active]

unit-hardware-observer-3: 17:52:19 ERROR juju.worker.uniter.operation hook "config-changed" (via hook dispatching script: dispatch) failed: exit status 1
unit-hardware-observer-3: 17:52:19 INFO juju.worker.uniter awaiting error resolution for "config-changed" hook

Good catch, it's setting the ErrorStatus as part of the restart_exporter method here. This should probably be replaced with BlockedStatus.

Did you check why this exporter failed to restart? My guess is that the charm did not install the exporter at all because it did not pass the validation on_install / on_upgrade event

You also mentioned another issue: the charm status is overwritten on_update_status. We should consider using on_collect_unit_status, and avoid a callback of self._on_update_status(event) on each event.

My guess is that the charm did not install the exporter at all because it did not pass the validation on_install / on_upgrade event. For quick fix, we can consider removing the config validation step on install and upgrade events because config_changed event will be followed by those events, and the config validation is done there as well

Yep I traced the logic and that's why. Since it doesn't pass validation on install, all the exporter related functions fail (check_health, check_active etc) and this causes the error to be raised. The quick fix idea is good but the logic flow is very convoluted currently. We might need to revisit the lifecycle again later to streamline it.

You also mentioned another issue: the charm status is overwritten on_update_status. We should consider using on_collect_unit_status, and avoid a callback of self._on_update_status(event) on each event.

Coincidentally, I was going through the same idea and was reading up the docs for it to raise another PR. That would definitely help.
Thanks @chanchiwai-ray  for your inputs :smile:


Prepopulate supplier parts with the information from the Part

Because a lot of the parts that we use are unique and only orderable from a single vendor we end up just using the suppliers part number for our internal part number and thus end up entering each part twice into the system:  Once for to create the Part, and a second time to create the SupplierPart so that we can create the PO to receive the parts.
I see two ways of making this process easier:

If both could be created at the same time
if the New Supplier Part dialog would populate all matching fields from the Part it is being created from.

@nwns One immediate option/hook that you have is the API or the Python interface.
With few lines of codes, you could pull information from an existing database part and copy it to create a new supplier part.
That said, I could see why you would want a few items in the New Supplier Part form to be auto-loaded, like:

Part Field
Supplier Part Field

IPN
SKU

Description
Description

Link
Link

The auto-loading could be set in the InvenTree settings, for users who would want to have it enabled (in reference to #1108).
Would that be helpful?

Creating supplier information at the time of part creation would be extremely handy to me also. I have a slightly different suggestion for how this could be implemented..
In the PartCreate view, we could add a new group of inputs to the form, labelled Supplier Details or something like that..
This form group could contain the following fields:

Supplier
SKU
Manufacturer
MPN
External link

If any of these fields are completed by the user (and subsequently validated) then a new matching SupplierPart object is created after the Part object is created, and linked to the Part.

@eeintech Just importing the suppliers catalog would be an interesting idea but the suppliers have many more parts that we would ever use.
Those three fields would be the most useful.
@SchrodingersGat That could also work, though I think it would best if the IPN was automatically copied to the SKU and MPN with the SupplierPart object being created only if the Supplier is set.

See #1956

Wow looks awesome! :rocket:


python3Packages.dsmr-parser: 0.29 -> 0.30

Motivation for this change
Update to latest upstream release 0.30
Change log: https://github.com/ndokter/dsmr_parser/releases/tag/v0.30
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 134770 run on x86_64-linux 1

3 packages built:

home-assistant
python38Packages.dsmr-parser
python39Packages.dsmr-parser


Question (and opinion) about object selectors

Why the behavior of object selectors was changed at v0.20.0 (or https://github.com/VictoriaMetrics/operator/pull/341) ?
--
Suppose that a k8s cluster have multiple tenants which own thier namespaces and the tenants have their own VMAgents, etc. When a new kind of vm-operator-managed objects is added and its corresponding object selector, all tenants have to add configuration like
  newObjectNamespaceSelector:
    matchLabels:
      tenantName: foo

or
  newObjectSelector: {}

even if the tenants are not interested in those objects in order to accidentaly gather those objects owned by other tenants.
Under the old behavior, only the objects like VMAgents that were interested in other namespaces needed to have configuration like
  newObjectNamespaceSelector: {}

I think that the new behavior is undesirable in terms of forcing people to write about things they are not interested in.

Hi, initial intention was to reduce config boilerplate and configuration complexity for users with single vmagent for whole cluster.
But it creates additional problems and now i see, it was wrong decision.
So, i want to revert those changes back at 0.21.0 release.
And add new spec option - selectAllScrapes: boolean, which instructs to threat empty selector as select all. By default, it will be false.
WDYT?

initial intention was to reduce config boilerplate and configuration complexity for users with single vmagent for whole cluster.

I see... Certainly, I agree that the new behavior is preferable for a simple single-owner cluster.

And add new spec option - selectAllScrapes: boolean, which instructs to threat empty selector as select all. By default, it will be false.

I think it's not a bad idea :+1:. Will other kind of specs (VMAlerts, VMAlertmanagers, VMAuths) have similar option?
Just to confirm, the option specifies the bahavior only in case both somethingNamespaceSelector and somethingSelector are nil and the behavior in other cases will be same as the current behavior, right?

I think it's not a bad idea +1. Will other kind of specs (VMAlerts, VMAlertmanagers, VMAuths) have similar option?

Yes, all objects will have such option - selectAllByDefault with default value of false.

Just to confirm, the option specifies the bahavior only in case both somethingNamespaceSelector and somethingSelector are nil and the behavior in other cases will be same as the current behavior, right?

Yep, its correct.

Changes was included to the 0.21.0 release.


Update to 1.19.4

Hello.
Please add support for 1.19.4.

Found new version in https://ci.citizensnpcs.co/job/Denizen/


solr v5.2.1 service init always returns exit code 0

something to be fixed in solr package

https://issues.apache.org/jira/browse/SOLR-7169
https://issues.apache.org/jira/browse/SOLR-7822


openFile: resource exhausted (Too many open files)

When running a quick benchmark I hit the error openFile: resource exhausted (Too many open files). The benchmark simply inserts a new record 100000 times in a tight loop. Each loop is a new transaction. I wanted to see how quickly the database grows.
How are files being written now? This error seems to indicate some sort of lazy file IO.

Actually, even stopping and restarting the process I still get this error. Perhaps these are actually being leaked somehow?

Even after rebooting I still get this error. That leads me to believe that after 31(ish) transactions, Project:M36 is immediately running out of file handles while reading the database.

Sometimes the error happens with openBinaryFile instead. It's not the same file every time.

There's probably a leak. Can you share the benchmark source?

It'll take me a bit to pull out all the junk surrounding my benchmark...I slapped it together in a minute in an existing project. However, I'll bet just running one of the provided examples with a tight loop would hit the issue.

I would like to verify that the cause of the leak isn't due to the benchmark.

I was able to reproduce this using the new "handles" benchmark utility.
Fixed in 717dacaf877eaa3ebb6d81eb22e86c6316ea3e0a.

Wow. Fantastic. You're amazing. Thank you.


Error when rendering @html annotations

Describe the bug
This may be related to https://github.com/HoudiniGraphql/houdini/issues/1369#event-14713001573
When I use @html annotations to render my i18n messages like this:
<p >{@html m.deleteAccountGPDR()}</p>

I get this error
❌ Encountered error in src/lib/components/forms/Form.svelte
Unexpected character '@'
error when starting dev server:
undefined

Reproduction
No response

Nevermind, was caused by other Svelte 5 syntax I missed. A message where exactly the parsing error ocurred would be helpful nonetheless!


Support output to stdout

It should be possible to output the generated memes to stdout.

Solved with 35ad539


Create Application to Create Index and Search

What does this PR do?

Accepts a JSON file Upload
Checks for file validity
Creates an Index of Words from Uploaded File
Provides Search functionality for Created Index

Description of Task to be completed?
This Program Accepts a JSON file from the User and creates an Index of words based contained in the file provided the contents of the file meet the defined format.
The User is then able to Search for one or more words within the created index. And the application displays the locations of the queried words if they exist
How should this be manually tested?
By uploading JSON files and Clicking the buttons
Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?
N/A
Screenshots (if appropriate)

Questions:
N/A

Changes Unknown when pulling 7c99b6363d5e4c78a7fa885b0531d77ca70f402f on develop into ** on master**.

Changes Unknown when pulling fa82bb3f5b36b9c7ddff13fa5614885a831f1d0a on develop into ** on master**.

Changes Unknown when pulling 5fed425c4c2e33cd28df5d88be5ad96320a2dcce on develop into ** on master**.

Changes Unknown when pulling 5fed425c4c2e33cd28df5d88be5ad96320a2dcce on develop into ** on master**.

Changes Unknown when pulling dd522f641e7e04eacbe55ac6b379ede35ca563e1 on develop into ** on master**.

Changes Unknown when pulling dd522f641e7e04eacbe55ac6b379ede35ca563e1 on develop into ** on master**.

Changes Unknown when pulling 7471ac9a44465dfb139183e7e7060f3d1f2f3d46 on develop into ** on master**.

Changes Unknown when pulling ac35ba991d16ce11b7f2bafb1282e564528e8f58 on develop into ** on master**.

Changes Unknown when pulling c527f1d4195cd0119d35226a52fd4110bcdbf233 on develop into ** on master**.

Changes Unknown when pulling f313fa013a65db3d6057f29a2d98be086e855d7d on develop into ** on master**.

Changes Unknown when pulling 2f087359533443f5219d45fd9a995d2e9026c0cf on develop into ** on master**.

Changes Unknown when pulling 19d517911b49834d44bd43973ed5b414eaaac615 on develop into ** on master**.

Changes Unknown when pulling 19d517911b49834d44bd43973ed5b414eaaac615 on develop into ** on master**.

Changes Unknown when pulling 6cf1385ec148aa02c9f8f7f8cd480a65c03a10e1 on develop into ** on master**.

Changes Unknown when pulling f6fe6a1addd2777c592f6e94b6c564baf2ead35c on develop into ** on master**.

Changes Unknown when pulling f6fe6a1addd2777c592f6e94b6c564baf2ead35c on develop into ** on master**.

src/inverted-index.js
Line 16: this.vbook <-- Variable name is vague
Line 29 title <-- varible is actually an a numerical array index
Lines 30 - 43 -> Make titleIndex[title] a variable
Lines 30 - 43 -> can be made shorter and clearer  with a ternary e.g
    arr[index] =  arr[index] === undefined ? {} : array[index];
    arr[index].title = title;

Lines 67 - 69 Can be chained e.g
    terms.toLowerCase
       .match(/regex/)
       .forEach(function)

Line 69 sItem <-- non descriptive variable name
validateFile function
multiple checks for empty file.
Good code formatting and docBlock structure

Write more tests to check for edge cases
Make Variable names descriptive

Changes Unknown when pulling 7a3c5dec23187ac011a8122b7294d1e75b77700b on develop into ** on master**.

Changes Unknown when pulling cfa6240773bb3af69cbe667b45f117287064d491 on develop into ** on master**.

Changes Unknown when pulling 672bfdc11764cdd34a7e66bcea9a9695de904916 on develop into ** on master**.

Changes Unknown when pulling 672bfdc11764cdd34a7e66bcea9a9695de904916 on develop into ** on master**.

Changes Unknown when pulling 5162ce7f801d7a51dbf99a621cdaae43e3e2334d on develop into ** on master**.


Discrepancy Between Results in the Repository and Roboflow100

💡 Your Question
Hi, I've been using your Yolo-nas and appreciate your effort. However, I've noticed differences between the results presented in the repository and those reported in the Roboflow (paper or repo). Could you kindly clarify the reasons behind these discrepancies?
The paper reports the average mAP of yolov5 and yolov7. The repo presents the average mAP of yolov5, yolov7 and yolov8 on the 88 datasets. Notably, the results presented in your repository are better than those reported in both the paper and the Roboflow benchmark.
I would like to know how I can reproduce the results you gave on the RF100 dataset.
Best regards.
Versions
No response

Hello @JiahuiChen-GitHub, the results reported for the other Yolo variants were taken from here.
For a fair comparison, we evaluated YoloNAS only on the datasets that had a reported score.
For reproduction, follow the RF100 training steps for each dataset.

Thanks for the answer!

Hello, we have another new question. In this blog, you showcased the performance of yolonas-s and yolonas-m on the rf100 dataset. Could you please share the results of both models across various subclasses of rf100?

I don't think we have them computed during training. And because of that they per class scores are not logged to experiment monitoring platform.
I'm not sure we kept best checkpoints for all 100 datasets either.
So my best recommendation for you to take out fine tune recipe for roboflow and train model that you are interested in and train it with "include_classwise_ap" option enabled in DetectionMetris class

Sorry, I meant the mAP per category in this image.

Like absolute values? Since this is image represents exactly what you asking

Yes, we are doing a study on real-time object detectors and would like to get some absolute values for a fair comparison.

Could you please provide the absolute values of yolonas-s and yolonas-m models in this image?


laser turret not working after recent update

Hi, after the update today the steam laser turret mod does not work anymore.
Could you please take a look?
Thanks!

I had a look myself and I was able to get it working again by changing:
[EventRef] private string _rotateSound = "AutoMiner_rotate";
into
private string _rotateSound = "AutoMiner_rotate";
I also had to comment out:
using FMODUnity;
But that may be a dependency issue on my end. Only started working with the tooling yesterday.

Thank you for your effort!
I've been playing other games for several months, and not taking care of these mods for a long time, since there's no big updates for ONI anyway. I'll look into this right now! :)

Thank you for your effort!
I've been playing other games for several months, and not taking care of these mods for a long time, since there's no big updates for ONI anyway. I'll look into this right now! :)

It's caused by FMOD.
I've rebuilt the mod and publish an update, you may check it out in the workshop.

It's caused by FMOD.
I've rebuilt the mod and publish an update, you may check it out in the workshop.

Hi,
Awesome, thanks for updating it!
With regards,
Martijn
On Sat, Jan 2, 2021 at 7:19 AM Vincent Lee<EMAIL_ADDRESS>wrote:

It's caused by FMOD.
I've rebuilt the mod and publish an update, you may check it out in the
workshop.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/as-limc/oni-mods/issues/4#issuecomment-753438112, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AH4JVILL535UBINTMBU6RCLSX23IHANCNFSM4UDSEZJQ
.

Hi,
Awesome, thanks for updating it!
With regards,
Martijn
On Sat, Jan 2, 2021 at 7:19 AM Vincent Lee<EMAIL_ADDRESS>wrote:

It's caused by FMOD.
I've rebuilt the mod and publish an update, you may check it out in the
workshop.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/as-limc/oni-mods/issues/4#issuecomment-753438112, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AH4JVILL535UBINTMBU6RCLSX23IHANCNFSM4UDSEZJQ
.


WIP - Make consumeable

I do not plan on merging this. This PR is just to trigger the Travis job to publish a package to NPM, so I can then work on consuming it within the Pulumi Service repo. (To start on docs/guides for how to share and customize policy packs.)

Closing out-of-date PR that's no longer needed.


enhance local and remote executore

it would be better to use specific keywords than **kwrags for j.core.executors.run_local and j.core.exeutors.RemoteExecutor

I agree :)


Override default connection pool settings

Provided the configuration to override the default pool settings. This is useful when the min or max connections to be changed or avoid 'Connection Terminated Unexpectedly' errors in certain cases.
Hey, I just made a Pull Request!

:heavy_check_mark: Checklist

[ ] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[ ] All your commits have a Signed-off-by line in the message. (more info)

Hi! I see that things got a bit hairy in the history. I would suggest you close this one and make a new pull request with just one signed commit, with these changes just copy pasted.


Docs don't include build instructions/hints

Sorry if this is painfully obvious to everyone but me - could the examples and/or readme be extended to show how to implement this crate in your own project?
Something like:

Usage
cargo new --lib my-rxplm-project
cd my-rxplm-project
cargo add xplm

Then add to Cargo.toml:
[lib]
crate-type = ["cdylib"]

Copy minimal example into src/lib.rs
cargo build
Rename target/debug/my_rxplm_project.dll to win.xpl (or my_rxplm_project.so to lin.xpl, etc) and copy to the aircraft/scenery/sim plugins folder etc

Also might be worth mentioning the ease of cross-compilation e.g. with cross? I don't know if C++ has moved on a lot from when I last leaned into it, but it's hard to beat 1) install Podman (on a linux machine) 2) install cross 3) cross build --target x86_64-pc-windows-gnu 4) package and distribute the .dll :D

Thanks for the suggestion. I added that to the README file.


Generated presets "index.js" does not import "global.js"

After downloading a preset at https://tailwind.primevue.org/builder/ the main index.js does not include the global.js file by default.
The line import global from './global' is missing

Live is fixed now, thanks.


Sleep timer on certain LG AC models

For reference, I have an LG LP1419IVSM.AC1AHDC (https://www.lg.com/ca_en/heating-and-cooling/portable-air-conditioner/lp1419ivsm/). I wanted to set/read the current sleep timer (a feature that slowly increases the temperature on the AC-side while you sleep).

Some debugging logs

{
    "airState.windStrength": 2,
    "fwUpgradeInfo": {
        "upgSched": {
            "upgUtc": "0",
            "cmd": "none"
        }
    },
    "airState.notification": 0,
    "static": {
        "deviceType": "401",
        "countryCode": "CA"
    },
    "airState.tempState.current": 26,
    "airState.diagCode": 0,
    "mid": 176302357,
    "airState.energy.onCurrent": 72,
    "airState.reservation.sleepTime": 0,
    "airState.quality.sensorMon": 0,
    "airState.tempState.target": 20,
    "airState.miscFuncState.autoDryRemainTime": 0,
    "airState.operation": 1,
    "airState.reservation.targetTimeToStart": 0,
    "meta": {
        "allDeviceInfoUpdate": false,
        "messageId": ""
    },
    "online": true,
    "airState.opMode": 2,
    "airState.reservation.targetTimeToStop": 0,
    "airState.filterMngStates.maxTime": 250,
    "airState.filterMngStates.useTime": 0,
    "airState.wDir.vStep": 100,
    "timestamp":<PHONE_NUMBER>654
}

The key in question would be: "airState.reservation.sleepTime": 0, which can be both set and read with the same property. It currently does not exist in the ACDevice class.

I propose a simple extension; i.e. add a getter/setter for sleep timers, as well as a new property: 1e0951cd981c38be2fa633df024bd7f1de32448c
I'm not sure if every LG air conditioner supports this feature, but it might be a good idea to fence it off by checking for the key.

Hi @doghouch!
Thank you very much for interesting my plugin. I will try this on my AC, I don't really remember do I have this option available. Will get back to you soon, thanks!

Hi @doghouch! Thank you very much for interesting my plugin. I will try this on my AC, I don't really remember do I have this option available. Will get back to you soon, thanks!

Do let me know if you need more logs -- I'd be happy to provide them!

That would indeed be a nice enhancement. Any progress on this?


update typelevel-prelude dependency

depends on https://github.com/purescript/purescript-record/pull/51 first

Fixed as part of #39


Multiple input features cannot have the same value

Hi,
I am trying to implement a KPLS model with my dataset, but it raises this error:
"Multiple input features cannot have the same value".
How can I solve it?
Thank you very much for your support
EDIT: I solved by dropping equal instances, by using dataframe.drop_duplicates()
However now, it seems it is not converging and gives me thousands of these exceptions:
....
exception :  125-th leading minor of the array is not positive definite
exception :  125-th leading minor of the array is not positive definite
exception :  136-th leading minor of the array is not positive definite
exception :  array must not contain infs or NaNs
exception :  array must not contain infs or NaNs
exception :  array must not contain infs or NaNs
.....
How can I solve this problem?
Thank you very much :)

This error indicates that you have two identical samples in your dataset. You need to remove all duplicate samples from your dataset before using KPLS.

Yes,I had already solved that problem. In the EDIT part, I wrote the new issue that I am facing. I re-write it here:
EDIT: I solved by dropping equal instances, by using dataframe.drop_duplicates()
However now, it seems it is not converging and gives me thousands of these exceptions:
....
exception : 125-th leading minor of the array is not positive definite
exception : 125-th leading minor of the array is not positive definite
exception : 136-th leading minor of the array is not positive definite
exception : array must not contain infs or NaNs
exception : array must not contain infs or NaNs
exception : array must not contain infs or NaNs
.....
How can I solve this problem?
Thank you very much :)

We need more information. Could you give a stack trace, information about your training data and a code sample?

I am trying to use KPLS, with a search algorithm to find the value of theta that gives the best result.
This is the code:

# Define kFold for cross validation
seed=1
from sklearn.model_selection import KFold
n_splits = min(int(np.sqrt(X0_train.shape[0])), 10)
print("n splits:", n_splits)
kfold = KFold(n_splits=n_splits, shuffle=True, random_state=1)

# Kriging
teta_search = np.linspace(0.1,2,10) #values of theta to try
best_scores_sm = 0
best_param = 0
score_mean = -math.inf

for teta in teta_search:
    scores = []
    for train_index, test_index in kfold.split(X0_train):
        X_train, X_test = X0_train[train_index], X0_train[test_index]
        y_train, y_test = y0_train[train_index], y0_train[test_index]

        sm = KPLS(theta0=[teta], n_comp=1, print_global=False)
        sm.set_training_values(X_train, y_train)
        sm.train()

        y_pred_test = sm.predict_values(X_test)
        scores.append(r2_score(y_pred_test, y_test))
    print(np.mean(scores))
    if (np.mean(scores) < score_mean):
        continue;
    else:
        score_mean = np.mean(scores)
        best_scores_sm = scores
        best_param = teta
print("d0", best_param)
print("best_score", np.mean(best_scores_sm),"+/-", np.std(best_scores_sm))

The problem appears when I want to try low values of theta, for example theta=[0.01]. And the problem appears using "sm.train()". For higher values of theta it works but the results aren't so good.

I found that the errors come from here:
        try:
            C = linalg.cholesky(R, lower=True)
        except (linalg.LinAlgError, ValueError) as e:
            print("exception : ", e)
            return reduced_likelihood_function_value, par

This can be found in krg_based.py
If I try low values of theta, it starts giving an infinite series of exception.
How can I solve that problem?

Numerical issue related to the positive semidefinite quality of the covariance matrix: see some hints  to tackle the problem.


Open Links from E-Mails in electron-mattermost

Is there any way to this or how we could hack it?

No. OS will open a http(s) link with your default web browser.
Possibly following steps can realize that, but implementation will be complex.

Register electron-mattermost as default web browser for http(s).
The app check whether the link is mattermost url.
If it's mattermost, open it in correct tab.
If not, open it in your web browser. Unfortunately, you have to specify web browser manually because the default browser is electron-mattermost in step 1.

Besides, all http(s) link will be opened via electron-mattermost everytime.

@yuya-oc If we could support a custom protocol mattermost:, we could simply rewrite the protocol in the email templates...

Yes, however it forces users to use electron-mattermost or other native clients. So the template should show two links, http(s) and mattermost`. How do you think about this?
btw, its there any way to change email template in mattermost?

I do not know exactly. I will open an issue at mattermost. Maybe mattermost could make this a user setting...

How about supporting a url scheme and just using something like this: https://chrome.google.com/webstore/detail/redirector/pajiegeliagebegjdhebejdlknciafen?hl=en-US

It's nice. Users have to set regex, but function will be simple.

That would be really nice!

Thanks for the suggestion @leipert! Appreciate your feedback here
We're beginning to move feature requests from GitHub issues to our feature idea forum to keep all feature ideas in one place. Therefore, could we have your help contributing your suggestion in the feature idea forum so it can be discussed, upvoted and considered for a ticket?
Please include a link back to this GitHub Issue. If you're interested in implementing, please say so and we'll prioritize the review.
You get 10 votes in the feature idea forum, and each one influences the future of the project.

Opened a feature request here: https://mattermost.uservoice.com/forums/306457-general/suggestions/36795994-open-links-from-e-mails-in-electron-mattermost


Descriptive message for KeyError, still 500

Fixes #918
Example
{
  "status_code": 500,
  "message": "Key 'stordage' was not found",
  "request_id": "e6f7b979-1511802434"
}

Review Checklist

Tests were added to cover all code changes
Documentation was added / updated
Code and tests follow standards in CONTRIBUTING.md

Codecov Report

Merging #1011 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1011      +/-   ##
==========================================
+ Coverage   90.43%   90.43%   +<.01%
==========================================
  Files          50       50
  Lines        6753     6756       +3
==========================================
+ Hits         6107     6110       +3
  Misses        646      646

LGTM


Add lint make target

Description of changes:
Adds a make target called lint which will be added to the CI, failing if the source files are not of the proper format or if they have bug-checking failures.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Testing Done
This will fail because I haven't opened a PR standardizing the format yet :)
make lint

I went ahead and added make lint to the CI workflow, so that check will need to be overridden to merge this.
I'll open two subsequent PR's:

Apply formatting.
Fix the 1 error-level shellcheck finding.

I don't want to cause headache for the PR's that are close to merge, so I'll wait until #938 and #1066 are merged to move forward.


Permit parameters in latest controller

This will hopefully fix /government/latest?departments[0]=department-for-education just redirecting to /government/feed rather than giving a filtered feed.

Trello card

@barrucadu I don't think this is a great idea. I'll slack you.

Ah I may have missed you on Slack, but anyway since this is query string parameters this may cause unexpected 400 responses.
This sets us to only accept "page, departments, topical_events, world_locations" query parameters but it's quite possible there could be other ones such as google analytics tracking as query string parameters, but they could have an error see:
[5] pry(main)> ActionController::Parameters.new("utm-content" => "this").permit("page")
ActionController::UnpermittedParameters: found unpermitted parameter: :utm-content
from /usr/lib/rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/actionpack-5.1.6/lib/action_controller/metal/strong_parameters.rb:863:in `unpermitted_parameters!'

So in general we shouldn't really use permit unless we've already done a require
To achieve the goal you're aiming for here it might be more appropriate to raise an exception if https://github.com/alphagov/whitehall/blob/becd111a979463e581435c0d7dbf0a8ea6e8614a/app/controllers/latest_controller.rb#L41 is not an array - maybe https://github.com/rails/rails/blob/bad1041b82df941d588ae2565f62424d88104933/actionpack/lib/action_controller/metal/strong_parameters.rb#L38 but I'm not sure


Add a note about @mermaid-js/mermaid-cli dependency

Thank you for this neat generator!
When I tried using it with Prisma 4.10.1 and pnpm, I was getting an error that mmdc command failed.
Command failed: ../../amsterdam/node_modules/mmdc -i /var/folders/lk/g24rtghs1gn_6l6tc9tcdnmm0000gn/T/prisma-erd-UdJgkH/prisma.mmd -o /Users/maticzavadlal/Code/mine/amsterdam/server/prisma/ERD.svg -t forest -c /var/folders/lk/g24rtghs1gn_6l6tc9tcdnmm0000gn/T/prisma-erd-UdJgkH/config.json

After looking into the problem, I was able to resolve it by adding an explicit dependency to @mermaid-js/mermaid-cli.

The installation step says to install this as a dev dependency already.


A issue about streaming output

Great project! I have a small question: it seems that both the agent page and the RAG page do not support streaming output.

@Vincent-ch99 Thanks! I’ve tested Ollama, Xinference and OpenAI as llm provider, streaming output is only supported with OpenAI models now.
Will try to figure it out in the future.


Create Azure resources using an ARM template

Use the GitHub action for Azure Resource Manager (ARM) deployment to automatically create required infrastructure resources (e.g. a VM) on Azure:
https://github.com/marketplace/actions/azure-resource-manager-arm-template-deployment

We should be able to get the ARM template for our existing Azure VM by selecting the VM from Resources in the Azure portal, then clicking "Export Template" on the left menu. This template, or an extension of that, is what we can use in the github action, so we can deploy a VM automatically as a github action.
There are many quickstart ARM templates defined here: https://github.com/Azure/azure-quickstart-templates
but the simplest approach is probably to start with the template for the VM we already have defined in Azure.


Dark Mode

Hello,
i'm searching now over hours a fix to force the Dark Mode in windows 10 but couldn't find any how is this possible am I the only one who get eyes bleeding by bright backgrounds?^
I downloaded the latest version 4.0 and searched the whole www. for a fix to get the lightmode off.

this project isn't developed or maintained anymore....

this project isn't developed or maintained anymore....

You might be interested in Vividl as it maintained more actively.

You might be interested in Vividl as it maintained more actively.


added support for dns.he.net certbot plugin #2153

I tested it with one of my personal top level domains + wildcard subdomain (such as example.com,*.example.com) using jc21/nginx-proxy-manager:github-pr-2924 docker image and this worked :heavy_check_mark:
I also tried to get a certificate for a subdomain but sadly this does not work. :x:
I found https://github.com/tsaaristo/certbot-dns-he/issues/3 and https://github.com/tsaaristo/certbot-dns-he/pull/2 waiting for an answer of the maintainer since 2020 :unamused:

@benhubert I attempted to retrieve your image from DockerHub. However, I noticed that Hurricane Electric is not listed in the DNS Provider's dropdown menu.
Here's my docker-compose.yml file:
version: '3.8'
services:
  app:
    image: 'jc21/nginx-proxy-manager:github-pr-2924'
    restart: unless-stopped
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
    volumes:
      - ./data:/data
      - ./letsencrypt:/etc/letsencrypt`

am I doing anything wrong?

hi im pissed. im using 2422 the latest nginx proxy manager and there is no he,net and itwas updted 4 days. is it only for version 3, becouse 2.10 there is no he.net i try version 3 and it dont respond, when try press hosts it dont open, maybe version 3 is not ready yet. and database is new, jc21 need to make for peoples who need to use nginx proxymanager version 3 compatible with nginx proxymanager version 2 database.

I also installed the image 'jc21/nginx-proxy-manager:github-pr-2924' and also don't see Hurricane Electric in the drop down list.
Here is my docker compose file

Here is a screenshot of the DNS Provider's dropdown box.

@benhubert   I downloaded your pull request and noticed that on row 295, the password variable has spaces in it.
I am definitely a newb when it comes to coding, but instead of my HE password, did you mean to write my_HE_password  ?

If I am off the mark, please know my intent it to get this resolved.  I am trying to be helpful, as I would really like Hurricane Electric to be a supported DNS Provider in NPM.
I doubt this is what is keeping Hurricane Electric from appearing on the list, but thought I would inquire in case it is an issue.
@jc21  I don't know if requires verification label is an indication that you have to do something or a call for others to test / validate?   Is there anything I can do that will assist?

@rlcranney the label means someone, me or anyone, needs to test though in the case of the DNS providers, I don't use most of them so I rely on the community to test.
I'll merge this anyway, should it not work as intended, users can always roll back.


Version

[ ] display current version
[ ] display latest versoin
[ ] notice if there is a new version

This api is helpful: https://api.github.com/repos/github/hub/releases

https://pub.flutter-io.cn/packages/flutter_native_splash

https://pub.flutter-io.cn/packages/package_info_plus

https://pub.dev/packages/badges

https://api.flutter.dev/flutter/foundation/LicenseRegistry-class.html


你好，我使用 set export GOPROXY=https://goproxy.io，仍然无法拉去依赖包

set export GOPROXY=https://goproxy.io
go list
go: finding github.com/ugorji/go/codec latest go: finding github.com/gin-contrib/sse latest go<EMAIL_ADDRESS>unrecognized import path "golang.org/x/sys" (https fetch: Get https://golang.org/x/sys?go-get=1: dial tcp <IP_ADDRESS>:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.) go: error loading module requirements

Make sure you enable module mode by export GO111MODULE=on
export GOPROXY=https://goproxy.io

@EddieChan1993 直接执行 export GOPROXY=https://goproxy.io 然后再试试。

thanks


Add continuous integration (CI).

Let's add CI to this repository. That way, it's easier to see whether the latest master is passing all tests and building successfully, as well as for PRs. This is especially important now that there are out-of-tree dependencies (that aren't vendored).
There are many valid choices of CI systems for open source Go packages. I will recommend we go with TravisCI. It's the one I've used for the last 4~ years and had a good experience with. I also have a good .travis.yml template that I can share. /cc @ConradIrwin @bramp
If you're okay with TravisCI, I can send a PR that adds a .travis.yml and adds a badge to README. @ConradIrwin, you'd need to enable this repo on https://travis-ci.org/ (since you're the owner).

activated on travis! go wild — do you have permission to access travis or do I have to do more?
Sent via Superhuman<EMAIL_ADDRESS>)
On Tue, Feb 20, 2018 at 4:06 PM, Dmitri Shuralyov <<EMAIL_ADDRESS>> wrote:

Let's add CI to this repository. That way, it's easier to see whether the
latest master is passing all tests and building successfully, as well as
for PRs. This is especially important now that there are out-of-tree
dependencies (that aren't vendored).
There are many valid choices of CI systems for open source Go packages. I
will recommend we go with TravisCI. It's the one I've used for the last 4~
years and had a good experience with. I also have a good.travis.yml template
that I can share. /cc @ ConradIrwin ( https://github.com/conradirwin ) @ bramp
( https://github.com/bramp )
If you're okay with TravisCI, I can send a PR that adds a.travis.yml and
adds a badge to README. @ ConradIrwin ( https://github.com/conradirwin ) ,
you'd need to enable this repo on https:/ / travis-ci. org/ (
https://travis-ci.org/ ) (since you're the owner).
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
https://github.com/ConradIrwin/font/issues/16 ) , or mute the thread (
https://github.com/notifications/unsubscribe-auth/AAFwQGXf3aJbRq_G-NBtBIf5ydCHQS0Qks5tW14igaJpZM4SM3_P
).

Thanks. It looks like I do. I'll let you know there's anything else.

Also, do you want to add dep to manage the dependencies? 👀
Sent via Superhuman<EMAIL_ADDRESS>)
On Tue, Feb 20, 2018 at 4:11 PM, Dmitri Shuralyov <<EMAIL_ADDRESS>> wrote:

Thanks. It looks like I do. I'll let you know there's anything else.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (
https://github.com/ConradIrwin/font/issues/16#issuecomment-367166991 ) , or
mute the thread (
https://github.com/notifications/unsubscribe-auth/AAFwQJopwie6vGmNusNmyomC1yyqKJvBks5tW18hgaJpZM4SM3_P
).

I don't have strong opinions on dependency management in this repo. I'll defer that decision to you.
I'm okay with things as they are (i.e., always fetching latest with go get -u), as well as dep. You might also want to consider the new vgo experiment.


Updated documentation to point to notebooks instead of having samples

Does 3 documentation updates.

Removes sample code in the documentation and instead points user to notebook for TFX.
Adds links to sklearn and PyTorch notebooks.
Wrapping ModelHandlers in KeyedModelHandler is documentated in two places. This PR merges the documentation into a single location.

Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:

[ ] Choose reviewer(s) and mention them in a comment (R: @username).
[ ] Mention the appropriate issue in your description (for example: addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, comment fixes #<ISSUE NUMBER> instead.
[ ] Update CHANGES.md with noteworthy changes.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)

See CI.md for more information about GitHub Actions CI.

R: @damccorm


Vector Index Example does not return sourceNodes

Describe the bug
The example provided in examples/vectorIndex.ts  has empty sourceNodes.
To Reproduce
// source: https://github.com/run-llama/LlamaIndexTS/blob/main/examples/vectorIndex.ts

import fs from "node:fs/promises";

import {
  Document,
  MetadataMode,
  NodeWithScore,
  VectorStoreIndex,
} from "llamaindex";

async function main() {
  // Load essay from abramov.txt in Node
  const path = "node_modules/llamaindex/examples/abramov.txt";

  const essay = await fs.readFile(path, "utf-8");

  // Create Document object with essay
  const document = new Document({ text: essay, id_: path });

  // Split text and create embeddings. Store them in a VectorStoreIndex
  const index = await VectorStoreIndex.fromDocuments([document]);

  // Query the index
  const queryEngine = index.asQueryEngine();
  const { response, sourceNodes } = await queryEngine.query({
    query: "What did the author do in college?",
  });

  // Output response with sources
  console.log(response);

  if (sourceNodes) {
    sourceNodes.forEach((source: NodeWithScore, index: number) => {
      console.log(
        `\n${index}: Score: ${source.score} - ${source.node.getContent(MetadataMode.NONE).substring(0, 50)}...\n`,
      );
    });
  }
}

main().catch(console.error);

Expected behavior
That the example code unmodified would log sourceNodes
Desktop (please complete the following information):

OS: macOS
Node.js
v0.7.8

Additional context
I was trying to debug a similar issue with my code where I get empty sourceNodes and metadata back and noticed the example code seems to have the same issue.

thanks for checking


 I would like to store each of these values.
For eg I have the following code below:
gl=[]
        def gen_callback(xk):
            gl.append(gen_loss(xk))

        #minimise loss for gen
        gen_result = minimize(gen_loss, gen_weights, method='Powell', bounds = bounds_gen_weights, options={ 'maxiter': 2000, 'maxfev': n*3, 'ftol':1e-10, 'xtol': 1e-3}, callback =  gen_callback)
        gen_weights = gen_result.x

where I want to take the current value of gen_weights, calculate the gen_loss using those gen_weights and store them. However the method I am currently using as shown above doesnt do this. Any ideas on how to store each value of loss rather than just the final results?

It looks like you have the right idea. Minimum working examples and a description of what you are experiencing would help us to determine whether this is a bug.
For this code:
import numpy as np
from scipy.optimize import minimize

def f(x):
    return np.sin(x)**2

gl = []
def cb(x):
    gl.append(x)

res = minimize(f, [3], callback=cb, method='powell')
print(gl)

the output is:
[array([3.14216788]), array([3.14159264]), array([3.14159265]), array([3.14159265])]

Apparently the callback isn't being called at the initial point. Is that the problem you're having?

Please see https://github.com/zohimchandani/Code_share/blob/master/qwgans 14.ipynb for a working example. You can ignore the initial code cells and only focus on the last cell and the graph at the end. I would like to plot all the loss values and not just the final ones which is what the code is currently doing.

I don't have those packages, so I can't run it. I don't see a problem with the way you're using callback or how you're appending the values to gloss. Besides the fact that there are only three values in gloss, though, there is no evidence that something is wrong, so I can't debug. From what I can see, there is an alternate explanation for the behavior that isn't related to the callback: the minimizer is exiting after one iteration. Two additional pieces of information would be helpful: what version of SciPy is this (import scipy; scipy.__version__), and please print gen_result each iteration.

scipy version 1.5.2
please see here for the requested results https://github.com/zohimchandani/Code_share/blob/master/qwgans 14.ipynb
The results I am getting are correct but I just want to be able to plot them in a smoother fashion rather than the straight lines I am currently plotting. I want to be able to see the variation in values at each step of minimisation.
Thankyou

He asked for gen_result because that will show some information about how many iterations each minimize() call actually performed. That will test the hypothesis that minimize() exits after the first iteration for some reason, which would explain why each call only adds one value to the list.

Apoligies, I believe this is now correct: https://github.com/zohimchandani/Code_share/blob/master/qwgans 14.ipynb

And the suspicions have been confirmed: only one iteration is performed (see nit in the results). Here are the relevant portions:
 message: 'Maximum number of function evaluations has been exceeded.'
    nfev: 24
     nit: 1
  status: 1
 success: False

I would recommend removing the maxfev parameter. It's too low and causing the optimization to fail.

see here for updated results: https://github.com/zohimchandani/Code_share/blob/master/qwgans 14.ipynb
nit now is 4, I am guessing that the optimiser is performing gradient descent 4 times and arriving at the final answer?
Still not outputting all the loss values as there is a massive relative jump between the first and the second gloss.

It's telling you that it did 4 iterations, and gloss records 4 iterations. I'm not sure what loss values you think are missing. Note that method='Powell' is not a gradient descent method. It doesn't necessarily take small steps.

Thanks for your previous comments. How would I get the corresponding gen_weights for each of those iterations?

The gen_weights correspond to the solution vector. Your call back function can be amended to store that.

Or better still, use the return_all keyword.

The corresponding gen_weights are the x that is passed to gen_callback(x). For example, try the following to record the weights and the loss at each iteration:
gen_weights_and_losses = []

def gen_callback(gen_weights):
    gen_weights_and_losses.append((gen_weights, gen_loss(gen_weights)))

Issue looks to have been addressed and no further discussion has happened for a while.


2 factor auth

Hello.
Your code is very interesting and useful. The only problem I found is it can't authenticate when 2 factor auth is enabled on Google account.
Could you implement it?

Hello.
There seems to be an error when one user that share location on the Google account don't have data to provide:
ypeError: Cannot read property '1' of null
at extractUserLocationData (/opt/google_shared_locations/main.js:507:34)
at parseLocationData (/opt/google_shared_locations/main.js:485:7)
at Request._callback (/opt/google_shared_locations/main.js:412:11)
at Request.self.callback (/opt/google_shared_locations/node_modules/request/request.js:186:22)
at emitTwo (events.js:126:13)
at Request.emit (events.js:214:7)
at Request. (/opt/google_shared_locations/node_modules/request/request.js:1163:10)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at IncomingMessage. (/opt/google_shared_locations/node_modules/request/request.js:1085:12)


Upgrade to Python 3

Along with some minor addition of spacing for code readability

Thanks for your contribution - Python 3 compatibility is great, but I'd like to still support Python 2. Would you be happy to make the necessary changes before I merge?

Added the necessary imports and modifications of bash script for Python 2/3 compatbility.
I added the "tomorrow" awareness to the fork forgetting it would be added to the PR as well. Personally I find it useful, let me know if you'd like me to remove it.

Thank you!


Add card class and game score

Added the card class and game score variable. I'm unable to test it at the moment but it's not being used just yet so it shouldn't cause errors.

Please don't delete this branch until Issue #18 is complete and out of testing.


binary search in  _.sortedIndex is not rigorous.

 _.sortedIndex = function(array, obj, iteratee, context) {

    iteratee = cb(iteratee, context, 1);

    var value = iteratee(obj);

    var low = 0, high = getLength(array);

    while (low < high) {

      var mid = Math.floor((low + high) / 2);

      if (iteratee(array[mid]) < value) low = mid + 1; else high = mid;

    }

    return low;

  };

the result of (low+high) can be  bigger than<PHONE_NUMBER>740991,which is imprecise.
To make sure the result do not be bigger than it, we can avoid it by using this method.
var mid =Math.floor((high-low)/2)+low;

Is this theoretical, or something you've actually hit in real world example?

It's theoretical and I made a mistake , the length of array will never be greater than 2^32,so this condition will never happen.
However,this is a better way of coding than this.This way of coding brought about some bug in java
in the past.

Got it. Thanks for flagging, but I think we’re prefer the simpler code over the theoretically safer version. Thanks again!


[intlify] 'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead with v11

Reporting a bug?
After upgraded to v11, getting following warning in console, event v-t was not used, checked source codes, looks like there's no way to disable this output. Maybe an option to opt-out the directive registration?

[intlify] 'v-t' has been deprecated in v11. Use translate APIs ('t' or '$t') instead with v11

Expected behavior
A way to bypass the warning in console for disturbing or disable the v-t registration before it's removed.
Reproduction
https://stackblitz.com/edit/vitejs-vite-7mewe8xx?file=package.json
System Info
macOS 15.3
vuye 3.5.13

Screenshot

Additional context
No response
Validations

[X] Read the Contributing Guidelines
[X] Read the Documentation
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussions

similar problem, intlify/unplugin-vue-i18n: 6.0.2, vue-i18n: 11.0.0, nuxt: 3.15.0
`import { createI18n } from 'vue-i18n'
import en from '../locale/en.json'
import de from '../locale/de.json'
import uk from '../locale/uk.json'
export default defineNuxtPlugin(({ vueApp }) => {
const i18n = createI18n({
legacy: false,
globalInjection: true,
locale: 'uk',
messages: {
en, uk, de
}
})
vueApp.use(i18n)
})`


Time shift

Acknowledgement

[X] I have read Getting-Started and FAQ

🐛 Describe the bug
I'm using OpenUtau just for making .usts. Export them and import to Utau, becouse I prefer way the vocals sound rendered and exported from Utau. But when I tried to mix everything in AudaCity noticed timeshift. Maybe It was my fault, because I'm still learning how to do perfect tracks. But when I rendered everything in OpenUtau then everything was perfectly fine. I downloaded usts from yt (to not work on my usts) and made cover in both programs. Then I merged both vocals in AudaCity. Begginging is perfectly fine, but when deeper it goes the worst it gets.  This issue is in all of my projects. I wonder if I'm wrong, the laptop or something else? (And sorry for my english, It's not my primary language.
Here's link to all of it (usts, ustx, instrumental, aup3, txt, wavs, mp3. notice: I used vb Matsudappoyo edge and light):

Explains how to reproduce the bug
1.I downloaded .ust files of "World Is Mine" song from YouTube, which were in
.zip file.
2.Unpacked file and opened OpenUtau.
3.Imported files and fitted them to instrumental.
4.Added rest for better fitting in AudaCity.
5.Saved and exported .ustx file again to .ust one.
6.Next I exported .ustx to .wav .
7.Got to Utau.
8.Opened all of 3 .usts in order and exported them to .wav files.
9.Got to Audacity and added 3 .wav files with instrumental.
10.Changed a little bit vocals volume.
11.Exported to .mp3 file.
12.Next I deleted instrumental and added .wav from OpenUtau for comparison
of shifted time.
13.Beginning sounds mighty fine, but deeper it goes the timing gets worse.
OS & Version
Windows 11
Logs
log20231003.txt


fix broken hyperlink due to typo

There's a broken link in https://blog.mothertongues.org/g2p-advanced-mappings/#unicode-escape-equences due to a typo, which I fixed in this tiny commit/PR.
Feel free to cherry pick the one commit instead of merging this PR in.

@roedoejet this PR should be trivial to review and merge. It's still relevant.


[BUG] Camera Detection on macOS throws deprecation warning

General description of bug:
When executing fastfetch -c all.jsonc to test out all modules on macOS arm64, just before the Camera line the following warning is shown:
2024-04-30 16:38:41.141 fastfetch[34398:5572563] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceT.

However, the camera detection itself works fine.

What happened: Personally I wish there are no warning like this that disrupt the output
What should happen: Camera detection should work without warning
Fastfetch version used: 2.10.2
Did it work in an older version: Not tried yet
Where did you get the binary: Installed from Homebrew
Does this issue still occurs in the latest dev build? Yes

Often helpful information:
macOS arm64 14.3.1
M2 Pro MacBook Pro 16
Running zsh 5.9, executed under normal session (not during shell startup)
Screenshot:

The content of the configuration file you use (if any):
{
    "$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
    "modules": [
        "title",
        "separator",
        "os",
        "host",
        "bios",
        "board",
        "chassis",
        "kernel",
        "uptime",
        "processes",
        "packages",
        "shell",
        "display",
        "brightness",
        "monitor",
        "lm",
        "de",
        "wm",
        "wmtheme",
        "theme",
        "icons",
        "font",
        "cursor",
        "wallpaper",
        "terminal",
        "terminalfont",
        "terminalsize",
        "terminaltheme",
        "cpu",
        "cpuusage",
        "gpu",
        "memory",
        "swap",
        "disk",
        "battery",
        "poweradapter",
        "player",
        "media",
        "publicip",
        "localip",
        "wifi",
        "datetime",
        "locale",
        "vulkan",
        "opengl",
        "opencl",
        "users",
        "bluetooth",
        "sound",
        "camera",
        "gamepad",
        //"weather",  // hangs on my network
        "netio",
        "diskio",
        "physicaldisk",
        "version",
        "break",
        "colors"
    ]
}

Output of fastfetch -c ci.jsonc --format json:

2024-04-30 16:46:00.939 fastfetch[35239:5582489] WARNING: AVCaptureDeviceTypeExternal is deprecated for Continuity Cameras. Please use AVCaptureDeviceTypeContinuityCamera and add NSCameraUseContinuityCameraDeviceType to your Info.plist.
[
  // ...
  {
    "type": "Sound",
    "result": [
      {
        "active": true,
        "main": false,
        "volume": null,
        "name": "MacBook Pro Speakers",
        "identifier": "75"
      },
      {
        "active": true,
        "main": true,
        "volume": 27,
        "name": "mick-airpods",
        "identifier": "107"
      }
    ],
    "stat": 65
  },
  {
    "type": "Camera",
    "result": [
      {
        "name": "FaceTime HD Camera",
        "vendor": "Apple Inc.",
        "colorSpace": "sRGB",
        "id": "3F45E80A-0176-46F7-B185-BB9E2C0E82E3",
        "width": 1920,
        "height": 1080
      }
    ],
    "stat": 92
  },
  {
    "type": "Gamepad",
    "error": "No devices detected",
    "stat": 1
  },
  {
    "type": "Weather",
    "error": "Invalid response",
    "stat": 1001
  },
  {
    "type": "NetIO",
    "result": [
      {
        "name": "en0",
        "defaultRoute": true,
        "txBytes": 1024,
        "rxBytes": 1024,
        "txPackets": 14,
        "rxPackets": 10,
        "rxErrors": 0,
        "txErrors": 0,
        "rxDrops": 0,
        "txDrops": 0
      }
    ],
    "stat": 0
  },
  {
    "type": "DiskIO",
    "result": [
      {
        "name": "APPLE SSD AP1024Z Media",
        "devPath": "/dev/disk0",
        "bytesRead": 2019328,
        "bytesWritten": 7454720,
        "readCount": 420,
        "writeCount": 452
      }
    ],
    "stat": 1
  },
  {
    "type": "PhysicalDisk",
    "result": [
      {
        "name": "APPLE SSD AP1024Z Media",
        "devPath": "/dev/disk0",
        "interconnect": "Apple Fabric",
        "kind": "SSD",
        "size":<PHONE_NUMBER>440,
        "serial": "0ba01e4420d84831",
        "removable": false,
        "readOnly": false,
        "revision": "359.60.3",
        "temperature": null
      }
    ],
    "stat": 1
  },
  {
    "type": "Version",
    "result": {
      "projectName": "fastfetch",
      "architecture": "aarch64",
      "version": "2.10.2",
      "versionTweak": "",
      "cmakeBuiltType": "Release",
      "compileTime": "Apr 23 2024, 05:46:23",
      "compiler": "Apple clang 15.0.0 (15000309)",
      "debugMode": false,
      "libc": "libSystem 1345.100.2"
    },
    "stat": 0
  },
  {
    "type": "Break",
    "error": "Unsupported for JSON format",
    "stat": 0
  },
  {
    "type": "Colors",
    "error": "Unsupported for JSON format",
    "stat": 0
  }
]

Output of fastfetch --list-features:
threads
vulkan
imagemagick7
chafa
zlib
sqlite3

Should be fixed in dev branch


[SPARK-47456][SQL] Support ORC Brotli codec

What changes were proposed in this pull request?
This PR aims to support ORC Brotli codec.
Why are the changes needed?
Currently, the master branch of Spark has used ORC 2.0.0 version and supports brotli compression encoding. (SPARK-44115)
However, due to some hardcode checks in Spark, brotli cannot be used normally.
set spark.sql.orc.compression.codec=BROTLI;

java.lang.IllegalArgumentException: The value of spark.sql.orc.compression.codec should be one of uncompressed, lz4, lzo, snappy, zlib, none, zstd, but was brotli

See https://github.com/apache/orc/pull/1714
Does this PR introduce any user-facing change?
Yes
In this PR, add the corresponding brotli jar package, we can use orc brotli encoding.
    <dependency>
      <groupId>com.aayushatharva.brotli4j</groupId>
      <artifactId>brotli4j</artifactId>
    </dependency>

REF: https://github.com/netty/netty/blob/3cd364107167600e8eb4b0b85553ed895519e2ed/codec/pom.xml#L91-L125
How was this patch tested?
local test

Was this patch authored or co-authored using generative AI tooling?
No

Merged to master for Apache Spark 4.0.0.
Thank you, @cxzl25 , @yaooqinn , @LuciferYang !


Long run of "kubectl run" does not refresh IAM token

BUG REPORT
Kubernetes version : v1.11.1
Environment:

Cloud provider or hardware configuration: Kubernetes cluster on EKS, kubectl on Mac

What happened:
When I'm running container with --stdin=true on EKS cluster for 20-30min, container app complete  successful, but kubectl return an error:
$ time kubectl run --rm -i sleep --restart=Never --image=ubuntu:precise -- sleep 999
If you don't see a command prompt, try pressing enter.
pod "sleep" deleted
error: You must be logged in to the server (the server has asked for the client to provide credentials (get pods))

real	16m41.928s
user	0m0.332s
sys	0m0.125s

It seems that kubectl run does internally call get pods and it doesn't refresh IAM token.
What you expected to happen:
Check creds exprication ttl and refresh them as needed.
How to reproduce it (as minimally and precisely as possible):
$ time kubectl run --rm -i sleep --restart=Never --image=ubuntu:precise -- sleep 999

I'm using this workaround currently, to run jobs for long time and get logs from them:
kubectl run sleep --restart=Never --image=ubuntu:precise -- sleep 999

until [[ `kubectl get pod sleep -o json | jq -r '.status.phase'` =~ (Succeeded|Failed) ]]; do
  sleep 10
done

kubectl logs sleep

kubectl delete pod sleep

/remove-lifecycle stale

I'm not sure if I'd classify this as a bug. I think AWS has something specifically for re-authenticating kubeconfigs:
https://github.com/kubernetes-sigs/aws-iam-authenticator

@seans3
Given that the issue is with AWS IAM (not kubectl), and given that AWS has a tool for this (see above), do you think we can close this issue?

Yes. I agree with @pswica. Closing this issue.
/close


Where are the files?

There are no files for this book

Hi @rioj7  there won't be any code files for this since the author didn't provide them to us. This book has been removed from sale.


apple和google站点采用full匹配问题

发现本项目将上游这两个列表都采用了full匹配，而上游原本是使用domain匹配的。
现在发现一些问题，比如a100.phobos.apple.com这个域名，原本会被直连apple列表的phobos.apple.com这个域名匹配到，但是因为本项目采用full匹配所以会漏掉此类域名，然后可能被geolocation-!cn里的domain:apple.com匹配到然后走远程解析了，这只是举例之一的域名，现实可能会有诸如此类的大量后缀域名没被匹配到。
有个疑问是上游这两个列表应该是采用后缀域名的手法抓出来的，但是在本项目中则被用于full匹配，是否会失去这两个列表存在的意义。

这个问题就算使用加强版geosite使用apple-cn采用直连也会因为full匹配漏掉那些域名。
https://github.com/IrineSistiana/mosdns-cn/issues/18

解释过了：https://github.com/Loyalsoldier/v2ray-rules-dat/issues/163

是否可以考虑增加一个轻量版geosite，类似黑白名单的， 将domain-china，apple-cn ，google-cn这三个列表归类为geosite:cn ，然后将gfwlist , greatfire这两个归类为geosite: geolocation-!cn

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
Jun10ng, @GZ-arch, @aadd445aadda, @YankeeTsao, @AndyYuan96, @linkff, @scqsu, @tangfi, @JunfengAn1998, @IMRubySeven7, @edward-g1g2, @gensy421, @ianshen, @michaelbennn, @Hector-Chong, @zmzimpl, @code-scan, @devilisdog, @stephen-net, @wunshine, @ashirleyshe, @YuanHHHH, @cccZc, @ShuGary, @azoth1991, @LIUKUN0805, @EsqerYasen, @Fnacho0031, @yux829, @FWangZil, @marsxingzhi, @wangjianyeART, @Lenny-Lee-ustb, @DuGBT, @XanderShum, @Laurencebuttru, @fms5cmS, @im-oss, @maxiaobinop, @Wbqqqq, @SBFPGLN, @kkthmyh, @leeggco, @0xXuZhang, @Xanonymous-GitHub, @Dlyoungml, @Zhao-Yulong, @706462694xiao, @Jianghuchengphilip, @xiaoerbao

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
timching, @ebarakazuhiro, @posrix, @lunochkin, @steffensbola, @emrahyumuk, @shuo625, @GZ315200, @syunc, @dnlowman, @abhinaykumar, @sukso96100, @Kallaran, @FrankKai, @dev-aly3n, @futurebank-team, @MitchellMarkGeorge, @yuanaichi, @Raincal, @chhk-dev, @Thivieira, @svpplynd3mand, @gitE0Z9, @yaphone, @huyimin, @TrejGun, @alvesjtiago, @yongzhihuang, @DefaultGimmick, @johntran, @nguyennv, @BeratOz01, @wudcwctw, @rdazvd, @andyhuang123, @Githiora, @shaching, @x011, @slumber1122, @k-venu, @DRL25, @ankitpal1029, @xchehub, @ygeezus, @Demerjianm, @asdwsxzc123, @dskweb3, @henzljw, @rafaelaugustos, @Qkangkang

Blastoff.zone: Earn 1 ETH + $500 Bonus!
Congratulations! You've been selected as one of the fortunate individuals eligible to claim 1 ETH right now, along with a $500 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500 bonus.
Utilize the "Claim Now" option to secure your tokens.

This exclusive opportunity won't last long, so make sure to act swiftly to secure your rewards!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 100 tokens already claimed, seize this chance before it's too late!
guoyaohua, @qq8057656qq, @xiqicpt, @tqltech, @Deanewang, @hshe, @zhaokejie, @brian2gh, @DevincodeL, @cysuncn, @AndyYuan96, @qhme, @sy99520, @Sam-Mey, @lovelyzhao, @kzkzzkkz, @qq1635161064, @CryptGodSon, @111wang222, @sqhu, @Harry-1012, @wangyue20075, @channing, @doomwaka, @766009789, @thelosian, @kcobra, @Quanter2021, @jiujiu404, @makingagent, @cuteapi, @L-Zhe, @leonasd, @bistatic, @yangning1123, @Halen88, @caowei1119, @anjia0532, @Moicalxb, @MoMoAbc, @subercui, @willgoo777, @GoalGoalGoal, @leavingme, @Corleonedele, @leonboxer, @sharpron, @zuiyangqingzhou, @yxzt11, @KardelShaw


Multi-Auth using Token Guards with different storage key types

Environment:

Laravel Version: 6.0.3 (technically doable since 5.6)
PHP Version: 7.3.8
Database Driver & Version: SQL Server 2014

Description:
I have a project that uses multiple forms of authentication, two of which are token guards.
One of the token guards has overridden the storage key name to be the primary key of the authorizing model. This was a requirement in our business as the client wanted to only use a single key, and they already knew the primary key of the model. When authenticating under this model, a request parameter of "user_id" is provided. I'll refer to this guard as the "customer" guard.
The second token guard, which authenticates a different model type, uses the more traditional storage key name of "api_token". Additionally, the authentication for this model goes through the bearer token in the request header. I'll refer to this guard as the "client" guard.
I have a use-case that requires both forms of authentication within the same request. Our application services several clients and customers, and certain customers are shared between multiple clients. We have a customer portal, some of which are client-branded, and therefore the portal uses the client authentication to establish the entity making the request, but the person signed into the portal is the customer.
However, there are a few key endpoints where only the client is authenticated, and not the customer. These are typically for customer authentication routes (like login, register, etc.), and only the information for the client authentication is provided.
Unfortunately, the request results in a bearer token intended for the client guard, but the customer guard is also capable of picking it up (as that is the intended fallback when the request input parameter is missing). This ends up throwing an exception, as the api token (which is a string) is compared against the customer id column (which is an integer). On SQL Server databases, this violates the schema and results in an exception.
Steps To Reproduce:
Register two guards "customer" and "client", with the following configuration:
'guards' => [
    'customer' => [
        'driver' => 'token',
        'provider' => 'customers',
        'input_key' => 'user_id',
        'storage_key' => 'id'
    ],
    'client' => [
        'driver' => 'token',
        'provider' => 'clients'
    ]
]

Then submit a request containing a bearer token (intended for the "client" guard), and at any point during the request, ask for the authenticated customer (via Auth::guard('customer')->user()).
Recommendation:
I can think of two solutions to this problem:
1) Don't look for a bearer token when an input key is explicitly provided
This would change the token guard to ignore the bearer token in the "customer" guard, and therefore return null (which is the result I'm expecting).
2) Add a "storage_key_type" parameter
If we could add a "storage_key_type" parameter, as set it as "integer", then if the bearer token was recognized as non-numeric, it would ignore it and return null (which is the result I'm expecting).

Laravel Version: 6.0.3 (technically doable since 5.6)
PHP Version: 7.1.1

This isn't even possible since Laravel 6.0 requires PHP 7.2
Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to report back and I'll gladly help you out and re-open this issue.

Laracasts Forums
Laravel.io Forums
StackOverflow
Discord
Larachat
IRC

Thanks!

@driesvints My apologies. My PHP installation was swapped out for a Laravel 5.1 application when I ran php -v. The Laravel 6 application actually runs on PHP 7.3.8. I'll update the description.
I'm reporting this as a bug as I believe my issue describes a violation of the multi-auth agenda for token guards. Currently, I am unable to have two configured token guards (where one uses a string storage key for bearer tokens, and the other uses an integer storage key for request input) and pass a bearer token (intended for the string-storage token guard).
Since Laravel will check for a bearer token (even if I've opted for a custom input key, and have no intention of using a bearer token for that guard), the database will throw an exception when it compares a string value against an integer column.
To be clear, this is the section of code that is behaving in such a way that causes my issue:
https://github.com/laravel/framework/blob/6.x/src/Illuminate/Auth/TokenGuard.php#L92-L114
/**
 * Get the token for the current request.
 *
 * @return string
 */
public function getTokenForRequest()
{
    $token = $this->request->query($this->inputKey);

    if (empty($token)) {
        $token = $this->request->input($this->inputKey);
    }

    if (empty($token)) {
        $token = $this->request->bearerToken();
    }

    if (empty($token)) {
        $token = $this->request->getPassword();
    }

    return $token;
}

Specifically, lines 105 to 107 look for a bearer token when a token couldn't be found in the request. Technically, it will find a bearer token, but it shouldn't be ingesting it, as I told the integer-storage guard to expect the api token to be in the request.

I don't have time atm to deep dive into this but appreciating if anyone else can help out.

@driesvints
Is there any additional information that I can provide for you, or are you just looking for someone (other than me) to verify and replicate the issue?

Hey @tylernathanreed. I've been looking into this again and what you're asking is basically a change in behavior. The TokenGuard never was documented and I think it's the lack of that that's causing the confusing here. As you noted with the link to the affecting code, when no input key can be found, the TokenGuard falls back on checking for a bearer token. This is the expected behavior.
What you could do is implement your custom TokenGuard that doesn't follows this behavior or open up an issue on the ideas repo to propose alterations be made to the TokenGuard.


Editing the account’s information.

Editable account information (not displayed on profile):

Password (mandatory)
Email address (mandatory)

Profile information (displayed publicly on profile):

FCs/IGNs/TSVs (optional)
Third-party side authentication (reddit, twitter?)

Preferences:

Unlisted/listed for new boxes
Default privacy setting for new uploads
Default privacy setting for new Pokémon notes

I shall implement the frontend to this if not already done on the 25th/26th of June.

Oops, closed the wrong one.

Picking this up again.

I'll split out the email and the third-party sites bits.

Pretty much everything on this list is done except for editing one's email account, and we now have a separate issue for that: #377


docs(readme): update player implementation

Description
Adjusts the readme to inform the correct way to implement a Player entity

Thanks!


Fix for not being able to write to the working directory

When check_website runs wget it expects to be able to write to its working directory.  When it cannot wget returns an error and the check fails.  This patch writes the files to /dev/null so that they're never created in the first place.  This also means we don't have to pass the delete files flag.  Multiple people are having an issue with this as mentioned on the bottom of this page: http://exchange.nagios.org/directory/Plugins/Websites,-Forms-and-Transactions/nagios-2Dcheck-2Dwebsite/details

Whoops.  You can ignore commit # 7081982 in this request.

I wonder why I never got a noticification from nagios.org. Thank you!


User-Agent

Is there a way to change the user-agent permanently? I need it in order to open YouTube TV (i like to use it to just leanback and watch youtube without having to touch my mouse).

Instead of exposing an option to modify the user-agent I think it would be best to just add a home screen button for Youtube TV and have it auto override. I will look into this for ElectronPlayer v3 which will hopefully be out sometime soon. Which user-agent do you use, my research showed multiple and people reported some didn't work?

I'm using this user-agent "Mozilla/5.0 (DirectFB; Linux x86_64) Cobalt/40.13031-qa (unlike Gecko) Starboard/1"

Instead of exposing an option to modify the user-agent I think it would be best to just add a home screen button for Youtube TV and have it auto override.

:100: agree with this.
The “YouTube™ for TV” browser extensions (for Chrome, for FF currently use this UA:
Mozilla/5.0 (SMART-TV; Linux; Tizen 5.0) AppleWebKit/538.1 (KHTML, like Gecko) Version/5.0 NativeTVAds Safari/538.1

Looks like this was closed in 8914a52764a8184c68b2c8c3b4049a706be8153e already?


Update Composer dependencies (2020-10-09-00-04)

Visual regression test passed!
View the visual regression test report


How to add new firewall ips inside vdom addresses using port 8443?

Hi @vladimirs-git
Really appreciate your efforts to maintain this project.
I have query regarding adding new IPs under VDOM. We have below function which actually add IPs to firewall.
*response = api.cmdb.firewall.address.create(data)
Also, is it possible to use port 8443 for create firewall address operation?
Thanks!

To use another TCP port, initialize the FortigateAPI with the port parameter.
Before adding an address to a specific VDOM, initialize the FortigateAPI with the vdom parameter
and after that call create method

    from fortigate_api import FortiGateAPI

    api = FortiGateAPI(host="HOST", username="USERNAME", password="PASSWORD", port=8443, vdom="VDOM")
    data = {
        "name": "ADDRESS",
        "obj-type": "ip",
        "subnet": "<IP_ADDRESS> <IP_ADDRESS>",
        "type": "ipmask",
    }
    response = api.cmdb.firewall.address.create(data)
    print(f"address.create {response}")

For usage examples, you can refer to the following links:
https://github.com/vladimirs-git/fortigate-api/blob/main/examples/cmdb/firewall/address.py#L107
https://github.com/vladimirs-git/fortigate-api/blob/main/examples/fortigateapi.py#L28
The best thanks is to star this project

Thanks!