Trainer class impossible to use when installed via pip on Windows

I am trying to use the Trainer class from transformers module on Windows 10, python 3.10 and CUDA 12.1 and all modules installed using pip.
nvcc --version :
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Wed_Feb__8_05:53:42_Coordinated_Universal_Time_2023
Cuda compilation tools, release 12.1, V12.1.66
Build cuda_12.1.r12.1/compiler.32415258_0

cuda available:
torch.cuda.is_available() #True

But when I tried to import Trainer:
from transformers import Trainer

I got a huge log error:
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths...
The following directories listed in your path were found to be non-existent: {WindowsPath('/usr/local/cuda/lib64')}
DEBUG: Possible options found for libcudart.so: set()
CUDA SETUP: PyTorch settings found: CUDA_VERSION=121, Highest Compute Capability: 8.6.
CUDA SETUP: To manually override the PyTorch CUDA version please see:https://github.com/TimDettmers/bitsandbytes/blob/main/how_to_use_nonpytorch_cuda.md
CUDA SETUP: Loading binary D:\Program Files\Python310\lib\site-packages\bitsandbytes\libbitsandbytes_cuda121.so...
argument of type 'WindowsPath' is not iterable
CUDA SETUP: Problem: The main issue seems to be that the main CUDA runtime library was not detected.
CUDA SETUP: Solution 1: To solve the issue the libcudart.so location needs to be added to the LD_LIBRARY_PATH variable
CUDA SETUP: Solution 1a): Find the cuda runtime library via: find / -name libcudart.so 2>/dev/null
CUDA SETUP: Solution 1b): Once the library is found add it to the LD_LIBRARY_PATH: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:FOUND_PATH_FROM_1a
CUDA SETUP: Solution 1c): For a permanent solution add the export from 1b into your .bashrc file, located at ~/.bashrc
CUDA SETUP: Solution 2: If no library was found in step 1a) you need to install CUDA.
CUDA SETUP: Solution 2a): Download CUDA install script: wget https://github.com/TimDettmers/bitsandbytes/blob/main/cuda_install.sh
CUDA SETUP: Solution 2b): Install desired CUDA version to desired location. The syntax is bash cuda_install.sh CUDA_VERSION PATH_TO_INSTALL_INTO.
CUDA SETUP: Solution 2b): For example, "bash cuda_install.sh 113 ~/local/" will download CUDA 11.3 and install into the folder ~/local

and
RuntimeError: Failed to import transformers.trainer because of the following error (look up to see its traceback):

        CUDA Setup failed despite GPU being available. Please run the following command to get more information:

        python -m bitsandbytes

        Inspect the output of the command and see if you can locate CUDA libraries. You might need to add them
        to your LD_LIBRARY_PATH. If you suspect a bug, please take the information from python -m bitsandbytes
        and open an issue at: https://github.com/TimDettmers/bitsandbytes/issues

Trying to debug the bitsandbytes *.py files, on cuda_setups, there is a module called "env_vars":
https://github.com/TimDettmers/bitsandbytes/blob/main/bitsandbytes/cuda_setup/env_vars.py
Apparently it would only work with conda, is that right?
So is there any workaround to make this work?

Bitsandbytes was not supported windows before, but my method can support windows.（yuhuang）
1  open folder J:\StableDiffusion\sdwebui，Click the address bar of the folder and enter CMD
or WIN+R, CMD  。enter，cd /d J:\StableDiffusion\sdwebui
2  J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes
3 J:\StableDiffusion\sdwebui\py310\python.exe -m pip uninstall bitsandbytes-windows
4 J:\StableDiffusion\sdwebui\py310\python.exe -m pip install https://github.com/jllllll/bitsandbytes-windows-webui/releases/download/wheels/bitsandbytes-0.41.1-py3-none-win_amd64.whl
Replace your SD venv directory file（python.exe Folder） here（J:\StableDiffusion\sdwebui\py310）


Forgotten Link - Title (Cosmetics) (Old 94)

In gitlab by @A-Lawrence on Aug 31, 2015, 01:10
The title on the forgotten link page says "Forgotten_Link".
Also change the title on Forgotten.
Maybe both should be "Forgotten Password"...

In gitlab by @A-Lawrence on Aug 31, 2015, 01:16
Changed titles on forgotten password pages.  Resolves issue #488602 (94).
ÔåÆ <<cset 7c88d3528fde>>
ALawrence66 - 2013-11-11T19:41:49.168011+00:00


PR for correcting new suggestions [ Draft ]

Summary
Please describe what this PR changes as concisely as possible. Link to the issue(s) that this addresses, if any.
Details and comments
#1268
Some details that should be in this section include:

Why this change was necessary
What alternative solutions were considered and why the current solution was chosen
What tests and documentation have been added/updated
What do users and developers need to know about this change

Note that this entire PR description field will be used as the commit message upon merge, so please keep it updated along with the PR. Secondary discussions, such as intermediate testing and bug statuses that do not affect the final PR, should be in the PR comments.
PR checklist (delete when all criteria are met)

[x] I have read the contributing guide CONTRIBUTING.md.
[ ] I have added the tests to cover my changes.
[ ] I have updated the documentation accordingly.
[ ] I have added a release note file using reno if this change needs to be documented in the release notes.

I accidently closed


Missing explanation on enableWindowsRecordingRules  via Azure Portal

The final step of the "Enable Windows metrics collection" section on enabling Windows recording rules does not mention if it is possible to perform it via the Azure Portal, or not:

The lack of the clarification leaves readers possibly confused, for example, if a user enables managed Prometheus and Grafana for an existing AKS cluster, then is az aks update the only option or can it be done via the Portal?

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 58a1690b-c20f-b07e-29b9-1a8f98528114
Version Independent ID: c58b4d70-1b2f-166f-8a23-935410e23ca9
Content: Enable Azure Monitor managed service for Prometheus - Azure Monitor
Content Source: articles/azure-monitor/essentials/prometheus-metrics-enable.md
Service: azure-monitor
Sub-service: essentials
GitHub Login: @EdB-MSFT
Microsoft Alias: edbaynash

@mloskot
Thanks for your feedback! We will investigate and update as appropriate.

@mloskot, Thank you for the feedback.
@EdB-MSFT, could you please review this issue and share your thoughts. Thank you

Hi @mloskot , my apologies for the delayed response.
Recording rules are created as a part of the onboarding done through the Portal, however, they are not enabled See Azure Monitor managed service for Prometheus rule groups to enable rules via the portal.

#please-close


relabel 'phenotype' classes

The CP subset of has classes such as

CP_0000037 "increased nucleus size"
EquivalentTo nucleus and bearer_of some increased_size

The label is misleading. Should be relabeled "large nucleus" or something
similar

Original issue reported on code.google.com by<EMAIL_ADDRESS>on 25 Jun 2013 at 10:32

WARNING: This issue has been automatically closed because it has not been updated in more than 3 years. Please re-open it if you still need this to be addressed – we are now getting some resources to deal with such issues.


RFM - domainhostingview

I DON'T Want To Become The Maintainer

[x] I have followed the Package Triage Process and I do NOT want to become maintainer of the package;
[x] There is no existing open maintainer request for this package;

Checklist

[x] Issue title starts with 'RFM - '

Existing Package Details
Package URL: https://chocolatey.org/packages/domainhostingview
Package source URL: https://github.com/dtgm/chocolatey-packages/tree/master/automatic/domainhostingview/
Date the maintainer was contacted (in YYYY-MM-DD): 2021-12-13
How the maintainer was contacted: email

Hello,
This package is ready on my even if the project hasn't any update for a while now.
I'll request to be added as maintainer in case they update it ;-)


Impossible to compile the source

Hi,
I tried to compile the xennet sources and I got some issues. The Makefile in the LINUX directory is
not working because it tries to access /usr/src/linux-source-4.4.0/include/generated/uapi/linux/version.h that does not exist.
I would like to know if xennet is up do date if I do something wrong?

Hi,
try to use an older kernel which is < 4.0. We did not update the included netmap version.
Thanks


Add PHP 7.3 runtime to the docker-compose manifest

Add support for the new PHP 7.3 runtime as per https://github.com/apache/incubator-openwhisk/issues/4174

minor nit, need to add image to Makefile for docker-pull-full
Done.


How can I recover realsense devices stuck in DFU mode in command line?

As the title says, I find that there is no exiting DFU function in intel-realsense-dfu linux version. But windows version has. It's a little bit inconvenient for me.  Once I try to read device firmware version using intel-realsense-dfu, device will always stuck in DFU mode. So I can't use the camera unless re-plug it.
Could you please add a parameter for intel-realsense-dfu in case to exit from DFU mode?

@seebq @wspr @martinus @chachi Any body here can help me?

Hi
Yes, that's the known issue. Can you please check the firmware by using LibRealSense?
Thanks


Mapper unit testing: write documentation

Tim's mapper unit testing framework needs documentation, especially because it uses pytest in an unconventional way. See Barbara's scratch notes below on what to document.

Scratch notes on what to include in documentation:
how to write tests

base_helper.generate_value_for() -- when would we set the schema type to an actual string value? I guess it might be helpful at some point. Document usage.
helpers must be named like mappers, but camel case
general pointers on how to setup a mock request would also be helpful
explanation of how pytest is being used in an unconventional way, i.e. one test iterates over all mappers. See more detail here.
how to use cascading merged schemas

cascading schemas should mirror the hierarchy of the mappers
right now, coverage is in contentdm_helper SCHEMA rather than oai_helper. We should decide what should go where and document that.

how to run tests
We're using pytest, and these are the options you can supply (e.g. pytest metadata_mapper/test/ to run test for all mappers; `pytest metadata_mapper/test/ --mapper=contentdm


count() does not work for hopscotch_set

It seems that there is an issue with count() for tsl::hopscotch_set. In the simple following example:
tsl::hopscotch_set<std::string> s;
s.find(std::string{"abc"});
s.count(std::string{"abc"});

I get "no matching overloaded function found" in hopscotch_hash.h:1124 on Visual Studio 2015 for count() however find() works OK.
Note that such code is also OK:
tsl::hopscotch_map<std::string, int> s;
s.find(std::string{"abc"});
s.count(std::string{"abc"});

Thank you for the report. The bug should be fixed.


Remove ansible-requirements.txt

This file is not really a requirements file but a upper-constraints file but the current content does not define any constraints so can be removed.
We probably need this later when we pin ansible to a specific version but the file can be re-added at that time.

+2 for me, but I'd ask for a review from CI folks since zuul playbooks are involved.

/lgtm
I don't see why we should keep any empty file. Let's clean the tree!

Fixed the missing signed-off tag in the commit message


Awesome to see some new development!

@Shaquu  - it's awesome to see some new development here. I use this plugin for the bulk of my smarthome, it has been fantastic (good job all those who have come before).
I'm curious if you have a few minutes to answer a couple of questions:
1-what changes have you made (where could I find a changelog?)
2-do you have any goals or roadmap of what you're planning to do next here?
I always like to be sure I know what's changing before I put things in action at home in case I'm going to break something important. I see you put in the PR from @radokristof - I was helping him figure that out a few months ago I'm glad to see it in the production version.
The other things I've seen around are adding things like battery status to be part of all of the services and adding "official" homekit devices into node red. Battery status will be awesome. If I were in charge I would say that adding official homekit devices into node red may be better placed in a separate node red flow. Just my two cents.
Keep up the great work! I'll be watching!

There is also a new openhab2 node!
However yes it would be great that new deviceType will included/fixed. Like FilterMaintenance, Speaker is included but HomeKit says these are not supported (I think it is deprecated). Do you plan to include these also in your fixes or just some bug fixes?

@crxporter thanks for a kind word :+1:

Changelog is available in PR merge to master #40 - release 0.5.0
I have planty of goals but will tell about them just in a minute...

First thing about breaking stuff with new versions.
As ex software tester and current developer I am aware of backward compatibility.
For now, I try to test everything in some way before releasing.
In short, 0.5.0 should be backward compatible.
A thing which is not defined in README (yet) is that we will use semver versioning for this project. So version is MAJOR.MINOR.PATCH.
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards-compatible manner, and
PATCH version when you make backwards-compatible bug fixes.
Time for some current goals:

make project compatible with node 7 which I sadly broke (fix is on the way...)
more refactoring of current code
add support for linked services
adding camera to accesory
make doorbell and battery status work (maybe Speaker)
ability to integrate with other homebrdige accesories made outside of node-red
adding official homekit devices (can be difficult so its an idea phase for now)

@radokristof again, thanks for contribution :+1:
Yes, It's important for me to fix known bugs here. But so much depend on Hap-nodejs...
I wrote it on the run. If you have any question or ideas then I am waiting for it! :100:
And Yes, for integrations with outer devices there will be new node.

There is also a new openhab2 node!

Cool! I hadn't seen this yet I'm going to check it out.
@Shaquu - the list of goals looks awesome. Count me in as one who will be happy to use nearly all of that. Doorbell will push me to finally run that wire from my attic to my pi. Linked services will help me support "batteries" and maybe I can take "null" states and pass them to homebridge as "unavailable" or something. I can move my homebridge-camera-rpi over to node-red.
One thing I haven't been able to figure out is having a rachio-style "irrigation system". My current setup for sprinklers is to have 4 individual valves. This works fine but there is one feature I don't get which is possible on rachio 3 native homekit. This feature is the ability to say "water all zones" which will, obviously, water each zone sequentially. My current setup for sprinklers only lets me run one zone at a time so I can't do "hey siri water the whole yard" instead I have to run the front yard then later say water the back yard. Hopefully this makes sense - maybe it's already available, here is a screenshot I've seen online of what the rachio looks like:

I'm very excited for all of this. Feel free to close this thread or leave it open if you'd like input on how users like me think features should work.

I’m very excited as well. Even more when I see that people use it :)
About the sprinklers. Can’t you just make one more button which will enable the rest of valves automatically?
I mean the master valve.
Can you share what’s behind your current configuration? Plugins, configuration files?
Sent with GitHawk

Sprinklers - perhaps I didn't explain well. I don't have a master valve but instead 4 separate zones. The rachio support allows a "water all" command where it will run the sprinkler program so when zone 1 finishes - zone 2 starts - then zone 3 and so on for N zones.
My sprinkler setup is through HTTP calls to the Skydrop API. It's something I've put together myself and works pretty well, I poll every 45 seconds and can start each zone separately which allows me to say "water front yard" then the call will be made to water the front yard for the preset number of minutes.
Current setup looks like this in homekit:

And like this in node-red (each homekit item is a valve service):

This works great but if I understand the rachio setup properly - I could potentially have one controller with 4 zones. Then I can water individual zones but also add a separate API call to Skydrop that says "water all" - in which case it would water each zone sequentially with no further input. Currently I have to go back to the Skydrop app to get that functionality.
I have tried to use the "irrigation system" service in node-red but did not get it to work right. That might be the right way to go about it but I never figured out how to add my zones to the irrigation system.
Node-red flow:
[{"id":"d912f6b9.c834f8","type":"function","z":"ce950a3e.629368","name":"Zone 4","func":"if(msg.hap.context !== undefined){\n    OutMsg={};\nif(msg.payload.Active==1){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"zones/4/water.zone\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\nif(msg.payload.Active===0){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"water.stop\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\n}\n","outputs":1,"noerr":0,"x":660,"y":300,"wires":[["22892d5.8d79b52"]]},{"id":"d0016748.9b9ea","type":"homekit-service","z":"ce950a3e.629368","bridge":"4b4fbb6e.6cfaec","name":"Back Yard","serviceName":"Valve","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":490,"y":300,"wires":[["d912f6b9.c834f8"]]},{"id":"22892d5.8d79b52","type":"delay","z":"ce950a3e.629368","name":"Limit","pauseType":"rate","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":850,"y":240,"wires":[["f333ac89.73fa08"]]},{"id":"23523fb3.9a2d2","type":"function","z":"ce950a3e.629368","name":"Status","func":"if(msg.payload.success === true){\nvar zone1={};\nvar zone2={};\nvar zone3={};\nvar zone4={};\nvar i;\nfor (i=0;i<8;i++){\n    if (msg.payload.zone_states[i].zone_id==1){\n        zone1.payload=msg.payload.zone_states[i];\n    }\n    if (msg.payload.zone_states[i].zone_id==2){\n        zone2.payload=msg.payload.zone_states[i];\n    }\n    if (msg.payload.zone_states[i].zone_id==3){\n        zone3.payload=msg.payload.zone_states[i];\n    }\n    if (msg.payload.zone_states[i].zone_id==4){\n        zone4.payload=msg.payload.zone_states[i];\n    }\n}\nvar hk1={};\nvar hk2={};\nvar hk3={};\nvar hk4={};\nvar runningMsg={};\nif(zone1.payload.zone_watering===false){\n    hk1.payload={\"Active\":0,\"InUse\":0,\"RemainingDuration\":zone1.payload.time_left*60}\n}\nif(zone1.payload.zone_watering===true){\n    hk1.payload={\"Active\":1,\"InUse\":1,\"RemainingDuration\":zone1.payload.time_left*60}\n    runningMsg.payload=\"trigger\";\n}\nif(zone2.payload.zone_watering===false){\n    hk2.payload={\"Active\":0,\"InUse\":0,\"RemainingDuration\":zone2.payload.time_left*60}\n}\nif(zone2.payload.zone_watering===true){\n    hk2.payload={\"Active\":1,\"InUse\":1,\"RemainingDuration\":zone2.payload.time_left*60}\n    runningMsg.payload=\"trigger\";\n}\nif(zone3.payload.zone_watering===false){\n    hk3.payload={\"Active\":0,\"InUse\":0,\"RemainingDuration\":zone3.payload.time_left*60}\n}\nif(zone3.payload.zone_watering===true){\n    hk3.payload={\"Active\":1,\"InUse\":1,\"RemainingDuration\":zone3.payload.time_left*60}\n    runningMsg.payload=\"trigger\";\n}\nif(zone4.payload.zone_watering===false){\n    hk4.payload={\"Active\":0,\"InUse\":0,\"RemainingDuration\":zone4.payload.time_left*60}\n}\nif(zone4.payload.zone_watering===true){\n    hk4.payload={\"Active\":1,\"InUse\":1,\"RemainingDuration\":zone4.payload.time_left*60}\n    runningMsg.payload=\"trigger\";\n}\nif(runningMsg.payload==\"trigger\"){\n    return[hk1,hk2,hk3,hk4,runningMsg];\n}\nif(runningMsg.payload!=\"trigger\"){\n    return[hk1,hk2,hk3,hk4,null];\n}\n}\nif(msg.payload==\"type1\"){\n    msg.payload={\"ValveType\":1};\n    return[msg,msg,msg,msg,null];\n}","outputs":5,"noerr":0,"x":230,"y":140,"wires":[["43e2aaf7.8063a4"],["e20e5ad2.dced38"],["1489c83f.e4e24"],["d0016748.9b9ea"],["e5cad50b.ed7cb"]]},{"id":"5b244d25.d93ae4","type":"function","z":"ce950a3e.629368","name":"Water State","func":"OutMsg={};\nvar accessT = global.get(\"AccessToken\")\nvar uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\nvar command=\"water.state\"\nvar text=\"?access_token=\"\nOutMsg.url=uri.concat(command,text,accessT)\nOutMsg.method=\"GET\"\nreturn OutMsg;\n","outputs":1,"noerr":0,"x":650,"y":360,"wires":[["22892d5.8d79b52"]]},{"id":"d5db22ca.2bad6","type":"function","z":"ce950a3e.629368","name":"Zone 2","func":"if(msg.hap.context !== undefined){\n    OutMsg={};\nif(msg.payload.Active==1){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"zones/2/water.zone\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\nif(msg.payload.Active===0){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"water.stop\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\n}","outputs":1,"noerr":0,"x":660,"y":180,"wires":[["22892d5.8d79b52"]]},{"id":"54ca21bd.bf0bc","type":"function","z":"ce950a3e.629368","name":"Zone 3","func":"if(msg.hap.context !== undefined){\n    OutMsg={};\nif(msg.payload.Active==1){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"zones/3/water.zone\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\nif(msg.payload.Active===0){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"water.stop\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\n}","outputs":1,"noerr":0,"x":660,"y":240,"wires":[["22892d5.8d79b52"]]},{"id":"4023d596.654644","type":"function","z":"ce950a3e.629368","name":"Zone 1","func":"if(msg.hap.context !== undefined){\n    OutMsg={};\nif(msg.payload.Active==1){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"zones/1/water.zone\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\nif(msg.payload.Active===0){\n    var accessT = global.get(\"AccessToken\")\n    var uri=\"https://api.skydrop.com/controllers/329992ba-8009-408d-b46a-1e4a5aee6f1b/\"\n    var command=\"water.stop\"\n    var text=\"?access_token=\"\n    OutMsg.method=\"POST\"\n    OutMsg.url=uri.concat(command,text,accessT)\n    return OutMsg;\n}\n}","outputs":1,"noerr":0,"x":660,"y":120,"wires":[["22892d5.8d79b52"]]},{"id":"f333ac89.73fa08","type":"http request","z":"ce950a3e.629368","name":"HTTP","method":"use","ret":"obj","url":"","tls":"","x":970,"y":240,"wires":[["3b1bfdd7.2f2fc2"]]},{"id":"43e2aaf7.8063a4","type":"homekit-service","z":"ce950a3e.629368","bridge":"4b4fbb6e.6cfaec","name":"Flowers","serviceName":"Valve","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":480,"y":120,"wires":[["4023d596.654644"]]},{"id":"e20e5ad2.dced38","type":"homekit-service","z":"ce950a3e.629368","bridge":"4b4fbb6e.6cfaec","name":"Driveway","serviceName":"Valve","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":480,"y":180,"wires":[["d5db22ca.2bad6"]]},{"id":"1489c83f.e4e24","type":"homekit-service","z":"ce950a3e.629368","bridge":"4b4fbb6e.6cfaec","name":"Front Yard","serviceName":"Valve","manufacturer":"Default Manufacturer","model":"Default Model","serialNo":"Default Serial Number","characteristicProperties":"{}","x":490,"y":240,"wires":[["54ca21bd.bf0bc"]]},{"id":"e5cad50b.ed7cb","type":"trigger","z":"ce950a3e.629368","op1":"","op2":"1","op1type":"nul","op2type":"str","duration":"10","extend":false,"units":"s","reset":"","bytopic":"all","name":"","x":470,"y":360,"wires":[["5b244d25.d93ae4"]]},{"id":"e3c4df23.03229","type":"link in","z":"ce950a3e.629368","name":"Status","links":["c1a9c7c9.52be5"],"x":135,"y":140,"wires":[["23523fb3.9a2d2"]]},{"id":"6d34151c.4d43a4","type":"link in","z":"ce950a3e.629368","name":"LINK","links":["6c142e38.6288f"],"x":535,"y":420,"wires":[["5b244d25.d93ae4"]]},{"id":"3b1bfdd7.2f2fc2","type":"switch","z":"ce950a3e.629368","name":"","property":"method","propertyType":"msg","rules":[{"t":"eq","v":"POST","vt":"str"},{"t":"eq","v":"GET","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":1090,"y":240,"wires":[["6c142e38.6288f"],["c1a9c7c9.52be5"]]},{"id":"fe20a937.d53b88","type":"inject","z":"ce950a3e.629368","name":"45 seconds","topic":"","payload":"","payloadType":"date","repeat":"45","crontab":"","once":false,"onceDelay":0.1,"x":230,"y":400,"wires":[["e5cad50b.ed7cb"]]},{"id":"6c142e38.6288f","type":"link out","z":"ce950a3e.629368","name":"LINK","links":["6d34151c.4d43a4"],"x":1195,"y":220,"wires":[]},{"id":"c1a9c7c9.52be5","type":"link out","z":"ce950a3e.629368","name":"Status","links":["e3c4df23.03229"],"x":1195,"y":260,"wires":[]},{"id":"7fd2a94c.5055d","type":"inject","z":"ce950a3e.629368","name":"Valve Type","topic":"","payload":"type1","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":"1","x":1070,"y":300,"wires":[["c1a9c7c9.52be5"]]},{"id":"4b4fbb6e.6cfaec","type":"homekit-bridge","z":"","bridgeName":"Node Red","pinCode":"514-02-658","port":"","manufacturer":"Garrett Porter","model":"Pi3","serialNo":"Rev.1"}]

Maybe make something like this?
I didn't test it but I think it should work after some adjustments.
There is pseudo flow

Get Next Zone:
var active = flow.get("active") || false;
var lastZone = flow.get("zoneNumber") || 0;

if (!active) {
    lastZone = 0;
} else if (lastZone < 4) {
    lastZone++;
    msg.payload.zone_states[I] //there make a thing that Status block enable zone==lastZone and disable the rest
} else {
    flow.set("active", false);
    lastZone = 0;
}

flow.set("zoneNumber", lastZone);

msg.lastZone = lastZone;

return msg;

Active:
    flow.set("active", true);
} else {
    flow.set("active", false);
}

return msg;```

Check If Running All assign ALL to method.  That would probably work but there is a much easier way if I want to run all... I can just send the HTTP post command to water all. Looks like:
https://api.skydrop.com/controllers/{controller-id}/water.all
I may as well just put a switch that says "water all" then when I turn it on - well you can guess what happens.
The improvement I'm looking for is based on the screenshot I sent earlier about rachio - the valves are all part of one homekit accessory but with multiple zones. I've tried to find the setup in the homekit accessory protocol document but there is nothing about irrigation systems (the document is old). I don't know where to find newer information on the apple webpage.
Don't worry too much about it! If during your work you find the homekit protocol method to combine multiple valves into one irrigation controller - let me know I'll be your first tester!

I'm sure that if Valves looks like as on your screenshot, then rachio uses the IrrigationSystem.
I also looked the document I have for you, but that doesn't include this. I have found a pretty useful website a few months ago with details regarding characteristics and etc. I will try to find them (but I think that doesn't include new HomeKit things as well).

@crxporter I do worry as I really want to make it work for you the way you want this :)
I will think more about this issue.
@radokristof I would like to see this website!
By the way, if you like this module then please rate it on the node-red site:
https://flows.nodered.org/node/node-red-contrib-homekit-bridged
Thanks!

I'm sure that if Valves looks like as on your screenshot, then rachio uses the IrrigationSystem.

Yes I agree. I tried to figure out the irrigation system - but I never could get it to show any valves (zones?) as in the rachio screenshot. I may fiddle with this again tonight and get back to you.
The difference with the irrigation system seems to be that you could do like "run the whole program" (I.e. water all zones). My hold up point is in getting the valves combined into the system.
If I remember correctly, sending {"foo":"bar"} into the irrigation system service didn't provide any results that looked helpful. Just tried it again and see:
Characteristic one cannot be written.
Try one of these: Name, Active, ProgramMode, InUse, Name, RemainingDuration, StatusFault

No mention of zone or hint about how to add a zone to the system...

rate it on the node-red site

Done!

@crxporter give me some time

I have also rated this node!
You are insane! :) Please share also how you manage to setup this... Also maybe if you can have a look at some deviceType which should be great to have for me (like Speaker, FilterMaintenance, etc..)

@crxporter linked services landed on dev branch

@radokristof I will get to your ideas soon I hope :)

linked services landed on dev branch

You're killing me - I had work to do today!! So much for that!
This is awesome.

Thanks! I might be missing something but what does this linket services supposed to do in general?

@Shaquu - Can I get a quick refresher on how to update using the dev branch? I've been just downloading the zip file and copying it to my pi - but that doesn't appear to be working with this.
That or I'm missing how to set up a linked service.

The good news: linked services is amazing.

The sad news: clicking on irrigation system doesn't turn on everything.
I'll program the irrigation controller with 5 valves - my 4 zones plus a "run schedule" or something. I will set up the node red flow to respond with a "water all" command to the controller if I turn on that 5th valve - which will stay on until watering is completed. Easy.
@Shaquu - I've tested the irrigation controller and the battery level/charge status/low battery warning. Linked services are the future! So good.

Stop node-red
Copy and overwrite
Start node-red
There should be a new node on the list on the left called HomeKit Linked.

Wiadomość napisana przez crxporter<EMAIL_ADDRESS>w dniu 06.03.2019, o godz. 18:40:
@Shaquu - Can I get a quick refresher on how to update using the dev branch? I've been just downloading the zip file and copying it to my pi - but that doesn't appear to be working with this.
That or I'm missing how to set up a linked service.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Okay. I am closing this issue for now :)
Thanks for all kind words! I am glad you are there.
You are welcome to give more ideas and contribute with code or with examples at #50 .
#41 is about linked services. If you have problem with it then you can comment there.

PS. @crxporter try experimenting with Characteristics to make it work better.  Let's continue this talk at new Issue to #41 - your choice.

I tried all of the valid characteristics on irrigation system - none made anything “come out” of homekit when pressing the icon in a room.
I’ll be cranking through and discussing documentation at #50

linked services landed on dev branch

You're killing me - I had work to do today!! So much for that!
This is awesome.

By the way. I took a day off to finish this :)


Selector mapping from goq => goquery => cascadia doesn't work as expected

Hi,
I'm using goq and am very happy with it so far.
But now I want to extract CSS links from a <head></head> section of a page and don't get it working.
Here's the HTML:
<!DOCTYPE html>
<html lang="de"
  <head>
    <link rel="stylesheet" type="text/css" href="https://foo.bar/blah1.css"/>
    <link rel="stylesheet" type="text/css" href="https://foo.bar/blah2.css"/>
  </head>
</html>

And the code i'm trying to use:
package main

import (
        "log"
        "os"

        "astuart.co/goq"
)

type Site struct {
        CSS []string `goquery:"head > link[type='text/css'],[href]"`
}

func main() {

        fd, err := os.Open(os.Args[0])
        if err != nil {
                log.Fatalln(err)
        }

        s := &Site{}
        if err = goq.NewDecoder(fd).Decode(&s); err != nil {
                log.Fatalln(err)
        }

        log.Println(s)
}

The Site struct obj is empty after execution.
However, if I use the cascadia testing cli, the selector works:
cascadia -i sample.html -o -c "head > link[type='text/css']" -p "Link=ATTR:href"
Link
https://foo.bar/blah1.css
https://foo.bar/blah2.css

I assume I have not "translated" the selector properly to goq. If that's the case, how would I do it correctly?
thanks in advance,
Tom

Oh, my fault! Of course there are no links in os.Args[0] :)


Add Spotify Support

Change-type: minor

@chrisys I am sorry about the complication. I hope this time works everything right.


Revised Compression Method

I made 2 changes to the "compress" method:

it will return fewer than the target number of bytes if it is given a digest that is smaller than the target size already (instead of throwing an error)
it spreads the modulo bytes around rather than dumping them all into the final byte

Why is this better?
The old method divided the bytes into the target number of segments and after even division, placed all remainder bytes into the final segment. This meant that the effect of the remainder bytes on overall entropy was confined to the final byte.
In the new method, the remainder bytes are selected throughout the input bytes and are distributed evenly among the target segments, allowing them to express more entropy. The compression per input byte is more even, since the biggest difference in the number of input bytes per output byte is 1.
For example:
compress_old([123,456,798,147], 4)
# -> [123, 456, 789, 147]
compress_old([123,456,789,147,258,369,321],4)
# -> [123, 456, 789, 417] (only the last byte has changed)

compress_new([123,456,798,147], 4)
# -> [123, 456, 789, 147]
compress_new([123,456,789,147,258,369,321],4)
# -> [435, 902, 115, 321] (all 4 bytes have changed)

Coverage decreased (-2.2%) to 97.826% when pulling 7c850d09d38e98e85d94026f608e81a2e9c2266e on lafncow:PyPI into 5bed9ac7bb8473abb790e82c4bbdf2283df1e01e on blag:master.

Coverage decreased (-2.2%) to 97.826% when pulling de4fe4325b8e80732dfbd2099f74e82f2073d906 on lafncow:PyPI into 5bed9ac7bb8473abb790e82c4bbdf2283df1e01e on blag:master.

Coverage decreased (-2.2%) to 97.826% when pulling de4fe4325b8e80732dfbd2099f74e82f2073d906 on lafncow:PyPI into 5bed9ac7bb8473abb790e82c4bbdf2283df1e01e on blag:master.

Coverage decreased (-2.2%) to 97.826% when pulling de4fe4325b8e80732dfbd2099f74e82f2073d906 on lafncow:PyPI into 5bed9ac7bb8473abb790e82c4bbdf2283df1e01e on blag:master.

Changed tests to reflect the new compression method's outputs.
This feature is also discussed in the previous PR and in the original repo:
https://github.com/blag/humanhash/pull/1
https://github.com/zacharyvoase/humanhash/pull/1

This is a nitpick, but...can you remove the previous checksum() method? It's useless now and not used anywhere.

And thank you for writing out that explanation - this makes complete sense now and I'm all for it.

Nevermind, I got to it after all. Thanks! 😄


Removing [NSApp run] doesn't change anything

Hi,
This is more of a question rather than an issue.
I was learning how GLFW works on Mac and playing with it. I stumbled upon [NSApp run]. According to Apple docs, run() starts the event loop. That's exactly what it does when I create a simple Cocoa app from scratch.
However somehow in your code it doesn't block:
https://github.com/glfw/glfw/blob/master/src/cocoa_window.m#L1022
In fact it can be removed entirely and nothing changes!
How does this work? Does glfw implement its own event loop? Then maybe [NSApp run] is not needed at all?
I see that in earlier versions there was no [NSApp run], but [NSApp finishLaunching].

I think I got it. You implement your own event loop in _glfwPlatformWaitEvents
Does it mean that it's safe to remove [NSApp run]?

This was introduced with 9aa15aa710ff5adbdbccb124da96864df84b2479 and is a hack to work around issues with the menu bar for un-bundled applications.

However somehow in your code it doesn't block

It doesn't block because of the call to stop in applicationDidFinishLaunching:, which kills the loop as soon as it starts.

Does it mean that it's safe to remove [NSApp run]?

It probably is as long as your application is bundled.

Got it, thanks for explaining. Cocoa is really confusing.


Please add variable for current folder

Hi,
Would it be possible to add in a variable for the folder of the currently opened file?  A common use case I have that I have a file open in a directory and actually I want to open that whole directory (not the whole vault) in VScode.  I think this could easily be done by splitting out {{filepath}} into {{path}}/{{file}} (if possible)

Hi!
I don't want to change existing variables, that would affect existing users. I made a new, relative {{folderpath}} variable, locally. Would you test if this is adequate for you? Here's the new build: main.zip.

If there's no demand, I'll close it for now. What extension did you go with?


Import/Export - All items w/ cell values reporting "Update" status

When going through the import process, the second screen (i.e., item selection screen) is displaying statuses of "Update" for all items containing cell values, regardless of whether those scores have actually been updated since being downloaded.
The "Update" status should only occur when an item's cell values have been modified outside of the system and are different than the scores that existed within the Gradebook immediately prior to initiating the import process.
Items containing scores that, as a whole, match those that currently exist within the Gradebook should return the same "N/A" status as entirely empty items.

@kyleblythe, can you attach an export of the before and then the modified version just so I have an example?  I've got some unit tests that pass and I've done local testing and cannot reproduce easily.
If you export the existing gradebook, and then try to reimport what you just exported without making any changes, does it think they are all updates?

Well, hang on, maybe I can reproduce!  Guess I spoke too soon!

@steveswinsburg, merge PR #111 and see if that fixes it.

Ok that's in. Give it a go.

Hi @maurercw,
Just gave this another look, and while it seems that "Update" is no longer displayed when a spreadsheet with no changes is imported (http://www.screencast.com/t/ZelvRCsNo), the issue is still occurring as soon as any change is made to any item in the spreadsheet.
Here is a screenshot of the unchanged spreadsheet file:
http://www.screencast.com/t/c75Itwuwt7
I then modified scores only within "Week 1 Part". When importing back into the system, this should be the only item with a status of "Update." Screenshot:
http://www.screencast.com/t/ObLMEhY2
However, this is the resulting status screen:
http://www.screencast.com/t/WSgewg73r
All items with any scores attached to them report an "Update" status, while only empty items show "No Changes."

Oops!  I'll take another look.

@kyleblythe My first pass is unable to reproduce.  Any chance Excel is changing values on you?  The export might have a .0 at the end of the grades...maybe Excel is dropping that off?  I'll try a bit more though.

Yeah, I think that might be it.  I opened one of my exports in excel and just saved it without making any other changes and it converted a whole bunch of stuff.  Removed quotes (probably a non-issue) and dropped any .0 from scores.  So, maybe a question is should the .0 be in the export at all?  Are the scores just integers?  Looking into that a bit...

Hi @maurercw ,
Ah, I think that's it! Yep, we should not be using decimal places in the export format (unless an existing score explicitly had a decimal in place e.g., 72.8). We should default to integers, both because excel definitely auto-formats .0 to a standard integer, and because it matches the formatting of the Gradebook grades screen, which doesn't display .0's.

The scores are stored as doubles (ie decimals) however in the UI we just strip the .0 via `StringUtils.removeEnd(grade, ".0") so I reckon just do that. Is a score of say 12.3 treated ok or is that also modified by excel?

@steveswinsburg Please see PR #133.

Nice one, verified.


Update revalidation.es-ES.mdx

docs: translates the remaining part of the page that were still in english

Description

[ ] Adding new page
[x] Updating existing documentation
[ ] Other updates

Thanks!


Reg Connect-FGT

Hi Team I would like to know does the script supports importing CSV files and looping it through each management IP address in CSV file.
I got the below error when I import it however it works fine when looping it through this way
$unique_device_ips = "<IP_ADDRESS>", "<IP_ADDRESS>"
Foreach($unique_device_ip in $unique_device_ips) {
Connect-FGT -Server $unique_device_ip -Credentials $psCred -SkipCertificateCheck
}

Unable to connect to FortiGate
At C:\Program Files\WindowsPowerShell\Modules\PowerFGT\0.6.1\Public\Connection.ps1:181 char:17
+                 throw "Unable to connect to FortiGate"
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : OperationStopped: (Unable to connect to FortiGate:String) [], RuntimeException
+ FullyQualifiedErrorId : Unable to connect to FortiGate

Also, I would like to know if is there a way to get export CSV every result from the below modules in one short
Get-FGTMonitorSystemFirmware
Get-FGTSystemGlobal
Get-FGTMonitorSystemHAPeer
Get-FGTSystemInterface

Thanks for the quick reply.

Hi,
the foreach loop work for me... can you add -verbose ? (all device have the same login/password ?)
you can export using Export-CSV (or using Export-Excel from ImportExcel Module) but need to write your code to get an unique file

@sureshwin006 it is good ? i can close ?

I need some help regarding the same issue,  I am connecting the firewall with the IP address

I have also used  -skipCertificateCheck -httpOnly

Please ignore my comment
I am able to connect by specifying -port parameter


Fix CI coverage step: remove nightly

The CI is currently broken due to a failure in the coverage job
This PR fixes it by running the coverage generation in stable rust and not nightly

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4ff4538) 88.50% compared to head (3a27e24) 89.04%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1228      +/-   ##
==========================================
+ Coverage   88.50%   89.04%   +0.53%
==========================================
  Files          52       52
  Lines       14819    15495     +676
==========================================
+ Hits        13116    13797     +681
+ Misses       1703     1698       -5

see 49 files with indirect coverage changes


Share desktop picture use av1 codec make browser page crash error

Describe the bug
Server

Version: [1.5.1-1.5.3]
Environment: [windows]

Client

SDK: [js-sdk 3.0.5 windows PC]

.Use Livekit Meet online-demo also found same problem.
Hardware:
Lenovo XiaoXinAir15

Test url:
https://meet.livekit.io/rooms/kwlt-5iuf?codec=av1
Only share desktop picture make crash

.

Which browser are you using here?


Questions about shifted distributions

Hi expert,
Nice novel method to align embedding latent space to language model.
I'm interest about shifted distributions on figure 4 which test with removing top labels.
How about domain shift experiment? e.g. training on general MORPH II dataset, but test on low resolution MORPH II dataset by resized.
Can the distribution of age prediction be robust?

Hi, @BossunWang ! Thanks so much for your comment!
We haven't conducted the domain shift experiments. It would be worth experimenting with that setting!


Feature Request: about the new Followers page

What
It would be nice to be able to search and sort followers.
Defining the number of lines per page would be cool too...
It would be useful to group followers by instance.
Why
Been using the plugin for a long time and now have 60+ followers on 1 of my 2 blogs, which means an unordered list of people on 3 pages (and with the migration, most of them now appear on almost the same date). When I try to locate a follower (usually one of mines, for testing purposes...), I have to browse the list in full...
How
No response

Right, I think I almost know how to do this :-)
In:
https://github.com/Automattic/wordpress-activitypub/blob/fd6cb84ba3df13049f181e47d74548fcffb16a8e/includes/table/class-followers.php#L44
We can add the columns which we want to be sortable. For example:
$sortable_columns = array(
   'name' => array( 'name', true ),
   'updated' => array( 'updated', false )
);

return $sortable_columns;

Clicking on one of those columns loads the page at wp-admin/options-general.php?page=activitypub&tab=followers&orderby=name&order=asc
So we can take the orderby and the order and pass them to:
https://github.com/Automattic/wordpress-activitypub/blob/fd6cb84ba3df13049f181e47d74548fcffb16a8e/includes/collection/class-followers.php#L326
For example:

		$orderby = isset( $_GET['orderby'] ) ? $_GET['orderby'] : "name";
		$order   = isset( $_GET['order']   ) ? $_GET['order']   : "order";
		echo $orderby;
		echo $order;
		$defaults = array(
			'post_type'     => self::POST_TYPE,
			'posts_per_page' => $number,
			'paged'     => $page,
			'orderby'   => $orderby,
			'order'     => $order,
			...

But the ordering is completely wrong, because those fields are in the meta_value. See:
https://github.com/Automattic/wordpress-activitypub/blob/fd6cb84ba3df13049f181e47d74548fcffb16a8e/includes/collection/class-followers.php#L230
and
https://github.com/Automattic/wordpress-activitypub/blob/fd6cb84ba3df13049f181e47d74548fcffb16a8e/includes/model/class-follower.php#L311
And that's where I get stuck...


[FEAT] More control over the flashcard ordering

This feature is on top of the #814 should add more control how to go through the cards during review.
I am currently working on it but I would like to here some feedback before continue.
Current Functionality

The new system should consist of 4 drop-down menus which are:
Deck order
In which order the decks get selected.

Sequential
Random

Card order
In which order the cards in a deck get selected.

Sequential
Random

Deck priority
How the deck order is prioritized complete the deck or only one card per deck. Could probably extended with a random option.

Complete
Round robin
(Random)

Card priority
Which cards get prioritized to complete first.

New first
Due first
Any first

The resulting options are listed here:

Deck order
Card order
Card priority
Deck priority
Explained
Replaces current

Sequential
Sequential
New first
Complete
Goes sequentially through all decks. First all new cards in deck
Sequentially within a deck (All new cards first) & Sequentially (once all cards in previous deck reviewed)

Sequential
Sequential
Due first
Complete
Goes sequentially through all decks. First all due cards in deck
Sequentially within a deck (All due cards first) & Sequentially (once all cards in previous deck reviewed)

Sequential
Sequential
Any first
Complete
Ignores new and due goes through one after another

Sequential
Sequential
New first
Round robin
Goes sequentially through all decks with new cards first only one new card per deck

Sequential
Sequential
Due first
Round robin
Goes sequentially through all decks with due cards first only one due card per deck

Sequential
Sequential
Any first
Round robin
Goes sequentially through all decks only one card per deck

Sequential
Random
New first
Complete
Goes sequentially through all decks. First all new random cards in deck
Randomly within a deck (All new cards first) & Sequentially (once all cards in previous deck reviewed)

Sequential
Random
Due first
Complete
Goes sequentially through all decks. First all due random cards in deck
Randomly within a deck (All due cards first) & Sequentially (once all cards in previous deck reviewed)

Sequential
Random
Any first
Complete
Ignores new and due goes through one deck after the other and gives random card within deck

Sequential
Random
New first
Round robin
Goes sequentially through all decks with new cards first only one random new card per deck

Sequential
Random
Due first
Round robin
Goes sequentially through all decks with due cards first only one random due card per deck

Sequential
Random
Any first
Round robin
Goes sequentially through all decks only one random card per deck

Random
Sequential
New first
Complete
Goes randomly through all decks. First all new cards in deck
Sequentially within a deck (All new cards first) & Randomly (once all cards in previous deck reviewed)

Random
Sequential
Due first
Complete
Goes randomly through all decks. First all due cards in deck
Sequentially within a deck (All due cards first) & Randomly (once all cards in previous deck reviewed)

Random
Sequential
Any first
Complete
Ignores new and due goes through one deck than randomlly selects a new deck gives one deck after the another within the deck

Random
Sequential
New first
Round robin
Goes randomly through all decks with new cards first only one new card per deck

Random
Sequential
Due first
Round robin
Goes randomly through all decks with due cards first only one due card per deck

Random
Sequential
Any first
Round robin
Goes randomly through all decks only one card per deck

Random
Random
New first
Complete
Goes randomly through all decks. First all new random cards in deck
Randomly within a deck (All new cards first) & Randomly (once all cards in previous deck reviewed)

Random
Random
Due first
Complete
Goes randomly through all decks. First all due random cards in deck
Randomly within a deck (All due cards first) & Randomly (once all cards in previous deck reviewed)

Random
Random
Any first
Complete
Goes randomly through all deck when completed with random card from deck

Random
Random
New first
Round robin
Goes randomly through all decks with new cards first only one random new card per deck

Random
Random
Due first
Round robin
Goes randomly through all decks with due cards first only one random due card per deck

Random
Random
Any first
Round robin
Goes randomly through all decks with any card first only one random card per deck
Random card from random deck & Every card a random deck with a random card Ignoring new and due

This should nearly address any possible way someone would like to configure the review at least when deck priority includes a random option. And if there are any other needs I think on this base there could be easily added in future.
I would love to hear your thoughts on this, so please share.

Hi @4Source
Wow. Man, you've put in so much work to get to this point. I've only had a chance to look at this briefly, but had a few questions for you.
Are the "deck priority" and "card priority" headings crossed over against the column content?

I'm wondering if it would be possible to stage the development, rather than adding in everything all in one go.
So I'm curious which options are ones that:

you want to see because it will be helpful for you
other users have requested in other issues (I do keep an eye out on most things, nothing immediately comes to mind)
you think would be "nice to have"

@st3v3nmw  might think differently, and in the end this is his baby, but I know that for every feature added it requires more than just the implementation time. There is writing the unit test cases, having it reviewed by Stephen or myself et cetera.
Hence why I'm wondering if it would be possible to stage the development. Ones that are "nice to have" could be moved to a separate issue, and you could see if people comment and indicate that they would use it if it was implemented.
Kudos once again for thinking this all through, it must have taken serious effort!
Cheers
Ronny

Yeah this took a while. I really thought about this a while (couple of weeks now).

Are the "deck priority" and "card priority" headings crossed over against the column content?

Ohh yes there are switched I will fix this.

I'm wondering if it would be possible to stage the development, rather than adding in everything all in one go.

Yes I Think this should be possible. And for sure easier to review.  A possible Solution could be to firstly ignore the Round robin options and just implement it with only the Complete Deck priority this would halve the amount of possible combinations. Also the Any first could be set to only be allowed when Deck & Card order are both set to Random.  This would only keep the existing Configurations but would setup the Base for the Additional Configurations. Which could be added in 2. stage or any later stage of development.

So I'm curious which options are ones that:

you want to see because it will be helpful for you
other users have requested in other issues (I do keep an eye out on most things, nothing immediately comes to mind)
you think would be "nice to have"

I'am at the moment not happy with the currently available options and thought I couldn't be the only one who don't would like to have more control how the review presents me the cards. And adding more and more Options to the existing drop down would not be really efficient. And would make a later refactoring harder.
I didn't find any related issues, so I don't think others have requested something similar.

@st3v3nmw might think differently, and in the end this is his baby, but I know that for every feature added it requires more than just the implementation time.

This is one of the reasons why I created this issue, to avoid wasting my time implementing something what don't get included.

There is writing the unit test cases, having it reviewed by Stephen or myself et cetera.

Whit the unit test cases I could help and implement them by myself the review part on the other hand I cant really help you only thing I could do add more Comments while going through this.

This is now a lot more but I added a better description of the configurations and the option for random Deck priority. Also give each row a development stage in a order I think it would make sense. For me every thing including Stage 3 is what I would like to have. Stage 4 in my opinion is a bonus but not really necessary.
It feels like I am spamming so sry for that.

Deck order
Card order
Card priority
Deck priority
Explained
Dev Stage
Replaces current

seq
seq
New first
Complete
Starts at the first deck. First all new cards in the deck are gone through if there are any in this deck, then all due cards in the deck. After completing the deck, the same procedure is followed for the next deck.
1
Sequentially within a deck (All new cards first) & Sequentially (once all cards in previous deck reviewed)

seq
seq
Due first
Complete
Starts at the first deck. First all due cards in the deck are gone through if there are any in this deck, then all new cards in the deck. After completing the deck, the same procedure is followed for the next deck.
1
Sequentially within a deck (All due cards first) & Sequentially (once all cards in previous deck reviewed)

seq
seq
Any first
Complete
Starts at the first deck. No cards are prioritized, they are all gone through in the deck one after the other. After completing the deck, the same procedure is followed for the next deck.
2

seq
seq
New first
Round robin
Starts at the first deck. A new card is selected from the deck if there is none in this deck or after the card is completed, the next deck is moved to. If there are no more new cards in any deck, all due cards are processed using the same procedure "one card per deck".
3

seq
seq
Due first
Round robin
Starts at the first deck. A due card is selected from the deck if there is none in this deck or upon completion of the card, the next deck is moved to. If there are no more due cards in any deck, all new cards are processed using the same "one card per deck" procedure.
3

seq
seq
Any first
Round robin
Starts at the first deck. A card is selected from the deck, after completing the card, the next deck is moved to. All cards get processed using the same "one card per deck" procedure.
3

seq
seq
New first
rnd
Starts with the first deck. A new card is selected from the deck, if there is no card in this deck, it goes to the next deck. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
4

seq
seq
Due first
rnd
Starts with the first deck. A due card is selected from the deck, if there is no due card in that deck, the next deck is moved to. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. If there are no more cards due in any deck, all new cards will be processed using the same “one card per deck” process.
4

seq
seq
Any first
rnd
Starts with the first deck. A card is selected from the deck. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. All cards are processed using the same “one card per deck” process.
4

seq
rnd
New first
Complete
Starts on the first deck. First, all new cards in the deck are gone through in random order, if there are any in that deck, then all due cards in the deck. After completing the deck, the same procedure is followed for the next deck.
1
Randomly within a deck (All new cards first) & Sequentially (once all cards in previous deck reviewed)

seq
rnd
Due first
Complete
Starts on the first deck. First, all due cards in the deck are gone through in random order, if there are any in that deck, then all new cards in the deck. After the deck is completed, the same procedure is followed for the next deck.
1
Randomly within a deck (All due cards first) & Sequentially (once all cards in previous deck reviewed)

seq
rnd
Any first
Complete
Starts on the first deck. All cards in the deck are gone through in random order. After the deck is completed, the same procedure is followed for the next deck.
2

seq
rnd
New first
Round robin
Starts on the first deck. A new random card is selected from the deck if there is no card in that deck, or after the card is completed, is moved to the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
3

seq
rnd
Due first
Round robin
Starts on the first deck. A due random card is selected from the deck if there is no card in that deck, or after the card is completed, is moved to the next deck. If there are no more cards due in any deck, all new cards will be processed using the same “one card per deck” process.
3

seq
rnd
Any first
Round robin
Starts with the first deck. A random card is selected from the deck and moved to the next deck once the card is completed. All cards are processed using the same “one card per deck” process.
3

seq
rnd
New first
rnd
Start with the first deck. A new random card is selected from the deck. If there is no card in this deck, it moves to the next deck. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
4

seq
rnd
Due first
rnd
Start with the first deck. A due random card is selected from the deck. If there is no card in this pile, it moves to the next pile. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. If there are no cards due in any deck, all new cards will be processed using the same “one card per deck” process.
4

seq
rnd
Any first
rnd
Start with the first deck. A card is randomly selected from the deck. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. All cards are processed using the same “one card per deck” process.
4

rnd
seq
New first
Complete
Goes randomly through all decks. First all new cards in the deck are gone through if there are any in this deck, then all due cards in the deck. After completing the deck, the same procedure is followed for the next random deck.
1
Sequentially within a deck (All new cards first) & Randomly (once all cards in previous deck reviewed)

rnd
seq
Due first
Complete
Goes randomly through all decks. First all due cards in the deck are gone through if there are any in this deck, then all new cards in the deck. After completing the deck, the same procedure is followed for the next random deck.
1
Sequentially within a deck (All due cards first) & Randomly (once all cards in previous deck reviewed)

rnd
seq
Any first
Complete
Goes randomly through all decks. No cards are prioritized, they are all gone through in the deck one after the other. After completing the deck, the same procedure is followed for the next random deck.
2

rnd
seq
New first
Round robin
Goes randomly through all decks. A new card is selected from the deck if there is none in this deck or after the card is completed, the next deck is moved to. If there are no more new cards in any deck, all due cards are processed using the same procedure "one card per deck".
3

rnd
seq
Due first
Round robin
Goes randomly through all decks. A due card is selected from the deck if there is none in this deck or upon completion of the card, the next deck is moved to. If there are no more due cards in any deck, all new cards are processed using the same "one card per deck" procedure.
3

rnd
seq
Any first
Round robin
Goes randomly through all decks. A card is selected from the deck, after completing the card, the next deck is moved to. All cards get processed using the same "one card per deck" procedure.
3

rnd
seq
New first
rnd
Goes randomly through all decks. A new card is selected from the deck, if there is no card in this deck, it goes to the next deck. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
4

rnd
seq
Due first
rnd
Goes randomly through all decks. A due card is selected from the deck, if there is no due card in that deck, the next deck is moved to. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. If there are no more cards due in any deck, all new cards will be processed using the same “one card per deck” process.
4

rnd
seq
Any first
rnd
Goes randomly through all decks. A card is selected from the deck. After the card has been completed, a random decision is made as to whether another card should be chosen from the deck or from the next deck. All cards are processed using the same “one card per deck” process.
4

rnd
rnd
New first
Complete
Goes randomly through all decks. First, all new cards in the deck are gone through in random order, if there are any in that deck, then all due cards in the deck. After completing the deck, the same procedure is followed for the next random deck.
1
Randomly within a deck (All new cards first) & Randomly (once all cards in previous deck reviewed)

rnd
rnd
Due first
Complete
Goes randomly through all decks. First, all due cards in the deck are gone through in random order, if there are any in that deck, then all new cards in the deck. After the deck is completed, the same procedure is followed for the next random deck.
1
Randomly within a deck (All due cards first) & Randomly (once all cards in previous deck reviewed)

rnd
rnd
Any first
Complete
Goes randomly through all decks. All cards in the deck are gone through in random order. After the deck is completed, the same procedure is followed for the next random deck.
2

rnd
rnd
New first
Round robin
Goes randomly through all decks. A new random card is selected from the deck if there is no card in that deck, or after the card is completed, is moved to the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
3

rnd
rnd
Due first
Round robin
Goes randomly through all decks. A due random card is selected from the deck if there is no card in that deck, or after the card is completed, is moved to the next deck. If there are no more cards due in any deck, all new cards will be processed using the same “one card per deck” process.
3

rnd
rnd
Any first
Round robin
Goes randomly through all decks. A random card is selected from the deck and moved to the next deck once the card is completed. All cards are processed using the same “one card per deck” process.
3

rnd
rnd
New first
rnd
Goes randomly through all decks. A new random card is selected from the deck. If there is no card in this deck, it moves to the next deck. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. If there are no new cards left in any deck, all due cards will be processed using the same “one card per deck” process.
4

rnd
rnd
Due first
rnd
Goes randomly through all decks. A due random card is selected from the deck. If there is no card in this pile, it moves to the next pile. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. If there are no cards due in any deck, all new cards will be processed using the same “one card per deck” process.
4

rnd
rnd
Any first
rnd
Goes randomly through all decks. A card is randomly selected from the deck. After the card is completed, a random decision is made as to whether another card should be selected from the deck or from the next deck. All cards are processed using the same “one card per deck” process.
1
rnd card from random deck & Every card a random deck with a random card Ignoring new and due

seq: Sequential
rnd: Random

Development Stage 1
The main goal at stage 1 is to prepare the code to accept further modifications. Only implementing the existing functionallity without modifying the unit tests everything should work the same.
Development Stage 2
Add the function that there is no prioritization of due/new.
New unit test are requiered at this stage.
Development Stage 3
Implements the Round robin option for Card priority.
New unit test are requiered at this stage.
Development Stage 4
Implements the random option for Card priority.
New unit test are requiered at this stage.

Maybe this needs a rethinking here is a order that would be with this setup not possible


Failed CSRF Check for Page Refresh

Hi, I'm returning a direct response of an HTML form with errors instead of doing a redirect. This works fine, except that a refresh of that error page gives the dreaded 'Failed CSRF check!' error. Is redirecting necessary to avoid this? Note, I do redirect upon successful form completion to adhere to the PRG pattern.
Thanks for any help.

Actually the same thing happens with a redirect response. Sorry for the confusion. There is something going on that I don't understand. Perhaps I've set up the CSRF incorrectly.

Are you using Slim CSRF? When you refresh the error page is it sending a GET or POST request?

Yes. It is refreshing a POST.

I recall Slim CSRF regenerates the CSRF code on each request. See the Token Persistence section of the docs for more info. I suspect that is what you are running into.

Thanks! That must be it.

Yes, it works now.


revision bumps to use the latest poppler

Depends on Homebrew/homebrew#37280.

pdf2svg
xournal
inkscape

Inkscape 0.91 doesn’t build, even without poppler, I’m investigating.

Got inkscape building in #59; do you want to pull those changes in or test this PR again without inkscape?

@dunn Sorry for the late response, it might be better to exclude Inkscape from this PR so you can get credit for your work on #59 :wink:

Maybe just tack a gimp revision onto here?

Stuff to check:

[ ] xournal
[ ] inkscape
[ ] gimp

@BrewTestBot test this please.

Seems like my brew pull failed to add an autoclose comment. Fixed in c3f68762.


Update Airbrake Gem

This change uses a branch of our forked Airbrake gem, which silences
deprecation warnings for Rails 5.

Please ignore the Snyk vulnerability warnings. Neither of them have any action we can take:
https://snyk.io/vuln/SNYK-RUBY-NOKOGIRI-20299
https://snyk.io/vuln/SNYK-RUBY-ACTIONCABLE-20338


Fix regression in generated migration

It seems that a recent update has added a test-specific base class MigrationsBase to the generated migration. This results in LoadError: cannot load such file -- migrations_base when running the freshly generated migration.
This reverses the migration to its previous implementation resulting in a successful migration after installation.
Let me know if I'm missing something here :)

@cfbonner That’s a regression indeed. I’ll try to take closer look tonight. Thanks for your PR.

@cfbonner This has been fixed in dafc88940645b8ad38013e561ee3677c8d947277 and released in https://github.com/public-activity/public_activity/releases/tag/v2.0.1. Thanks for your initial PR.

@ur5us Thanks a lot :) I appreciate you putting the time into this project :heart_decoration:


When the [Bug Report] form 200 rows and 30 columns have Caton, checkbox will later be selected

Element UI version
2.3.0
OS/Browsers version
win10 / chrome 66
Vue version
2.5.11
Reproduction Link
https://jsfiddle.net/y4xg5y9b/7/
Steps to reproduce
如示例
What is Expected?
不卡顿
What is actually happening?
卡顿

Duplicate of #6089


FYI: faker.js is no more

Just a heads up that faker.js is no more- the most recently published version is empty. There are forks available; also chance.js has been pegged as a potential replacement.

There's also a new "official, stable fork of Faker" at https://github.com/faker-js/faker

Faker is actually listed as a devDependancy so it would only be used in the Docs / demo app. However searching the code I dont actually see if imported anywhere.
We should look into removing it from the devDependancies

@cah-briangantzler I think guides is where we use faker and that may need an update

Yes the guides give an example of using faker in snippets, not actual running code, so we can remove the devDependancy on faker now.
That part of the guides that actually should be removed though :) MirageJS is where that functionality now lies and should be documented there. This repo is only meant for integrating MirageJS into Ember, not explaining how MirageJS works.
Once we trim down the docs and only document what this addon is actually doing, that will all go away.
I checked MirageJS docs and they mention faker here https://miragejs.com/docs/main-concepts/factories/ But it should really be up to them to update their docs how they wish.

https://github.com/faker-js/faker seem to be legit successor

I can also recommend using @faker-js/faker.
While making a demo app, I realized that this library allows the same API calls (at least, for the methods that I needed). So all I'd need to change is the import statement.
/* Before */
import faker from 'faker';

/* After */
import { faker } from '@faker-js/faker';

This week, I was able to quickly replace Marak/faker in a production project.


persistent status.enabled

using localStorage to track status open / close state between browser refreshes
I like having the status always open, this allows the user to decide !

LGTM


Add README.md file

Add README.md file for all the missing programs.
Every program folder should contain README.md.
README.md file should contain problem statement & description.

Can I contribute to this? Assign me

@EANimesha , I have assigned this issue to you.

@EANimesha Please let me know if you are not working on this issue. I will assign this to someone else.


bbox position for red light

Hello, when the car approaches the junction, the red light is far away from the ego vehicle, but the red bbox for red light is just in front of the ego vehicle. I didn't find the reason in the code.
Can you please explain why? Thank you!

Just found the trigger_volume of self.close_traffic_lights in autopilot


Cannot download the dataset

Hi,
Thank you for sharing your great work.
I tried downloading the dataset from https://cloudstore.uni-ulm.de/training/DENSE/ but I can only download the .zip file, not the .z01 files.
Is there any other links or server where I can download the sub-parts of the zip file?

Even I am facing the same issue, did you found any solution? Please let me know

I have the same issue. And I ask the author.  They did not reply to me.  Finally, I somehow solved this problem using the wget command in any Linux platform like Ubuntu or Debian.
wget --user XXXXX --password  XXXXX https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.z01
wget --user  XXXXX --password XXXXX https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.z02
wget --user  XXXXX --password XXXXX https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.z03
wget --user  XXXXX --password  XXXXX https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.z04
wget --user  XXXXX --password  XXXXX https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.z05
wget --user  XXXXX --password XXXXX  https://cloudstore.uni-ulm.de/training/DENSE/gated2depth.zip

@Magicboomliu  how can I get the user name and password to download those files.

You should fill in this registration form following the author's requirements:
Here I just post the URL:
https://www.uni-ulm.de/en/in/driveu/projects/dense-datasets/dense-registration-form/

@Magicboomliu Could I use my Gmail to register that form or work mail? I tried so many times but I did NOT get any email

Hello @hoangkhai6893 and @Magicboomliu, I'm trying to download this dataset as well. However, I'm unable to complete the registration because the person responsible for it is out of the office until the end of the month. Do you have any idea how I can resolve this and download the dataset through an alternative method?


[Python] Fix PytestUnraisableExceptionWarning in substrait test

Describe the bug, including details regarding any error messages, version, and platform.
test_named_table_invalid_table_name  generates a PytestUnraisableExceptionWarning in the tests. The exception itself is:

Traceback (most recent call last):
File "/home/joris/scipy/repos/arrow/python/pyarrow/tests/test_substrait.py", line 238, in table_provider
raise Exception("Unrecognized table name")
Exception: Unrecognized table name

The exception ought to be raised properly instead of 'hidden' as a warning.
Component(s)
Python

To expand, it appears the exception to the table_provider is raised in executor->Init then further down into engine::substrait::serde::DeserializePlans.
But while it seems to raise the ArrowInvalid properly, somewhere it should probably clear the Python exception.

@milesgranger this has been bothering me too. I wasn't quite sure the best way to resolve this at that time. Thanks for raising this. I will look into this. Are you planning to work on this?

Great! Not planning on it, at least not in the near feature. :+1:

Okay, I will take a look at this. @pitrou or @jorisvandenbossche could you assign this to me?

Assigned.

Thank you @kou

My first guess would be that the _create_named_table_provider is missing an  except *: (to indicate to cython that this function can raise errors, and thus that it should check if any error is raised). See https://cython.readthedocs.io/en/latest/src/userguide/language_basics.html#error-return-values

@jorisvandenbossche thanks for the idea. I will check this.

I am removing my assignment, since I am mostly maintaining Arrow Java.


Can't install dotnet 7 on ubuntu 22.04 using apt

Can't install dotnet 7 on ubuntu 22.04
after sudo apt-get update and sudo apt install dotnet-sdk-7.0 i get
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
  dotnet-sdk-7.0
0 upgraded, 1 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/96,5 MB of archives.
After this operation, 376 MB of additional disk space will be used.
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend requires a screen at least 13 lines tall and 31 columns wide.)
debconf: falling back to frontend: Readline
Selecting previously unselected package dotnet-sdk-7.0.
(Reading database ... 248053 files and directories currently installed.)
Preparing to unpack .../dotnet-sdk-7.0_7.0.305-1_amd64.deb ...
Unpacking dotnet-sdk-7.0 (7.0.305-1) ...
Setting up dotnet-sdk-7.0 (7.0.305-1) ...

However when I run
dotnet --list-sdks
I get
Command 'dotnet' not found, but can be installed with:
sudo snap install dotnet-sdk       # version 7.0.305, or
sudo apt  install dotnet-host      # version 6.0.119-0ubuntu1~22.04.1
sudo apt  install dotnet-host-7.0  # version 7.0.108-0ubuntu1~22.04.1
See 'snap info dotnet-sdk' for additional versions.

Also when I print the content of /usr/share/dotnet directory, I get:
sdk  sdk-manifests  templates

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 5ac16736-f225-12d0-2de2-efded54a505a
Version Independent ID: 909b29bd-2729-3b59-beb5-20a7281344d0
Content: Install .NET on Ubuntu 22.04 - .NET
Content Source: docs/core/install/linux-ubuntu-2204.md
Product: .net
Technology: dotnet-installation
GitHub Login: @adegeo
Microsoft Alias: adegeo

Hi. Do you also have a  /usr/lib64/dotnet directory on your machine?

Yeah I've installed and uninstalled .NET a few times already, used .NET from snap package before, but ran into some issues, then uninstalled, tried with apt, didn't work.
I managed to install it finally using provided install shell scripts.
https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
However it didn't add the .dotnet directory in my home folder to the PATH variable as it should. I had to do it myself (export in .bashrc) and it finally worked.
It was super hard and a lot of time wasted to install .NET on Ubuntu.

Sorry for the frustration. Unfortunately with so many different ways of installing .NET, and not knowing if you installed the x86 or x64 runtime, it's easy to end up in a weird state where pieces are missing.
The PATH is noted on the installation article, but not the tool reference. I'll do some cross linking. https://learn.microsoft.com/en-us/dotnet/core/install/linux-scripted-manual#set-environment-variables-system-wide

sudo apt remove dotnet-sdk* dotnet-host* dotnet* aspnetcore* netstandard*
sudo apt remove aspnetcore*
sudo apt remove netstandard*
sudo apt remove dotnet-host*
sudo apt purge dotnet-sdk* dotnet-host* dotnet* aspnetcore* netstandard*
sudo rm -f /etc/apt/sources.list.d/mssql-release.list
sudo rm /etc/apt/sources.list.d/microsoft-prod.list
sudo rm /etc/apt/sources.list.d/microsoft-prod.list.save
sudo apt update
Install by App Center: .Net Core SDK, Stable 8.0.101
there is no need for other installations!
(sudo snap install dotnet-sdk #Installed by App Center
sudo apt install dotnet-sdk-8.0 #Installed by App Center
sudo apt install dotnet-host-8.0 #Installed by .Net Core SDK)
dotnet workload update
source ~/.bashrc
dotnet sdk check
.NET SDKs:
Version      Status
8.0.100      Patch 8.0.101 is available.
dotnet --info
.NET SDK:
Version:           8.0.100
Workload version:  8.0.100-manifests.6c33ef20
OS Platform: Linux
RID:         linux-x64
Base Path:   /snap/dotnet-sdk/233/sdk/8.0.100/
Host:
Version:      8.0.0
Architecture: x64
dotnet --list-sdks
8.0.100 [/snap/dotnet-sdk/233/sdk]
dotnet --version
8.0.100


'Global' mixin for only a component and for its children, grand children, ...

What problem does this feature solve?
First of all, I apology  If I don't make sense.
Global Mixin is very useful feature. But there are some need to consider:

It affects every single Vue instance created, including third party components.
the same named data or method cannot be used for children under 2 separated parents

props, vuex or listeners are not good practice for really big project which has 30 nested components.
we need to pass the same data over and over between components.
If there would be something like 'global' mixin (just global in one component and its children, grandchildren,...), and when we add it to a single component, we could use it its any level children.
What does the proposed API look like?
I am not sure about how API look like.
there is an example
JS:
class User {
	constructor(name){
  	this.name = name;
  }
}

// Mixins
let mixin1 = {
  data: function() {
    return {
      user: new User('user1')
    }
  },
}

let mixin2 = {
  data: function() {
    return {
      user: new User('user2'),
      msg: "this is user2's mixin"
    }
  }
}

// Child1 component
Vue.component('Child1', {
  template: '#child1'
});

// Child2 component
Vue.component('Child2', {
  template: '#child2'
});

// 2nd parent component
Vue.component('Parent2', {
  template: '#parent2',
  mixins:[mixin2]
});

// 1st parent component
Vue.component('Parent1', {
  template: '#parent1',
  mixins:[mixin1]
});

// Initialize Vue
new Vue({
  el: '#app'
})

HTML:

<template id="parent1">

    I am parent1

    username: {{user.name}}

    msg: {{msg}}

      <parent2></parent2>
      <child2></child2>

</template>

<template id="parent2">

    I am parent2

    username: {{user.name}}

    msg: {{msg}}

      <child1></child1>

</template>

<template id="child1">

    I am child 1

    username: {{user}}

    msg: {{msg}}

</template>

<template id="child2">

    I am child 2

    username: {{user}}

    msg: {{msg}}

</template>

    <parent1 />
    <parent2 />

in any component under parent1 or parent2 components,  data user, msg, .. should be accessible without updating the component code.
Thank you

Hi, this is a completely implicit behaviour that would automatically break a component if used outside of other components. Because this is bug-prone and hard to maintain, we do not want to provide such implicit behaviour. Instead, this should be implemented in user-land.
The equivalent way of doing this in Vue, which is explicit, is inject/provide

@posva I got it.now  I am sure that I have to implement it myself . Thank you for your feedback!


3.3.x problem in CST China Standard Time

As seen in https://github.com/ondrejbartas/sidekiq-cron/issues/128
Probably related to #222
$ TZ="Asia/Shanghai" bundle exec ruby -e "require 'rufus-scheduler'; require 'pp'; pp [ '* * * * *', '0 * * * *', '0 16 * * *' ].collect { |s| Rufus::Scheduler::CronLine.new(s).to_a }"
[[[0], nil, nil, nil, nil, nil, nil, "America/Bahia_Banderas"],
 [[0], [0], nil, nil, nil, nil, nil, "America/Bahia_Banderas"],
 [[0], [0], [16], nil, nil, nil, nil, "America/Bahia_Banderas"]]

@zzjin Would you have some time to test this fix in your environment?

@jmettraux using github master@c46b12e still not work.

@zzjin What does
bundle exec ruby -e "require 'rufus-scheduler'; require 'pp'; pp [ '* * * * *', '0 * * * *', '0 16 * * *' ].collect { |s| Rufus::Scheduler::CronLine.new(s).to_a }"
yield for you now with this c46b12e?
Thanks in advance.

as same as 3.3.1.
[[[0], nil, nil, nil, nil, nil, nil, "America/Bahia_Banderas"],
 [[0], [0], nil, nil, nil, nil, nil, "America/Bahia_Banderas"],
 [[0], [0], [16], nil, nil, nil, nil, "America/Bahia_Banderas"]]

@zzjin and
TZ="Asia/Shanghai" bundle exec ruby -e "require 'rufus-scheduler'; require 'pp'; pp [ '* * * * *', '0 * * * *', '0 16 * * *' ].collect { |s| Rufus::Scheduler::CronLine.new(s).to_a }"
?

seems correct:
[[[0], nil, nil, nil, nil, nil, nil, "Asia/Shanghai"],
 [[0], [0], nil, nil, nil, nil, nil, "Asia/Shanghai"],
 [[0], [0], [16], nil, nil, nil, nil, "Asia/Shanghai"]]

Thanks a lot, I will try to come up tomorrow with a solution that works without having to set TZ.

@zzjin that should fix it. I tested on a system set to your timezone and it seems OK. If you could give it a try and give me your feedback, that would be much appreciated.

@jmettraux master@5dd92e8 it works! thanks!

Thanks a lot! I will release 3.3.2 then.


Revise Pickle Remote Task for Jupyter Notebook Environment

Tracking PR
https://github.com/flyteorg/flytekit/pull/2733
Why are the changes needed?
As discussed in the comments of flyteorg/flytekit#2733, the current design of the Jupyter Notebook is not well considered.

What changes were proposed in this pull request?

[x] Add basename in logger.debug
[x] Remove __setstate__ and __getstate__ as pickling Promise object is not necessary as expected
[x] Redesign the interactive mode logic

[x] Pickling in the workflow level, so that we don't need extra kwargs in Options.
[x] Following with the previous point, the interactive_mode_enabled field in SerailizationSettings is not required either.
[x] Make SerializationSettings non-mutating by initializing the fast_registration_setting during construction in remote.py.
[x] Update DefaultNotebookTaskResolver to enable extracting the task entity from the pickled object.

I updated the pickled object from entity to a dictionary of entity, where the key of the dictionary is the name of the task entity.

[x] Automatic versioning for the interactive mode if the version is not provided in remote.execute(...) command.

How was this patch tested?

Setup process
Testing code is exactly the same as flyteorg/flytekit#2733
Screenshots

version 1
version 2-1
version 2-2 (run again without modification)

Rerunning the code without modification and explicitly specify the version value will use the latest version in interactive mode. Note that wf workflow will register hello task, so the version of hello in second round is equal to the version of wf in the first round.

Check all the applicable boxes

[ ] I updated the documentation accordingly.
[x] All new and existing tests passed.
[x] All commits are signed-off.

Related PRs
https://github.com/flyteorg/flytekit/pull/2733

Docs link

@wild-endeavor I updated the automatic versioning followed with the same logistic as FlyteRemote.register_script. If we are in interactive mode, we will automatically compute a hashed version for it if version is not explicitly specified. Otherwise, we will follow the original behavior in FlyteRemote.


Settings.check_dependencies to verify dependencies

What current issue(s) does this address, or what feature is it adding?
When people do a git pull, they often get cryptic error messages. This PR adds a dependency check to verify that all required dependencies are those actually installed.
How did you make sure your solution works?
Test
Are there any special changes in the code that we should be aware of?
No
Please check the following, if applicable:

[ ] Did you add any tests?
[X] Did you run make lint?
[X] Did you run make test?
[X] Are you making a PR to a feature branch or development rather than master?
[x] Did you add an entry to CHANGELOG.rst? (if not, please do)

Coverage decreased (-0.07%) to 78.157% when pulling 082975460f0701b7ea01d212609b084e130dbe0a on check_dependencies into f2eb426e7ca264fe7be5c15d4a084e688d1bc09e on development.

Thanks, great suggestion! Updated

nice implementation!


[Bug report]: i can't log in with my pin

Platform
Desktop
Version
1.4.2
Description
i can't log in with my pin only i have access to the computer and only i have all the information is happening to me for the second time
Expected behaviour
lol
Actual behaviour
lol
Can the issue reliably be reproduced?
No
Steps to reproduce the issue
lol
Operating System
Windows
Diagnostics
no

Developer Profile
No
Profile Type
Software (Stronghold)
Staking
Previously staked
Crash Status
Non-responsive
Error Messages
no
Error Logs
no

Duplicate declaration

[X] I have searched the issues tracker this issue and there is none

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Can you please try the new version, 1.5.0?

@stanimir-id I´m going to close this issue. Feel free to open it again if you have further issues.


Fix known referencer

Description of your changes

Fixes #
I have:

[ ] Read and followed Crossplane's contribution process.
[ ] Run make reviewable test to ensure this PR is ready for review.

How has this code been tested

We should try to pick up #53 in this PR, grabbing the vlan_ids (list of Vlan.status.id uuid) fields.


[POC] Command Registration

Benefits
Extensible
Users or gems will be able to register new commands with:
DEBUGGER__::Session.register_command("foo", aliases: ["fo"]) do |arg|
  # my command
end.document category: "My Gem", content: <<~MD
  * foo does blablabla
MD

And then the command document will appear in the help
❯ ruby -Ilib -rdebug target.rb
[4, 9] in target.rb
     4|   # my command
     5| end.document category: "My Gem", content: <<~MD
     6|   * foo does blablabla
     7| MD
     8|
=>   9| binding.b
=>#0    <main> at target.rb:9
(rdbg) help foo    # command

### My Gem

* foo does blablabla
(rdbg)

And because commands are stored together, it can support autocompletion in the future too.
Easier to maintain
Currently, command documents need to be written in Ruby comments with a strict format. And the parsing logic is quite adhoc for that reason. With this approach, we can simplify the parsing logic and make the document naturally a part of the command definition.
Additional thoughts

The CommandSet logic is a replication of the Config class, which prevents sharing mutable hash while allowing modifying values. I hope this will make it Ractor-safe?

Do you want to invoke some Ruby code on the session thread?
Could you list the example usages?
This is a kind of language design and examples are very important.

Example - fetching Rails configurations via rails config
Command Code
COMMAND_OPTIONS_SPLITTING_REGEXP = /([^\s]+)(?:\s+(.+))?/

DEBUGGER__::Session.register_command("rails") do |arg|
  COMMAND_OPTIONS_SPLITTING_REGEXP =~ arg
  sub_command, options = $1, $2

  case sub_command
  when "config"
    config = ::Rails.application.config

    configs =
      if options
        if config.respond_to?(options)
          config.send(options)
        else
          @ui.puts("unknown Rails component #{options}")
          []
        end
      else
        config.instance_variables.each_with_object({}) do |ivar, hash|
          key = ivar.to_s.sub("@", "")
          value = config.instance_variable_get(ivar)
          hash[key] = value
        end
      end

    configs.each do |key, value|
      key = colorize_cyan(key)
      @ui.puts("  #{key} => #{DEBUGGER__.safe_inspect(value)}")
    end
  else
    @ui.puts("unknown Rails debuggger command: #{arg}")
  end

  :retry
end.document category: "Rails", content: <<~MD
  * `rails config`
    * List top-level Rails configurations
  * `rails config <component>`
    * List <component>'s configurations
MD

Result

Other useful command extensions for Rails could be:

rails breadcrumbs - See all the recorded ActiveSupport::Notifications events.

Of course this needs extra work to store/access the events but it's relatively easy to achieve without debugger's support.
The breadcrumbs concept exists in many error monitoring services like Sentry. It'll help users track major application events happened before the program reaches the current state

rails callbacks Model  - List a model's callbacks by running Model._save_callbacks and filter/display the result nicely
rails routes /regexp/ - List the application's routes

@rafaelfranca is there other Rails specific debugger commands you'd like to see as well?

So they are global information.
# define SOME_CLASS.some_method before

eval SOME_CLASS.some_method

doesn't work?

I didn't mean "use eval" on this but providing alias feature like:
alias rails "eval SOME_CLASS.some_method(args)"

with documentation.
Ah, @ui.puts is not work well. adding eval option?
Anyway, I don't think it is good idea to expose @ui.puts for extensions.

alias rails "eval SOME_CLASS.some_method(args)"

That could work too. But I think alias is confusing and something like command should be clearer, along with an argument for documentation
command :rails, "eval RailsDebugger.execute(args)", doc: <<~DOC
  * `rails config`
    * List top-level Rails configurations
  * `rails config <component>`
    * List <component>'s configurations
DOC

Anyway, I don't think it is good idea to expose @ui.puts for extensions.

Yeah it's not ideal to expose instance variables. But we still need to access the UI from the extension code. Do you think calling DEBUGGER__::SESSION.print(msg) will be acceptable?


Don't open playstore if app is not installed.

I have different path rules that I can open App Store or not open.
If i want to open the App Store when my app is not installed to my phone, I just set the ios_store_link. But if I want to redirect to fallback url instead of opening the App Store, I omit the ios_store_link.
This is possible on ios but not on android.

That is because on Android, the play store url is derived directly from the package name.
We could possibly add a new optional query param skipStore that will go to the fallback url (either in query or in settings) instead of the app store.


remove centos8

Remove reference to CentOS 8.
Walkthrough will automatically removed when omero-install and omeroweb-install are updated.

From my side, similar question as https://github.com/ome/omero-documentation/pull/2135 i.e. would we redirect URLs like https://docs.openmicroscopy.org/omero/latest/sysadmins/unix/server-centos8-ice36.html and https://docs.openmicroscopy.org/omero/latest/sysadmins/unix/install-web/walkthrough/omeroweb-install-centos8-ice3.6.html and if yes, to which location?

One option is to not to point to any walkthrough but to https://docs.openmicroscopy.org/omero/5.6.3/sysadmins/unix/server-installation.html
so user can select one of the "supported" platforms


Fix for 32bit architecture

This library makes assumptions about the input event, which are only fulfilled on 64bit architectures.
The part of the event containts a timestamp, which has a length of two long-types.
On 64bit platforms it's 16bytes, on 32bit only 8. That's why on 32bit systems nothing gets captured.
32bit is still common for maker-boards like the Raspberry PI .
This PR adds a check for 64bit architeture using the arch-package (because os.arch() returns e.g darwin on osx which can be 64bit etc...). Than all offset values are calculated depending on the current architecture.

Sorry for the late response. Thanks for the contribution. I will test it soon.


Fix conversion + inference errors. - Mistral

I faced an error with the config whilst converting the quantised instruct and base models.
AFAICT rope_theta is not used anywhere else.

Hmm that's a bug actually, we need to pass rope_theta to the RoPE class as in the llama examples. Thanks for catching it, I can update that in this PR.


How to pass parameters to default entrypoint?

When using array format for entrypoint in a Dockerfile, you can pass arguments to the docker run command and they're passed to the entrypoint executable (along with the pre-existing parameters)
However, I cannot find a way to do the same either when creating a ContainerConfig or when creating the container itself in DockerClient.
Am I missing any part of the API ?

I think you're looking for the cmd() method that ContainerConfig.builder() supplies, which takes a List or a varargs of String...

@flozano Did that answer your question? If so, can I close this?

Yes, thank you. I haven't tried yet, however, but the answer makes sense.


PCR in-app invite

Description

!! WIP - this needs to tie into backend which is currently on hold
Also need to look into whether we can have the BottomSheet go all the way to the bottom of the screen.
Ticket: https://www.notion.so/joinzoe/In-App-PCR-Test-Invites-c2fabaa7be744a8591d25fb8b36aeb28

On what platform have you tested the change?

[ ] Android - Emulator
[ ] Android - Physical device
[X] iOS - Emulator
[ ] iOS - Physical device

Screenshots

Checklist

[ ] I have updated mockServer
[ ] I've added analytics as relevant
[ ] I have run npm test
[ ] I have run npm run test:i18n

Out of scope and potential follow-up
n/a

Closing PR as not on product roadmap anymore.


Added codext

CodExt is a (Python2-3 compatible) library that extends the native codecs library (namely for adding new custom encodings and character mappings) and provides 120+ new codecs, hence its name combining CODecs EXTension. It also features a guess mode for decoding multiple layers of encoding and CLI tools for convenience.

Thanks!