[WIP] Timedom module

This is the first draft of a TDM (time-division multiplexing) submodule in SF. The code is based on previous work by the timedom group:
https://github.com/XanaduAI/tdmcalc/
and the ADR+discussion:
https://github.com/XanaduAI/software-docs/blob/tdm-gaussian/src/research/0108-time_domain_gaussian.rst
https://github.com/XanaduAI/software-docs/pull/227
This module shall be used to create and run algorithms in optical TDM setups. This first draft is focused on the single-loop interferometer built at Xanadu HQ that will be made available for cloud operation. However, at a later iteration, the module should be able to simulate any TDM setup. This freedom should include

Number of squeezed-light sources
Number of delay lines/loops
Number of spatial modes and detectors
Chronological gate order
Detection mode (homodyne or PNR)

Documentation
A user should be able to define their own gate settings by hand or select from a pre-defines class of (Gaussian) state. Apart from the gate sequence, the user defines how many copies of their state the setup should produce.
Some examples of how a user can defines their state may look like
import strawberryfields as sf
from strawberryfields.tdm import tdm

R =  [1/2, 1, 0.3, 1.4, 0.4, 1] # phase angles in multiples of pi
BS = [1, 1/3, 1/2, 1, 1/5, 2/10] # BS intensity transmission coefficients
M =  [1, 2.3, 1.2, 1/2, 5/3, 0.1] # measurement angles in multiples of pi

state = tdm.Customstate(BS, R, M, copies=30)

for a manually defined state, or
import strawberryfields as sf
from strawberryfields.tdm import tdm

state0 = tdm.EPRstate(copies=2000)
state1 = tdm.GHZstate(copies=1500)
state2 = tdm.Clusterstate(modes=1e6, copies=10)
state3 = tdm.Randomnumbers(copies=3e6)
state4 = tdm.Randomstate(modes=10, copies=100)

for predefined states. (Note that the number of copies is not equivalent to the number of measurements. For instance, tdm.Randomstate(modes=10, copies=100) corresponds to a sequence of 10 measurements, repeated 100 times = 1000 samples.)
Once a state is initialized, the user can create a SF program by
prog = state.tdm_program

and then run it in the usual way by
eng = sf.Engine('gaussian') # local simulation
result = eng.run(self.tdm_program)

or
eng = sf.Engine('tdm') # remote operation
result = eng.run(self.tdm_program)

Alternatively, the user can run the program using the class methods:
state.run_local()
state.run_remote()

The (simulated) measurement samples will be stored in the class attribute state.X_vals. Once this attribute is assigned, the user can run numerical evaluations or produce figures by e.g.
state.histogram()
state.nearest_neighbour_corr()
state.insep_param()

Note: The user does not need to run the program using the class methods state.run_local() or state.run_remote() to be able to perform the above evaluations and plots. Alternatively, they can process their own external lists of samples, using for instance
state.histogram(user_samples)

or even
state.X_vals = user_samples
state.histogram()

Other methods include:

state.savesettings(path='user/mypath')
to save one text file with the gate parameters in radians for each gate.

state.saveresults(path='user/mypath')
to save a text file with all quadrature samples

Before submitting
Please complete the following checklist when submitting a PR:

[ ] All new features must include a unit test.
If you've fixed a bug or added code that should be tested, add a test to the
test directory!

[ ] All new functions and code must be clearly commented and documented.
If you do make documentation changes, make sure that the docs build and
render correctly by running make docs.

[ ] Ensure that the test suite passes, by running make test.

[ ] Add a new entry to the .github/CHANGELOG.md file, summarizing the
change, and including a link back to the PR.

[ ] The Strawberry Fields source code conforms to
PEP8 standards.
We check all of our code against Pylint.
To lint modified files, simply pip install pylint, and then
run pylint strawberryfields/path/to/file.py.

When all the above are checked, delete everything above the dashed
line and fill in the pull request template.

Context:
Description of the Change:
Benefits:
Possible Drawbacks:
Related GitHub Issues:

@fab1an-q I'm going to close this one for now, since it looks like it has been superseded by #440 🙂


[Event Request] Table 36 "Sales Header" - OnBeforeValidateShippingAgentCode

Hello. In table 36 Sales Header, in the field 105 "Shipping Agent Code", in trigger OnValidate , I would like to use the event publisher OnBeforeValidateShippingAgentCode to add my own code. But I need the parameter xRec ans CurrFieldNo. Like this :
 OnBeforeValidateShippingAgentCode(Rec, IsHandled, xRec, CurrFieldNo);

With this integration event :
local procedure OnBeforeValidateShippingAgentCode(var SalesHeader: Record "Sales Header"; var IsHandled: Boolean; var xSalesHeader: Record "Sales Header"; CurrFieldNo: Integer)

Do you think it could be possible ?
Thank you for your work.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Add ListServiceAccounts function to list all service accounts

First try to contribute to this awesome project.
Implementing ListServiceAccounts from https://docs.gitlab.com/ee/api/user_service_accounts.html#list-all-service-account-users
this is pretty straight forward implementation, only once concern i have, as GroupsService also has same functionality, but just for group service accounts.
Therefore reused ListServiceAccountOptions as they are same. If i would change this, then it could break already existing implementations.
this could fix: https://github.com/xanzy/go-gitlab/issues/2011

I'm super busy lately... Will try to have a look later this week!


Run the tool from virtual machine / local pc

DO NOT ASK FOR PHISHLETS.
DO NOT ASK FOR HELP CREATING PHISHLETS.
DO NOT ASK TO FIX PHISHLETS.
DO NOT ADVERTISE OR TRY TO SELL PHISHLETS.
EXPECT A BAN OTHERWISE. THANK YOU!
REPORT ONLY BUGS OR FEATURE SUGGESTIONS.
Can i run this tool through my local virtualbox and forward it into a domain ? also is the instagram tested ?

**Hi 👽 ! If you are interested in ⚙Advanced Phishing⚙ and the ✨Evilginx3✨ tool then I offer you Google Gmail and Custom Phishlets with a ✅Free Tutorial✅ which arrives if the 📈Telegram reaches 50 Subscribers📈
⏳ GOOGLE GMAIL PHISHLET 2024 WITH PROOF ⏳
->
⛔https://www.youtube.com/watch?v=nA47UknIE6A⛔
🔓 Ask your questions and a free tutorial from 50 subs on telegram !!!
->
📩https://t.me/Noremorse1011📩**


Update Structure task syntax

[x] I have read and agree to the contributing guidelines for submitting new pull requests.

Describe your changes
Main changes:

Update Workflow to simplify creation.
Remove all methods for defining relationships between Tasks directly on a Task.

Context for changes
relevant: #896
currently the two different syntaxes (declarative and imperative) for defining relationships between Tasks for the sake of running them in a Structure (primarily a Workflow). the API for doing so can be confusing because of the many different entrypoints for defining the relationships, and the implementation can be confusing because of the way that the full state of Task relationships are split between Structures and Tasks.
Assumptions made for these changes

All Structures can generate a graphs of Tasks by calling structure.task_graph. This returns a graph of BaseTask objects.

Issue ticket number and link

📚 Documentation preview 📚: https://griptape--945.org.readthedocs.build//945/

@vachillo can we close this one with the latest incremental syntax updates?

can close it for now but ill be back


Convert the cert generation script into a Makefile.

@marumari, how does this look to you?
I'm hoping this will address:

Maintainability of the cert script
Custom domains in the cert script
Rebuilding dependencies better
Helping us generate and handle prod certs more similarly to dev certs in the future (see pregen)

You can place files in pregen to use them instead of generated ones. I still need to document this better.

I still need to make the top-level Makefile work with the latest Docker properly, but the following works well already:
docker build -t badssl .
docker run -t -i -p 80:80 -p 443:443 badssl

I'll take a look on Monday.  :)
On Jul 1, 2016, at 1:00 PM, Lucas Garron<EMAIL_ADDRESS>wrote:
@marumari https://github.com/marumari, how does this look to you?
I'm hoping this will address:

Maintainability of the cert script
Custom domains in the cert script
Rebuilding dependencies better
Helping us generate and handle prod certs more similarly to dev certs
in the future (see pregen)

You can place files in pregen to use them instead of generated
ones. I still need to document this better.

I still need to make the top-level Makefile work with the latest Docker
properly, but the following works well already:
docker build -t badssl .
docker run -t -i -p 80:80 -p 443:443 badssl

You can view, comment on, or merge this pull request online at:
https://github.com/google/badssl.com/pull/173
Commit Summary

Convert the cert generation script into a Makefile.

Reply to this email directly, view it on GitHub
https://github.com/google/badssl.com/pull/173, or mute the thread
https://github.com/notifications/unsubscribe/AAOEgI5lKIIik_VZZlRi5Q7vBisgVAlXks5qRVXPgaJpZM4JDW41
.

I went a bit overboard and #yoloed through until the the production server could serve from the new system. There's some cleanup to do, but stuff is working better than before, in that I can actually now make change without being afraid to make everything tumble down. :-D


Any good sample of using react-virtualized Infinite Scroll with Redux ?

Just that. I found it quite hard to implement it with basic documentation. Thanks.
_loadMoreRows in just create basic data to show in there. Not quite real sample.
https://github.com/bvaughn/react-virtualized/blob/master/source/InfiniteLoader/InfiniteLoader.example.js

Hello! 😄
I suggest using Stack Overflow with a #react-virtualized tag or asking in the react-virtualized Slack channel to discuss general things like this. Issues are reserved for bug reports and feature-requests.
This helps keep the project somewhat more maintainable for me and hopefully gets you an answer faster (since more people check those places than monitor GitHub issues). 😄


Filename on upload privacy concerns

When uploading a student file, the Browser will send the entire filename to the data storage backend.
Eg.: C:\Users\Fredrik\Documents\airbit\datalog.csv
This means that the file on the data-backend can be attributed to a single person Fredrik, meaning that the data is no longer anonymised.
It should be checked that this still is in compliance with privacy legislation.
For reference a quote form the (Norwegian) form that has been issued to the students and their parents:

Måledataene som elevene samler inn (gruppevis på tre og tre elever) vil bli lagt åpent ut på web på http://airbit.uit.no/, men vil ikke bli linket til den enkelte elev eller gruppe. Det vil ikke være mulig å si hvilke måledata som er samlet inn av hvilke grupper.

Strictly speaking transmitting a filename which may contain a user's personal name or login alias might be seen as a vioaltion to this statement.
Suggestion for fix: Re-introduce UUID (or similar) filenaming strategy on upload to generate a randomized filename. While this in some cases might make debugging harder, it would ensure proper anonymisation of the uploaded data. Debugging would have to be done with timestamps alone.

We'll throw away the path and keep the filename. @ninaangelvik is on it.

Closed in https://github.com/fjukstad/luft/pull/31


NTR: decreased rate of microtubule polymerization PMID:16394105

NTR: decreased rate of microtubule polymerization
descendant of
FYPO:0005681	decreased microtubule polymerization
standard def
ref: PMID:16394105

decreased rate of microtubule polymerization FYPO:0005703
For any process, "decreased" and "decreased rate" are siblings under "abnormal", because "decreased" is defined as "decreased extent", and rate or extent don't necessarily both change (i.e. you can have decreased rate without decreased extent - reaches the same extent but takes longer to get there).
edit file: 11877ed76fce9ae9583da5947f28b4c5e4ee6c6c
release: db5d4e543f7f6dbe443a927feaedadd5e3158917


javac linter - undefined variable l:output

Issue is a bit intermittent.
The process I was following was using Java:

Look at the ALE error messages (visually via the signs column)
Modify the g:ale_java_javac_classpath variable.
The signs were not updated so ran:
ALEToggle

Repeat steps 1-4 (3-4 times).
In the end, I get an undefined variable l:output.
Once that happens:
:ALEInfoToClipboard
Error detected while processing function ale#debugging#InfoToClipboard:
line    1:
E121: Undefined variable: l:output

:ALEInfo
 Current Filetype: java
Available Linters: ['javac']
  Enabled Linters: ['javac']
 Linter Variables:
let g:ale_java_javac_classpath = '.;C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundryDB\lib\plugins\*;C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundry
DB\build\classes\*'
let g:ale_java_javac_options = ''
 Global Variables:
let g:ale_echo_cursor = 1
let g:ale_echo_msg_error_str = 'Error'
let g:ale_echo_msg_format = '%s'
let g:ale_echo_msg_warning_str = 'Warning'
let g:ale_enabled = 1
let g:ale_keep_list_window_open = 0
let g:ale_lint_delay = 200
let g:ale_lint_on_enter = 1
let g:ale_lint_on_save = 0
let g:ale_lint_on_text_changed = 1
let g:ale_linter_aliases = {}
let g:ale_linters = {'javascript': ['eslint']}
let g:ale_open_list = 0
let g:ale_set_highlights = 1
let g:ale_set_loclist = 1
let g:ale_set_quickfix = 0
let g:ale_set_signs = 1
let g:ale_sign_column_always = 0
let g:ale_sign_error = '>>'
let g:ale_sign_offset = 1000000
let g:ale_sign_warning = '--'
let g:ale_statusline_format = ['%d error(s)', '%d warning(s)', 'OK']
let g:ale_warn_about_trailing_whitespace = 1
  Command History:
(finished - exit code 1) 'cmd /c javac -Xlint -cp .;C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundryDB\lib\plugins\*;C:\appdev\git\EdgeFoundry\PersistenceSer
vice\EdgeFoundryDB\build\classes\*  C:\Users\i826639\AppData\Local\Temp\VIJ4CE7.tmp\SQLAnywherePersistence.java'

:messages
Error detected while processing function <SNR>18_ALEToggle[13]..ale#engine#SetResults[4]..ale#sign#SetSigns[2]..ale#sign#FindCurrentSigns[1]..ale#sign#ReadSigns:
line    2:
E158: Invalid buffer name:
Error detected while processing function <SNR>18_ALEToggle[13]..ale#engine#SetResults[4]..ale#sign#SetSigns[2]..ale#sign#FindCurrentSigns[1]..ale#sign#ReadSigns:
line    1:
E121: Undefined variable: l:output
Error detected while processing function <SNR>97_HandleExitVim[1]..<SNR>97_HandleExit[76]..ale#engine#SetResults[4]..ale#sign#SetSigns[2]..ale#sign#FindCurrentSigns[
1]..ale#sign#ReadSigns:
line    1:
E121: Undefined variable: l:output

When I run the equivalent javac command, I get valid output:
javac -Xlint -cp .;C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundryDB\lib\plugins\*;C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundryDB\build\classes\*  C:\appdev\git\EdgeFoundry\PersistenceService\EdgeFoundryDB\src\main\java\com\sap\iotservices\gateway\db\SQLAnywherePersistence.java

Then I ALEToggled it again after adding:
let g:ale_history_log_output = 1
and I get a successful run.

Thank you for providing the full message. With that, I was able to find the bug. The actual error was E158: Invalid buffer name:. That was coming from trying to read signs for a buffer which no longer exists. There might be similar issues with setting things on buffers which don't exist any more. Let me know if you find any other issues.


Add boramae - acheron by dj nate x ario m

Song Name
boramae - acheron
Artist Name
dj nate x ario m
Source
Youtube
Youtube Link
https://www.youtube.com/watch?v=apQja-PflKE
Direct File Link
No response
Song ID
770520
Start Offset [ms]
0
Extra
Created from Auto Nong.
Created for level: 73667628
Downloaded: Yes

accept
2024년 11월 1일 (금) 오후 6:01, auto-nong[bot] @.***>님이 작성:

Thanks for contributing!
Someone will soon review your request.
Here is the JSON result for the reviewer:
{
"name": "boramae - acheron",
"artist": "dj nate x ario m",
"source": "youtube",
"startOffset": 0,
"yt-id": "apQja-PflKE",
"songs": [
770520
]
}
To accept the request, a reviewer needs to write "accept".
—
Reply to this email directly, view it on GitHub
https://github.com/FlafyDev/auto-nong-indexes/issues/5679#issuecomment-2451546435,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWXSDTEVHBQVRDWQC2TW67TZ6M7M3AVCNFSM6AAAAABQ747ZS6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJRGU2DMNBTGU
.
You are receiving this because you authored the thread.Message ID:
@.***>


Ingredients and Stores cannot be presented in a list

This issue is blocking https://github.com/openfoodfacts/smooth-app/issues/5814
Ideally, to present values in a list of elements, the values need to be given to the app in a list.
That is not the case for Ingredients and stores.The list values IngredientsTagsInLanguage and storeTagsInLanguage are null.
The list of ingredients and stores are found in a single String
This can be found in the nutella page, but also this butter and this juice : https://world.openfoodfacts.org/product/3451790988677/le-beurre-tendre-doux-elle-vire
https://world.openfoodfacts.org/product/3254691586054/le-bio-pour-toute-la-famille-multifruit-pressade
Here are two solutions : correct the serverside answer to give the elements in a listvalue in the request.
or : adapt the code of the rawdata list to have the Strings be broken down into a list.
Solution 2 is the easiest to do, but will create technical dept.

This looks very much like a server bug @stephanegigandet @alexgarel
https://world.openfoodfacts.org/api/v1/product/3451790988677.json?fields=ingredients_tags_in_languages
https://world.openfoodfacts.org/product/3451790988677/le-beurre-tendre-doux-elle-vire

For the stores, you can have a look at what's done on the Edit page.
SimpleInputPageStoreHelper.dart:
splitString(product.stores);

And for the ingredients, you can do the same.
Clearly, a server-side fix would be better.
But it seems that the code for stores is here for months.

For stores https://world.openfoodfacts.org/api/v1/product/3451790988677.json?fields=stores_tags

@teolemon the right request for ingredient, eg for french, is: https://world.openfoodfacts.org/api/v1/product/3451790988677.json?fields=ingredients_tags_fr

I am currently using ingredientsTextInLanguages, other field 'ingredient' is null Ingredients tag fr is not present in the Product class

For stores, I am currently using stores. I have an issue with StoresInLanguage ; the english value is currently null (despite stores field beeing filled with english stores data)

The product class contains nutrition values but not their metrics (kJ, kcal...)
I wasn't able to find it in the code, but I assume when clicking the nutrition on the product screen it does a web call.
Shoudl I do this web call on my view ? or the product class should contain the metrics ?


unixODBCDrivers.mariadb: fix cross

Description of changes
Without these variables, it will try to run odbc-config, which the build platform might not be able to execute.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

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

[x] Fits CONTRIBUTING.md.

One step closer to QT cross-compilation :)

One step closer to QT cross-compilation :)

Yep! The postgres one is going to be harder.


[ISV-2745] [ISV-2746] Update operator-release pipeline to use tekton bundles

@haripate you can try to add
- name: "Apply tekton resolvers-feature-flags"
  kubernetes.core.k8s:
    state: present
    definition:
      apiVersion: v1
      kind: ConfigMap
      metadata:
        name: resolvers-feature-flags
        namespace: tekton-pipelines-resolvers
        labels:
          app.kubernetes.io/component: resolvers
          app.kubernetes.io/instance: default
          app.kubernetes.io/part-of: tekton-pipelines
      data:
        # Setting this flag to "true" enables remote resolution of Tekton OCI bundles.
        enable-bundles-resolver: "true"
        # Setting this flag to "true" enables remote resolution of tasks and pipelines via the Tekton Hub.
        enable-hub-resolver: "true"
        # Setting this flag to "true" enables remote resolution of tasks and pipelines from Git repositories.
        enable-git-resolver: "true"
        # Setting this flag to "true" enables remote resolution of tasks and pipelines from other namespaces within the cluster.
        enable-cluster-resolver: "true"


Brightness control broken in kde plasma on master

Missing brightness control in KDE
I can't control screen brightness in KDE(power management is enabled, but I don't see the brightness control in the power management widget. The brightness keys used to work as well, but now they aren't).

 powerManagement.enable = true;
 services.xserver.desktopManager.plasma5.enable = true;

Powerdevil, upower seem to be running without errors, although on startup -
journalctl -xb | grep brightness
Oct 09 08:47:25 blackbox kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
Oct 09 08:47:25 blackbox kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
Oct 09 08:47:43 blackbox xsession[1343]: invalid metadata "/run/current-system/sw/lib/qt-5.12.3/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so"
Oct 09 08:47:43 blackbox xsession[1343]: invalid metadata "/run/current-system/sw/lib/qt-5.12.3/plugins/powerdevilbrightnesscontrolaction_config.so"
Oct 09 08:47:45 blackbox xsession[1343]: powerdevil: Falling back to helper to get brightness
Oct 09 08:47:45 blackbox xsession[1343]: powerdevil: "DBus Backend error: service start org.kde.powerdevil.backlighthelper failed: Bus name not found in system service directory"

This seems like the relevant bit -
powerdevil: "DBus Backend error: service start org.kde.powerdevil.backlighthelper failed: Bus name not found in system service directory"
system information
nix-info
system: "x86_64-linux",
multi-user?: yes,
version: nix-env (Nix) 2.3,
channels(root):
"nixos-20.03pre196201.07d4df59626, home-manager, nixos-hardware"

neofetch --stdout
xxx@blackbox
-----------------
OS: NixOS 20.03pre196201.07d4df59626 (Markhor) x86_64
Host: 20KGSBP200 ThinkPad X1 Carbon 6th
Kernel: 4.19.75
Uptime: 1 day, 4 hours, 16 mins
Packages: 1005 (nix-system), 1152 (nix-user)
Shell: zsh 5.7.1
Resolution: 2560x1440
DE: Plasma
WM: KWin
Theme: Breeze [GTK2]
Icons: breeze [GTK2]
CPU: Intel i5-8350U (8) @ 3.600GHz
Memory: 3920MiB / 15919MiB

A workaround is to just specifically install powerdevil as a systempackage which installs a different version of the package that works

PS: also been trying to understand the xsession: invalid metadata log lines

Possibly related to #69150, though the error message makes me suspect it isn't.
#69150 never did provide any journal logs...

Oct 10 13:44:00 blackbox kernel: thinkpad_acpi: This ThinkPad has standard ACPI backlight brightness control, supported by the ACPI video driver
Oct 10 13:44:00 blackbox kernel: thinkpad_acpi: Disabling thinkpad-acpi brightness events by default...
Oct 10 13:45:30 blackbox xsession[2291]: invalid metadata "/run/current-system/sw/lib/qt-5.12.3/plugins/powerdevilkeyboardbrightnesscontrolaction_config.so"
Oct 10 13:45:30 blackbox xsession[2291]: invalid metadata "/run/current-system/sw/lib/qt-5.12.3/plugins/powerdevilbrightnesscontrolaction_config.so"
Oct 10 13:45:31 blackbox xsession[2291]: powerdevil: Falling back to helper to get brightness
Oct 10 13:45:31 blackbox xsession[2291]: powerdevil: current screen brightness value:  318

Don't see the DBus error after installing the package.
Invalid metadata error persists, though I don't see what effect they're having

Based on this https://wiki.archlinux.org/index.php/backlight I had my user (which is also a sudoers) in the video group. The slider and the ability to change brightness has returned. However, I'm not sure what the side effects can be, and if it's a good solution.

I think that's expected @Vskilet if you're not in the video group. So I think your issue was different than this one.

Yeah, I recently added myself to the video group so that I could use acpilight on the command line to work around this issue.  It did not fix this issue for me though.

#69150 has fixed itself - assuming this has been fixed as well.


Create API Documentation (Swagger/Postman)

Implement API documentation (Swagger, Postman, ...)

Hi @tiagostutz i'm interested in.

Hi @Ken-Andre ! Cool, I'll assign the task for you.
How do you propose to implement the API documentation?


Multi pollers, stop specific one when state changed, not "stopAll"

Hi Emma,
First of all, thanks for this great module, nice job!
Here is the situation, I have two pollers: poller-A for all pages and poller-B for only one page. I just want poller-B only work in the specific page, so I use "pollerConfig.stopOnStateChange = true" to stop it when state changed, but this will stop all pollers while I want to keep poller-A still working.
Is there anything I can do to implement this? Coule you please help?
Thanks again,
Lee

Hi @ramsaylee
pollerConfig.stopOnStateChange is really for all pollers. In your case, instead of using pollerConfig, you can use the following in your controller:
$scope.$on('$stateChangeStart', function () {
  pollerB.stop();
});

I hope that helps. :-)


Make status a subresource.

What does this PR do?

[ ] Adds new functionality
[x] Alters existing functionality
[ ] Fixes a bug
[ ] Improves documentation or testing

Makes the status a subresource in the CRD. See #511.
Code Quality Checklist

[ ] The documentation is up to date.
[ ] My code is sufficiently commented and passes continuous integration checks.
[ ] I have signed my commit (see Contributing Docs).

Testing

[ ] I leveraged continuous integration testing

[ ] by depending on existing unit tests or end-to-end tests.
[ ] by adding new unit tests or end-to-end tests.

[ ] I manually tested the following steps:

x
[ ] locally.
[ ] as a canary deployment to a cluster.

@ptnapoleon @Devatoria we were testing these changes and would like to get some feedback.
These are causing issues with the user info webhook. The user info is there in the request, but patching the status/object does not have any effect.
This then causes the controller to panic:
{"level":"info","ts":1645192724108.0188,"caller":"webhook/user_info.go:50","message":"storing user info in disruption","name":"container-failure-nikos","namespace":"chaos-demo","req":{"username":"minikube-user","groups":["system:masters","system:authenticated"]}}
2022/02/18 13:58:44 http: panic serving <IP_ADDRESS>:37045: runtime error: invalid memory address or nil pointer dereference
goroutine 1002 [running]:
net/http.(*conn).serve.func1()
	/usr/local/Cellar/go/1.17.2/libexec/src/net/http/server.go:1801 +0xb9
panic({0x1729aa0, 0x289cd90})
	/usr/local/Cellar/go/1.17.2/libexec/src/runtime/panic.go:1047 +0x266
github.com/DataDog/chaos-controller/api/v1beta1.(*Disruption).getMetricsTags(0xc000ade000)
	/Users/nkatirtzis/projects/chaos-controller/api/v1beta1/disruption_webhook.go:140 +0xdd
github.com/DataDog/chaos-controller/api/v1beta1.(*Disruption).ValidateCreate(0xc000ade000)
	/Users/nkatirtzis/projects/chaos-controller/api/v1beta1/disruption_webhook.go:88 +0x30f
sigs.k8s.io/controller-runtime/pkg/webhook/admission.(*validatingHandler).Handle(_, {_, _}, {{{0xc0002f6990, 0x24}, {{0xc0004ae9a8, 0x13}, {0xc000a22a60, 0x7}, {0xc000a22a70, ...}}, ...}})

A few questions:

Would we need any changes in the webhook? We tried replacing the logic with a patch operation on the status but still...
Would it make sense to treat the UserInfo as optional here? Imo the controller should not panic if this info is not there?

Would we need any changes in the webhook? We tried replacing the logic with a patch operation on the status but still...

Okay, this has jogged my memory. This was the issue I had, and I never solved it, so I gave up on making status a subresource.

Would it make sense to treat the UserInfo as optional here? Imo the controller should not panic if this info is not there?

Yes that's valid, but we still need to solve the update within the webhook?

We don't make the status a subresource but we replace any status updates as this PR does. This may work; the generation does not get updated which may fix the infinite loop we're having with the control plane. Still need to test end-to-end.

If this works, that does seem simplest (if worst?)

We make the webhook optional, behind a flag. I think that would still be fair since the user info is complementary?

We should be okay with this, afaik

If this works, that does seem simplest (if worst?)
Indeed. I will test if that works.

Regarding the user status webhook being optional, it would be nice to do this anyways? Mutating webhooks can cause many issues, especially when there is a control plane.
On our side we might have to disable them soon unfortunately...

@ptnapoleon I was thinking about this more while trying different solutions.
I would argue the UserInfo section is metadata. Wouldn't it make more sense if this info was an annotation instead?  And since it would be challenging to model that in annotations, wouldn't just the username be enough?
Looking at other projects, the ones that store the entire UserInfo section in the CRD have this as part of the spec. I suspect the reason is that mutating webhooks don't play nicely with subresources.

We don't make the status a subresource but we replace any status updates as this PR does. This may work; the generation does not get updated which may fix the infinite loop we're having with the control plane. Still need to test end-to-end.

After running a few tests, I was wrong on that. The /status endpoint that gets called on Status().Update is only available when the status is a subresource.
Would you be open to moving the UserInfo section either to the spec or to metadata?

Would you be open to moving the UserInfo section either to the spec or to metadata?

Would this end up as labels? /cc @Devatoria

I can, initially, open a PR that makes the UserInfo webhook optional, (as well as anywhere we check that code in the reconcile loop)?

This would be useful for sure. If this makes any mutating webhooks optional, behind a flag, that would be brilliant.
After trying a few workarounds, one solution that would work for everyone is the following:

The status becomes a subresource. This has been tested with Kubefed and works as expected. Otherwise unfortunately we can't do only status updates.
We move the UserInfo outside of the status block. We were thinking of modelling this as a JSON value in the annotations?

We are working on that solution so happy to contribute it as part of this PR.

Closing this in favour of David's PR: https://github.com/DataDog/chaos-controller/pull/518
Thanks for the feedback @ptnapoleon.


New version: ECLGraphColor v0.1.5

Registering package: ECLGraphColor
Repository: https://github.com/PetrKryslUCSD/ECLGraphColor.jl
Created by: @PetrKryslUCSD
Version: v0.1.5
Commit: 3ca83e9cfdf3b16595d6b33c8ac27559d12c5e51
Reviewed by: @PetrKryslUCSD
Reference: https://github.com/PetrKryslUCSD/ECLGraphColor.jl/commit/3ca83e9cfdf3b16595d6b33c8ac27559d12c5e51#commitcomment-141872173

[merge approved]


[RFC]: improve README examples of stats/base namespace

Description
This RFC proposes to improve the README examples of the stats/base namespace package. Currently, namespace package READMEs only include minimal examples which are not particularly informative and do not showcase namespace functionality.
Historically, namespace examples were not given much effort due to the rapidly changing nature of the project; however, now that development and organization has settled, it would be good to revisit these packages and add proper examples to better communicate to users how to use namespace contents.
For those wanting to contribute to this issue, you can use the following steps:

Browse through the contents of the stats/base namespace and identify interesting functions and packages to showcase.
Update the example code block in the "Examples" section of the README for the stats/base namespace and open a PR.
When updating the README, examples should follow existing project conventions (e.g., ES5).
Examples may require functionality from other packages to help make examples more interesting.

Related Issues
None.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

Hi @Planeshifter,
I'm interested in taking this task of improving the README examples for the stats/base namespace.
Given the extensive list of functions within this namespace, I suggest focusing on showcasing basic functions in the main README to provide users with a foundational understanding of the namespace's capabilities.
For the more niche functions within the namespace, we can provide a high-level overview in a separate section or in individual function documentation files. This approach ensures that users can easily access information about specialized functions while keeping the main README focused on essential concepts.
If you agree with this approach or have any other suggestions, please let me know.

@headlessNode Hello, please let me know if you need someone to pair with as there is no one assigned this task and I am interested in working on the same.

@Planeshifter I've already commented on another issue to be assigned #1505 . Please assign this issue to @sudoevans.

Hi @Planeshifter,
I am interested in contributing to this issue, assign this issue to me.
can you tell me whether I've got to write examples for all the functions?

@Planeshifter @kgryte May i work on this issue ? It is labelled as good first issue, it might help me to start contributing to this organization.

@BarryByte I suggest finding a good first issue focused more on writing code. E.g., https://github.com/stdlib-js/stdlib/issues/2324.

I appreciate your guidance and will definitely look into issue #2324  . However, since I have already requested to work on issue #2330 , I would love to start with it as it seems like a manageable task for my first contribution. If it's possible to assign it to me, I would be very grateful.


Add support for pre-build MacOS wheels

Depends on #1 and #2.

github action now builds macos targets.


fix: missing webauthn converter for login

:tada: This PR is included in version 0.109.8 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


DOP-4917: Add video options for video metadata

Ticket
DOP-4917
Related frontend PR
Example rST
Notes

I know the original ticket didn't ask for a description option, but I saw this Google Rich Result test that showed a single warning and figured it's worth including for completion.
All options are indeed optional. The frontend will handle whether to show the structured data or not based on the options available.
This PR should be good to merge without the need for the frontend PR as the existence of the new options shouldn't break anything

README updates

[ ] This PR introduces changes that should be reflected in the README.md and/or HACKING.md, and I have made those updates.

[x] This PR does not introduce changes that should be reflected in the README.md and/or HACKING.md

oh! and update the PR description for optional please :D


gridFS support

Hey, i'v been making gridFS support.
here's whith what i'v come up: https://github.com/muxahuk/mongo-express/commit/9165273bf37edf8bc59d2a10127daca0353db653
it still requers some changes, maybe design improvments and missing rename for files renaming.
U could play around and say what do u think should be improved and how.
PS: Mark it as note, disscussion or something like these.

Oh WOW!!!! That looks fantastic!!!!!!!
I've personally not needed/used GridFS as my production requirements are ~50kb documents x 1,000,000 but your implementation is very sound, and I know there are lots of people who will really like this.
I've no constructive suggestions to add regarding functionality, I know you'll get rename done, but would please ask that the code style matches the JSCS preset for AirBnB Not sure how your dev enviro is set up, but I have my Sublime Text configured to lint as I write and pre-commit hooks to ensure that it passes jscs. Feedback on why the pre-commit hooks aren't working would be great?

about pre-commit - if your wondering why it doesn't works for me - problem must be that i use GitHub for windows, not command line..
I wanted to descuass/ask one question related to gridFS:
currently it creates fs.files and fs,chunks in each database, but there most likely will be usecases when your app will use more than 1 file storage brefix ( for ex. fs.files, movie.files, user_uploaded.files atc. ).
How should these be solved ? How we can provide user to list all files from different file storages ?
How i see it: we should create database ( and hide it from panel ) where we would store eny settings related to database ( like wich storage prefixes it has atc. ). These way we could be able to see all files in all storages.
Any suggestions ?

Ah gotcha re pre-commit hooks :) I might look into making linting part of the Travis tests as I find linting helps prevent a lot of bugs from creeping in accidentally while JSCS style guides keep the source easier to read across multiple authors.
I'm all for creating a config DB, tools like PhpMyAdmin & pgAdmin do this, but that's a fair bit of work best saved for a later day once it gets necessary, which I don't believe it is yet...
The fallback behaviour should be that mongo-express doesn't need to look up any customised config in order to use GridFS, but sees in the list of databases pairs of with name endings of .files and .chunks and attempts to treat the pair as GridFS by providing an interface to add/remove files. As an admin interface, users should still be able to browse/update .files and .chunks databases, but without needing to add custom configuration settings treat them as GridFS.
We can get an array of GridFS buckets by analysing the list of databases, somewhere around
https://github.com/andzdroid/mongo-express/blob/53c446128cba9587fdc3e5c28b16f48fcb779941/db.js#L90 with a statement like
gridFSBuckets = _.map(_.filter(databases, function(el) { return el.substr(-6) === '.files' && _.intersection(databases, [el.slice(0, -6) + '.chunks']); }), function(el) { return el.slice(0, -6); });

which takes all databases, filters by having suffix of '.files' and also a corresponding '.chunks' in the DB list, then returns just the prefix name.
Once we have an array of GridFS buckets generated in db.updateDatabases, it should be pretty straight forward to list them in views/index.html, and create a view&route for upload/download/deleting inside a bucket similar to the "Collections" view.

That sound better than my solution. I'll stick to it.


elide exports with no value side

fixes #8037

:+1: although @rbuckton should also take a look.

:+1:


CRI-O support

cc-runtime should be able to work under CRI-O.

@sboeuf  is this complete (code complete, tested and integrated)? Can we close this?


compression middleware

Is it feasible or sensible to use middleware to run some form of data compression between client and server? What would be the recommended way to compress payloads between client and server? Is there any compression currently?

@seiyria Only if your bottleneck is bandwidth. Compression/decompression uses extra computational resources. It might be useful maybe if you need to deliver a small number of very popular resources in realtime - Then you could store the compressed versions of these resources in cache for example.
This could make sense if I had a scenario involving very low throughput channels each publishing very large JSON or binary objects to millions of subscribers.

Well, the situation I'm in is that I'm sending a lot of data to a client. Clients are on mobile devices and my server is hosted on heroku. Some of the things I send via socket are large sets of data, and I'm trying to lower the size that I send. I'm not worried about computational power on client or server right now because the target devices are pretty powerful and the server is scalable (usually network connectivity is the problem). Because of this, I figured that it would be wise to send either jwt-compressed bits or something.
To be specific on what exactly I'm making: I have monsters that are generated for players. They can be a bit large, data-wise (though I'll work on compressing them). I send 650-850 of them to a client per request (generally, per hour or per login). I figured generating a jwt token per monster would be better for sending them in that quantity, instead of sending the raw object. They look like this:
{
            "name": "Goblin",
            "profession": "Monster",
            "professionLevels": {
                "Monster": 1,
                "Thief": 1,
                "Fighter": 1,
                "Mage": 1
            },
            "statusEffects": [],
            "stats": {
                "gold": 0,
                "xp": {},
                "hp": {
                    "minimum": 0,
                    "maximum": 5,
                    "__current": 5,
                    "booster": 0
                },
                "mp": {
                    "minimum": 0,
                    "maximum": 3,
                    "__current": 3,
                    "booster": 0
                },
                "str": 1,
                "vit": 9,
                "dex": -1,
                "mnt": 2,
                "luk": 0,
                "acc": -1
            },
            "skills": [],
            "inventory": [],
            "equipment": {
                "weapon": {
                    "itemId": "41eba92d-7aab-4cd9-aa1b-7bcdd83f307e",
                    "name": "Claw",
                    "stats": {},
                    "levelRequirement": 1,
                    "quality": 0,
                    "value": 0,
                    "type": "weapon"
                },
                "armor": {
                    "itemId": "9a268717-142d-4333-a75c-379fde317ddb",
                    "name": "Fullplate",
                    "stats": {
                        "vit": 8,
                        "dex": -2,
                        "acc": -1
                    },
                    "levelRequirement": 1,
                    "quality": 0,
                    "value": 23,
                    "type": "armor",
                    "dropRate": 25
                },
                "profession": {
                    "stats": {
                        "str": 1,
                        "mnt": 2,
                        "dex": 1,
                        "vit": 1,
                        "luk": 0.3,
                        "acc": 0
                    }
                },
                "buffs": {
                    "stats": {}
                }
            },
            "unlockedProfessions": [
                "Thief",
                "Fighter",
                "Mage"
            ],
            "cooldowns": {},
            "slug": "MON-1",
            "id": "58bebdd0-ab05-43a2-9b05-7ed0e3db7646",
            "bonusXp": 0,
            "seed":<PHONE_NUMBER>563,
            "verifyToken": "049c7cb45bbc5a1025195e3a66f62974",
            "location": {
                "lat": 44.031542946243775,
                "lon": -88.55779830910286
            },
            "rating": -2,
            "goldDrop": "1d4"
        }

In this, I generate a verifyToken based on some data so the client can't spoof any data about a monster. They send the monster + the token back to the server and the server verifies that the monster was generated correctly. I might be doing it entirely incorrectly, though.
Unfortunately none of this data is cached, it's recalculated hourly also. Each client has  their own unique set of data that's calculated hourly, on top of that.

Alright. I squared away my issue. Surprisingly it was a rendering issue in testing, though I haven't determined if bandwidth or rendering will be the problem in production. If it is, I found that JSONPack gives me approximately 40% savings in compression of 750 of the above objects, so that's the route I'll go. Not sure I'll use middleware since I don't think those can be added on the client(?) and it shouldn't be added for endpoints that aren't a lot of data, anyway.


Capacitor V4 support

Hello, Capacitor V4 has been released. Do you have any plans for compatibility support?

Yes, I will release the update over the next week.

Thanks! It working.


Enhancement: Support Material Update for Revit Connector when receiving a commit

Description

When dealing with Revit connector you can upload the material categories to the speckle server in a commit including material category, when you try to open new file or same document on another device when you receive the commit you just upload to server with materials category, nothing happens. The current materials list in Revit document isn't updated. Also, the data sent in commit is not sufficient to create or update a material with the same properties and assets.
Expected Behavior

The expected behavior when receive a commit regarding material to check if the document has this material or not. If it already exists,  then the connector updates this material. otherwise create a new material with the same characteristics. keeping in mind the restriction of Revit API has of creating or editing the material properties

Thanks for the suggestion @AhmadEltobshy ! Is this something you could contribute to?
Otherwise, we'll definitely add it to our backlog cc @paloknapo

I will contribute that one, i almost finish and will make a pr soon.


CONTRIBUTING file: add developer notes explaining code layout

In this section there will be developer docs, which contains information like how the code base is setup, how the golang struct embedding is important for what we are doing, when we modify a struct how we add the name mod at the end of the new struct name, etc.

@surajssd Can we close this since @cdrage sent a PR for this? https://github.com/kedgeproject/kedge/pull/79

@pradeepto this is not done yet

@surajssd Could you describe what needs to be done?

I am taking this up will try to write up how the data flow happens in there and how the code is structured.

@surajssd since #464 is merged, WDYT, what else do we need to add to docs ?


setup.py

Hi,
I get an error in your when running setup.py. I think you have a typo include_package_date=True, should be include_package_data=True,

Good catch, I just pushed a fix. Thank you for pointing this out.
Josh


Where is the file 'd3file' located?

It's just an example. You can know what node is in examples.
https://github.com/react-d3-library/react-d3-library-examples


ERROR when open remote sftp server with nautilus

Environment
Windows build number: Microsoft Windows [Version 10.0.21387.1]
Your Distribution version: 20.04
Your WSLg version: 1.0.22

Steps to reproduce

WSL logs:

Attach WSLg logs from  /mnt/wslg
weston.log

You can access the wslg logs using explorer at: \\wsl$\<Distro-Name>\mnt\wslg (e.g.: \\wsl$\Ubuntu-20.04\mnt\wslg)
Expected behavior
Command:
nautilus sftp://user@server
should open a remote directory with nautilus

Actual behavior

Nautilus is opened with ERROR This location could not be displayed.
Sorry, could not display all the contents of 'xxx (sftp)' : operation not supported.

@wswxyq , thanks for reporting the issue. If I understand correctly, nautilus depends on gvfs-backend for over the network access, and the Ubuntu 20.04 for WSL is not configured for that unlike Ubuntu desktop. (while I'm not familiar with how to do it, but) have you tried to manually configure that? thanks!

@hideyukn88 Thanks for replying! Unfortunately I am not familiar with gvfs-backend and I only tried to run commands like sudo apt-get install -y gvfs-backends, which makes no difference. While I could not figure out any useful solutions to this ERROR, I hope the issue could be solved in the future since many people are using Nautilus to access remote server and view files.
Thanks!

Hit this same issue with Nautilus. Also really hopeful this might be resolved in the future, as the ability to use Nautilus for SFTP within Windows was what got me particularly excited about the introduction of GUI support to WSL!


fetcher.go   getOSType()   is not absolutely right

when my win add the "msys2"  to my  envpath  ,we can use "ls".

I have fixed.


The program won't run

sysid_dict_inv {0: '-', 1: 'A01', 2: 'A02', 3: 'A03', 4: 'A04', 5: 'A05', 6: 'A06'}
data_root E:/Downloads/DS_10283_3336/LA/ASVspoof2019_LA_cm_protocols
dset_name train
protocols_fname train.trl
protocols_dir E:/Downloads/DS_10283_3336/LA/ASVspoof2019_LA_cm_protocols
files_dir E:/Downloads/DS_10283_3336/LA/ASVspoof2019_LA_train\flac
protocols_file E:/Downloads/DS_10283_3336/LA/ASVspoof2019_LA_cm_protocols\ASVspoof2019.LA.cm.train.trl.txt
cache_fname cache_train_LA_Raw_audio.npy
Dear author, why does the program stay on top when I run the training model？

Hi, we fixed a bug of model definition, and tested the code on our server again, and it's running without problem.
We are not sure if that bug stopped your code, could you please send your error to my email so we can fix it?
Also, we don't get what do you mean by 'stay on top', you mean to say the code is still running or stopped because of bug? If it is still running, the feature preparation progress will normally take some time for train and dev data, and after that, training will start automatically.
thanks

Dear author, thank you for your reply so soon. I think I already know how to solve this problem. Thank you again for your help.
Another question, can you describe the SVM _ Fusion. M , how does this code run and how to fuse multiple Eval score files?

My current problem is how to get better scores through fusion. Thank you very much for your reply!
thanks


Improvements.

Separate classes.
Add tests..

Maybe static method instead of type constructor is better, especially for HGlobal?
Also, HGlobalScope logic can be implemented using CodeJam.Disposable.Create()

Ok.

Is it okay? Can you merge?

I can't see any commits other than initial.


Running multiple times fails

Bug description
When running the action multiple times (with different app ids) it fails.
Downloading ...
Destination file path D:\a\_temp\steamcmd.zip already exists
Waiting 10 seconds before trying again
Destination file path D:\a\_temp\steamcmd.zip already exists
Waiting 18 seconds before trying again
Error: Error: Destination file path D:\a\_temp\steamcmd.zip already exists

If rm D:\a\_temp\steamcmd.zip is run after the first time, everything works.
How to reproduce
Run the action more than once.
Expected behavior
It doesn't try to re-download steamcmd and re-initialize everything.
Additional details
It fails because steamcmd.zip already exists.

We just released game-ci/steam-deploy@v2, which uses a Docker image instead of downloading steamcmd, so this issue should be fixed now.
Can you confirm that it works with  game-ci/steam-deploy@v2?

Unfortunately it doesn't work for me: Error: Container action is only supported on Linux

I'd recommend using the upload-artifact and download-artifact actions to run the steam-deploy action on a linux runner.
For example: https://game.ci/docs/github/deployment/steam
If you really need to do it all in the same runner (maybe for performance reasons), you could try forking both this action and https://github.com/CyberAndrii/setup-steamcmd and fix for yourself.

I see. Very well, perhaps I'll do that sometime.


Data Science: Emotion Prediction with Semi-Supervised Learning using the RC Algorithm

NOTE: All 1st-time contributors should know Topic approval and PR submission does NOT guarantee your Topic/Article will be published. Our team of Peer Reviewers and Content Moderators will review all PRs that come in to make sure they adhere to the standard of quality we expect from the EngEd community.
We expect all community memebers to go through provided examples, resources, and previously published material before submitting content. As a rule of thumb, please only submit articles (pull requests) that are complete, formatted correctly, and include a fully polished article (ready to be published and error free).
All revisions and edits should be completed on your own forked repo (as to not take up room in the queue). Any PR that is submitted incomplete (meaning not ready to be published as is) will be closed. A PR being closed does NOT mean the article can not be published (or fixed) it simply means that the edits, revisions, and fixes will happen outside of the queue.
NOTE: Any topic suggestion copied/taken/modified from YouTube may Lead to a permanent ban from the community.
Topic Suggestion
Enter topic suggestion here...
Pre-submission advice
By following all our pre-submission advice and reviewing our Resources folder, you will maximise your chances of your topic being approved.
We ask that you please be patient as our team works through approving and publishing all articles/tutorials in a timely manner.
Allow 1-3 days for a topic to be reviewed and/or approved - allow 3-7 days for an articles to be reviewed and/or published (subject to vary depending on volume and/or backlog of articles).
Be sure to visit our Resources Page for tools, resources, and example articles that will help you propose and write a successful article.
Please ensure that you have only one open issue + linked pull request at a time. This will ensure that we complete the article in a timely manner from inception to publishing.)
We tend to stray away or tend not to publish reviews/comparisons of commercial product offerings.
Writing sample(s):
Include any links or writing samples - to help our team better gauge your writing quality.
Proposal Submission
Proposed title of article
Data Science: Emotion Prediction with Semi-Supervised Learning with RC Algorithm in Machine Learning
Use keyword research to improve your article's SEO.
Proposed article introduction
We learn new skills by observing and practicing, but we also remember, on a deeper level, things we have experienced. This is what the brain does, it creates a model of the world that allows us to respond to new situations in our lives. We often use those feelings and models to predict what other people are feeling by observing their facial expressions, body language, or even their tone of voice. Data science, when applied to computer algorithms, can help us to predict what other people are thinking or feeling by analyzing data. This post will be about learning about emotion prediction with semi-supervised learning with the RC algorithm in machine learning.
For example, if the article is based on machine learning, use the following: [Machine learning] Introduction to Machine Learning.
If the article is based on developing an Android application, use the following: [Android] Developing Apps using Android.
ONLY viable topics to pick from:

API
Artificial Intelligence
Blockchain
Containers
Edge Computing
Languages
Machine Learning
Networking
Node.js
Security

Key takeaways

What is the RC algorithm?
The problem with current methods
The RC Algorithm
Emotion prediction with semi-supervised learning with the RC algorithm in machine learning.

Article quality
In this article, we will explore the use of a semi-supervised learning algorithm called the Random Forest (RF) with the Reducing Covariance (RC) technique for emotion prediction. The RC algorithm is used to reduce the dimensionality of the data, making it more suitable for training the RF model. The RF model is then used to predict the emotions of a test data set. The results show that the RC-RF algorithm outperforms other semi-supervised learning algorithms for emotion prediction, with an accuracy of 85.71%.
References
Please list links to any published content/research that you intend to use to support/guide this article.
Conclusion
Finally, remove the Pre-Submission advice section and all our blockquoted notes as you fill in the form before you submit.
We look forwarding to reviewing your topic suggestion.
Templates to use as guides

How To Guide Template
Software Review Template
Tutorial Template

Please fill in the article quality section. @crezyj

@ahmadmardeni1 article quality added

Sounds like a helpful topic - let's please be sure it adds value beyond what is in any official docs and/or what is covered in other blog sites. (the articles should go beyond a basic explanation - and it is always best to reference any EngEd article and build upon it). @crezyj
Please be attentive to grammar/readability and make sure that you put your article through a thorough editing review prior to submitting it for final approval. (There are some great free tools that we reference in EngEd resources.)
ANY ARTICLE SUBMITTED WITH GLARING ERRORS WILL BE IMMEDIATELY CLOSED.
Please be sure to double-check that it does not overlap with any existing EngEd articles, articles on other blog sites, or any incoming EngEd topic suggestions (if you haven't already) to avoid any potential article closure, please reference any relevant EngEd articles in yours. - Approved


Improve AssignBondOrdersFromTemplate

I'd like to introduce heavily refactored AssignBondOrdersFromTemplate() funtion. What's improved:

doing two way match (template -> mol and mol -> template)
fixing common errors created by madnes done via automatic bonding, eg. remove excesive bonds, disconnected fragments
copy the stereo from template

The only downside I can see is that we loose the undocumented possibility of matching a "partial template", i.e you'd want to correct the common scaffold of few ligands and discard excessive bonds. Although it may work in some cases I can see that it could go south... If the intention of this function is to do an exact match - we're fine, otherwise I could hide additional functionality under some param: AssignBondOrdersFromTemplate(refmol, mol, exactMatch=True)
I have tested the modified function on ligands from DUD-E database. They are from docking, so many errors may be due to that. Some examples of molecule pairs that were fixed:
# dsiconnected fragment
refmol = Chem.MolFromSmiles('CCOCCOc1ccccc1C(=O)NC(=S)Nc1cccc(c1)C(=O)NC(C)(C)C')
mol = Chem.MolFromSmiles('CC(C)(C)N.CCOCCOC1CCCCC1C(O)NC(S)NC1CCCC(C)C1.O')

# excesive bonds
refmol = Chem.MolFromSmiles('NC(=O)c1cn(cn1)C(CO)CCn1ccc2ccc(cc21)NC(=O)CCc1cccnc1')
mol = Chem.MolFromSmiles('OCC1CCN2CCC3CCC(CC32)NC(O)CCC2CC3N4C56(O)N7(C2)C52(CN1CN2)C3476', sanitize=False)

# to excesive bonds to chlorine
refmol = Chem.MolFromSmiles('CCOC1CCC2(C1)C(Cl)CCCN2I')
mol = Chem.MolFromSmiles('CCOC1CCC2(C1)C1CCCN2ICl1', sanitize=False)

Probably including additional tests would be great, although I'd like to discuss if you all agree with the changes I introduced.

I've added a MCS matching to break excessive/displaced bonds as a last resort. This fixes following molecules:
refmol = Chem.MolFromSmiles('CC1CN(C2CC(NC(O)C3CCC(C)C(NC4NCCC(C5CCCNC5)N4)C3)CC(C(F)(F)F)C2)CN1')
mol = Chem.MolFromSmiles('CC1CN(CN1)C1CC(CC(C1)C(F)F)NC(O)C1CCC2CN3CCC(NC3NC2C1)C1CCCNC1.F')

refmol = Chem.MolFromSmiles('CC1CC(NC2NCC(C(O)NC3C(C)CCCC3Cl)S2)NC(C)N1')
mol = Chem.MolFromSmiles('CC1CC(NC(C)N1)NC1NCC(S1)C(NC1CCCCC1C)OCl')

If there is any reason to keep the old behavior, we could add an option to apply the new one, or perhaps move this to a new function

I don't see any reason to add such options. with 1:1 matching of input and template molecules, and I think that's the purpose of this function. I'm having second thoughts on stereo copying, which might be wise to switch off via param (since 3D might not match smiles etc.).

I tend to agree, although we may want to post to the newsgroup if anyone is currently using the old behavior just to be in the safe side.
It is a good point about copying mismatched stereo, there isn't enough information in the current api to indicate that this happened.

@sriniker : you may want to take a look at this one too.

the copyStereo thing is going to be tough to really get right, I think. Testing it is going to be tricky.
Since this is really intended to be used with 3D structures (which have their own stereo), I'd suggest we remove this option. After the initial set of changes are in and the community has some more experience with them, then we can re-visit the copyStereo option. that ok with you?

@mwojcikowski : I like what you've done.
Aside from the suggestions I made already, I would like to see some more test cases added, particularly test cases that exercise/demonstrate the new things that you've added.
Once those are in, I will take another scan through the code before merging.

Thanks. I will also review the code after weekend, just need a short break from it.
For the MCS examples see the molecules I've posted in that thread. The simplest situation where that helps is misplaced substituent (like Cl, etc.). This wouldn't mach either way.  It also should be fairly common when your PDBs come from docking software, as in case of my current problem.


XOAUTH2 google apps for domains

Morning all
Can you confirm that this gem works currently with how Google have changed the way you use XOAUTH2?
I can't get this to work, with a valid access token, keeps telling me Invalid Credentials.
I'm currently in a conversation with a google representative about this, any news I get I'll pass on.
Matt

Hi Matt,
can you share the page where they announced/documented this change ?

Hi Nicolas
This is going to be a bit long winded, but every time I've done anything with google that has been the case.
I'm going to paste in a list of actions I did in order to try and get a valid access token to use with your gem.  Underneath that will be the response from google.  Im more than likely doing something stupid, so if you can see it, please let me know.  BTW, we've used your gem for years with XOAUTH1 and our google apps for Education service, worked like a charm.
My step by step guide

Go to google developers console, and sign into it as a Super Admins
user account in our Google Apps Domain.
https://console.developers.google.com/project

Create a project.
The name is irrelevant and use the suggested Project ID.
Use the default value of App Engine Location as US data center.

Create the secrets and ID's for authentication
Click APIs $ auth -> Credentials
Click Create new Client ID
Select Installed Application
Click Configure Consent Screen
Select your email address and give it a product name
Click Save
Re-select Installed Apllication on the following screen and Other from the
installed Application Type
Click Create Client ID

You should now have a Client ID, a Client secret and 2 redirect URIs

Enable the google mail api in the project
Click API's, then search for mail.  Once yu've found the google mail api
enable it.

Retrieve an access token
I used jotto's script to retreive the access token
https://gist.github.com/jotto/2932998
Replace the client_id and client_secret with your values from step 3, and
select a scope.  I'm going to use the read only gmail for apps one.
https://www.googleapis.com/auth/gmail.readonly
Run the script once you've made your changes
ruby google_oauth2_access_token.rb

Follow the instructions on the screen, and you should now have an access
code, paste that into the terminal window where the script is running, and
it will thorw back at you the access token, as well as a refresh token.
Token is:
ya29.YwG5POrZpc2ddddLCNMYugsFwgJlSQlSiLkf7405U_j8gILABrlBao4Uhf6rOYX10tNi9dEjZ5X
GP6Z4zEA
Refresh token is: 1/sJcCBNzdb9b8sf168nR-h_04laMDHk68dPfsYW1Pq-0u8TYM

Enable the project to connect to our google apps domain.
In the google apps domain manager,
https://admin.google.com/AdminHome?pli=1&fral=1

Click Security -> Show more -> Advanced -> Manage API Client access
Paste the Client ID from step 3 into the Client Name box
Paste the Scope you used in step 5 into the Scopes box, then click
authorize.
Googles response
"The steps you use are very good and exactly what you should be doing, other then the third party script you are using for generating of the token. Although I review it and it seems fine to me, I can't advise you to continue using it, however, this is not where I saw a problem, but keep in mind that the script is not supported by us. At the very end, you explained how you manually add the scopes within the Admin Console > Security, which is correct if you were using the old authentication methods from oAuth 1.0, however, this authentication method was deprecated and currently, we are using 2.0, which has different ways of functioning.
You can find how to use 2.0 OAuth in this official article: https://developers.google.com/identity/protocols/OAuth2UserAgent"

I should double-check cdaea3f786029c472aa2a3f8158fdfbcd9bb09a0 then.
Did you try XOAUTH2 on a standard gmail account instead of a Google Apps domain ? This could save me some time.
I'll take a look asap (today hopefully).

Hi Nicolas
I'll try and do it with a normal gmail account now, it's unlikely to work though as the system that is doing this call is highly tied in with google apps, so it may not be possible, I will try though.
I'm not totally convinced that the google support is correct here, and I think it may be a problem with the account that I create the project with in the developer console.  It is a super admin in the google apps domain though.

Bit more information
I followed the instructions on this page
https://developers.google.com/identity/protocols/OAuth2UserAgent
to create an Oauth2 access token, which was linked up to my google developers console project, so got the ID's and that and access token was fine, for gmail.read.only scope.
I then threw this at it
curl -H "Authorization: Bearer ya29.ZAGeGYrMRCcJ_1abz5LoH9lsZbILm2XNdLY7hODUqtmZcwdq8aagOs05d3uYdBJzrSKyiwWRRTGY-Nh4Q" https://www.googleapis.com/gmail/v1/users/me/threads
That was fine
But if I changed the 'me' to a google apps users email address, it failed.
"domain": "global",
"reason": "forbidden",
"message": "Delegation denied for<EMAIL_ADDRESS>Bear in mind I'm a fully fledged admin in that domain.
Found this about this topic
http://stackoverflow.com/questions/26135310/gmail-api-returns-403-error-code-and-delegation-denied-for-user-email
That does say that using imap is ok though.  I have a deep seated fear of working with google, the documentation drives me insane.

Matt,
your question goes beyond my knowledge of Google authentication. The ticket subject misled me. It's not about Google Apps domains, it about Google Apps domains AND delegation.
One sure thing is that using XOAUTH2 on Google apps domain works perfectly fine by using the access token.

Well I'm not sure anymore. I guess the problem happens because you try to use scopes. In any case, I never tried that. Thus you should try a library in another language to know if gmail_xoauth really has a bug.
In fact .... I'm not even sure your question is about gmail_xoauth, you did not show me any code calling the gem.

Hi Nicolas, thanks for getting back to me.
I'm pretty sure that the gem is fine, but it's the process that I'm following trying to setup the access that I've messed up, or maybe I'm misreading some documentation or using the wrong token.
I'm going to write up a step by step account of what I'm doing, and include the code I'm using to try and authenticate using my google admin account, no delegation involved then, and then get back to you.
Sorry for the confusion of putting some work I did on the gmail API up here, I realise this isn't using that but it was the delegation issue that made me think it could be connected to my account, not the gem.
If you've got a blow by blow account of how to setup the connection between project in the google developers console, and the Google Apps domain, especially the options you take when creating this connection, that would be absolutely fabulous.

Hi Nicolas
I'm following google's docs here in this process.

Create a project in my google developer console, using the installed app option.  I'm signed into google as a domain admin for our google apps domain.
Using this page, https://code.google.com/p/google-mail-oauth2-tools/wiki/OAuth2DotPyRunThrough, send off the client_id and client_secret to obtain an Access Token.  During that process I give the application authority to access my email by a consent screen.
Stick that access_token into this code

require 'gmail_xoauth'
@access_token = "access_token"
@email = "my email address"
imap = Net::IMAP.new('imap.gmail.com', 993, usessl = true, certs = nil, verify = false)
imap.authenticate('XOAUTH2', @email, @access_token)
That works, happy days!!
If I change the email address to a students email address that is in our google apps for domains, it doesn't work.
4 The next thing I need to do is to tell our Google Apps that this project is allowed to access all users email data.
The way that google advise you to do that is to sign into Google Domain Admin Console as an admin, Click on Security, CLick Show More, Click Advanced, Click Manage API CLient Access, Enter the Client ID of the project created in step 1 in the Client Name box, then enter the Scope for IMAP access, https://mail.google.com/.
Once that is done, I still cannot access the other users mail count, invalid credentials error.
Recently a google representative told me that step 4 was for Oauth1 authentication, and not to do that any more as it's changed. If you click on learn more on that page, it takes you to here which also states that it's deprecated.  https://developers.google.com/accounts/docs/RegistrationForWebAppsAuto?csw=1
I'll post this up in stack overflow as well, see if anyone else can shed any light on it, but it seems to me the bit I'm missing is telling our google apps domain to trust the project I set up in 1.
I'm now looking through this documentation, see if it will help.
https://developers.google.com/identity/protocols/OAuth_ref

I've asked for some help in the community Nicolas.
http://stackoverflow.com/questions/29967175/migrating-to-xoauth2-and-accessing-other-users-unread-message-count-in-google-ap

Hi Nicolas
After some research and gnashing of teeth I've finally been able to get https://github.com/google/oauth2client to access a students gmail data, using a service account.
Here's the code
from oauth2client.client import SignedJwtAssertionCredentials

client_email =<EMAIL_ADDRESS>with open("testserviceaccount.p12") as f:
  private_key = f.read()

credentials = SignedJwtAssertionCredentials(client_email, private_key,
    'https://www.googleapis.com/auth/gmail.readonly', sub='student email address')

from httplib2 import Http

http_auth = credentials.authorize(Http())

from apiclient.discovery import build
service = build('gmail', 'v1', http=http_auth )
messages = service.users().messages().list(userId='student email address').execute()

print messages

See how I provide the public key, and also the client_email address from the Service Account that I have given delegation rights to all our users in our google apps domain.
Given that information, could you tell me how to use gmail_xoauth to accomplish the same result?
As I'm not inputting an access token here, and your code wants an access token, I'm really struggling to work it out.
Like I said earlier, it's probably me not understanding something, so any help and advice would be great.
Thanks
Matt

Hi Matt,
your example uses an HTTP API,  but gmail_xoauth only supports IMAP and SMTP. I don't even know if what you're trying to accomplish is possible with the IMAP extended protocol provided by Google.
If you can provide an example using IMAP in any language, I'll be glad to implement it in gmail_xoauth. Implementing it using HTTP, I'm not so sure, it's not in the scope of this gem.

Hi Nicolas
It looks like it is possible.
https://code.google.com/p/java-gmail-imap/wiki/GmailAndXOAUTH2
It would be great if you could port that into this gem.
Matt

Hi Nicolas
Is this something your still considering doing or should we start looking elsewhere?
Thanks again
Matt

@mjdavies did you manage to get this gem working with imap access for domain-wide delegation of authority?


raftstore: support specifying keys to split region (#5458)

Signed-off-by: disksing<EMAIL_ADDRESS>What have you changed?
Extends the half split scheme, PD can send any split keys to split a region.
cherry-pick #5458
What is the type of the changes?

New feature (a change which adds functionality)

How is the PR tested?

[x] Unit test
[x] Manual test (add detailed scripts or steps below)

Does this PR affect documentation (docs) or should it be mentioned in the release notes?

If this PR should be mentioned in the release note, please update the release notes.

/run-all-tests

/run-all-tests

/merge


How to cluster heroic

Hi,
I'm trying to make an heroic cluster made out of 4 servers. I've looked into the docs but they seem to be outdated.
Any idea on how to add nodes ?
Thank you

Hey, we found an issue with #139 - the grpc module doesn't have a default port. We'll add that and the example configuration should work.
When it does, you should just be able to add more nodes under the list of nodes under the cluster configuration, as described here:
http://spotify.github.io/heroic/#!/docs/config/cluster

Fixed

Can someone post their cluster configuration? We're having trouble communicating between api and data nodes. Specifically, we're looking to have 3 API nodes and 1 data node in a cluster. The examples only seem to cover single node clusters with the metadata service running locally.

Hi,
Sure. Here is my config.
# heroic.yaml
port: 8080

cluster:
  tags:
    site: HG
  protocols:
    - type: grpc
      port: 1394
  discovery:
    type: static
    nodes:
      - grpc://heroic.cc:1394
      - grpc://heroic1.cc:1394
      - grpc://heroic2.cc:1394
      - grpc://heroic3.cc:1394

metrics:
  backends:
    - type: datastax
      seeds:
        - cassandra-node1.cc
        - cassandra-node2.cc
        - cassandra-node3.cc
        - cassandra-node4.cc
        - cassandra-node5.cc

metadata:
  backends:
    - type: elasticsearch
      connection:
        index:
            type: rotating
            interval: 1d
        seeds:
            - "heroic-e.cc"
            - "heroic-e1.cc"
            - "heroic-e2.cc"
        clusterName: "heroic"
        client:
             type: transport
      backendType: kv

suggest:
  backends:
    - type: elasticsearch
      connection:
        index:
            type: rotating
            interval: 1d
        seeds:
            - "heroic-e.cc"
            - "heroic-e1.cc"
            - "heroic-e2.cc"
        clusterName: "heroic"
        client:
             type: transport
      backendType: kv

shellServer:
  host: "<IP_ADDRESS>"
  port: 9190


Support canceling routes on navigate

Canceling routes should be possible, but the interaction between the BB.History and the registered routes makes this a non-trivial task.
The registered Route should determine whether it can be canceled or not. And the act of canceling needs to happen before history updates the URI. Yet the Router sends over a callback that does not have knowledge of the linked object...only the Router ever knows about the link.
I might need to rewrite history/routing altogether to do this.

+1
This should be doable with a beforeNavigate event that sends a false for cancelled routes.

If the router manages everything separately from history, then this would be easy to add. In this world, the Router wouldn't even register callbacks for routes: it would simply use Backbone.history to update the URL.
I think this is tha way to go.

Gonna close this as out-of-scope for base router. The system I'm building, described briefly above, will solve this problem.


Added support for onBlur

Added support for onBlur
Added test checking onChange and onBlur callbacks are handled
Bumped version to 0.0.25
Added correct npm install command in README.md

My mistake! committed to the wrong repo. Sorry!

Hi jamie ! would you guys consider submitting PR to get your changes  merged to this repo ? It seemed good work and I'll never say no to more tests

getting a new branch ready


[⭐FEATURE] Add a Visitor Counter feature ✨

I want to add a Visitor Counter feature properly.
@iamparas0  PA please assign me this task.

@iamparas0


git ship: add a description of the workflow how to ship to the documentation

Several people have now accidentally shipped with the default commit message, which is almost always wrong. In addition to #382, we should also add a quick walk-through of how to ship to the documentation (man page and web).

Fixed in f30f02ba50f8d3ff170c056de18c0eb7b0aac284 and prevented shipping with the default commit message by commenting it out in 26949dc67c245465ba2fd95a2ece3cb5cd5bece1


Added --filterfields & --formatfields option

buildtest report --filterfields & buildtest report --formatfields

buildtest report --filterfields & buildtest report --formatfields

@shahzebsiddiqui Could you please check if the test at line 67 is added by mistake in the codebase as the test is already written in test_report_format() function?
https://github.com/buildtesters/buildtest/blob/issue_1224/tests/cli/test_report.py#:~:text=.print_raw_filter_fields()-,%23 run 'buildtest report --helpfilter',report.print_format_fields(),-report %3D Report

@shahzebsiddiqui Could you please check if the test at line 67 is added by mistake in the codebase as the test is already written in test_report_format() function? https://github.com/buildtesters/buildtest/blob/issue_1224/tests/cli/test_report.py#:~:text=.print_raw_filter_fields()-,%23 run 'buildtest report --helpfilter',report.print_format_fields(),-report %3D Report

That method you are referring to is for testing the buildtest rt --helpfilter and buildtest rt --helpformat which will print this in table.

The implementation looks good. Next step is to

Add documentation
Update output in buildtest help

I have added the documentation please let me know if anything else needs to be added @shahzebsiddiqui


Display a warning icon when no enabled include lists defined

Resolves #1841, resolves #1838
This PR is for displaying a warning icon on the Feature Flags root page and details page when an enabled feature flag has no enabled include lists defined.
Changes made:

Updated the api/flags/paginated endpoint to include hasEnabledIncludeList in the response.
Updated the selectors for retrieving the warning state in feature-flags.selector.ts.
Modified this.featureFlagService.fetchFeatureFlags() to this.featureFlagService.fetchFeatureFlags(true) in the FeatureFlagRootSectionCardComponent. This ensures that flags are re-fetched from api/flags/paginated whenever the user navigates back to the root page.
Updated the warning tooltip message to "No include lists enabled."

Although this PR appears to be functioning, I'm not entirely confident that this is the optimal way to include hasEnabledIncludeList in the response from the api/flags/paginated endpoint, especially after addressing the test case failures in FeatureFlagService.test.ts.
I would greatly appreciate if someone could review the changes I made to the findPaginated() function to return hasEnabledIncludeList. Please feel free to make suggestions or commit changes to this PR.


Graphics with transparent alpha channels aren't saved correctly

I pasted in graphics of these little Scratch cats, which were copied from PNG's with transparent backgrounds, upon saving and reopening the microworld, it seems the alpha transparency has been lost.

This was fixed in 3.4.10


Compile error when setting camera LookAt

<ngt-canvas [camera]="{ position: [0,2, 2], lookAt: [0, 0, 0], fov: 45 }">

Error: src/app/examples/vr/vr.component.html:4:55 - error TS2322: Type '[number, number, number]' is not assignable to type '(((vector: number | Vector3, y?: number | undefined, z?: number | undefined) => void) & number) | (((vector: number | Vector3, y?: number | undefined, z?: number | undefined) => void) & Vector3) | (((vector: number | Vector3, y?: number | undefined, z?: number | undefined) => void) & [x: ...]) | (((vector: number | ...'.
Type '[number, number, number]' is not assignable to type '((vector: number | Vector3, y?: number | undefined, z?: number | undefined) => void) & NgtTriple'.
Type '[number, number, number]' is not assignable to type '(vector: number | Vector3, y?: number | undefined, z?: number | undefined) => void'.
Type '[number, number, number]' provides no match for the signature '(vector: number | Vector3, y?: number | undefined, z?: number | undefined): void'.

ugh, I missed this issue in latest release. I'll fix this tomorrow. Sorry for the inconvenience

Released in 5.2.2 with [lookAt] on <ngt-canvas> instead


Remove version: WhatsApp.WhatsApp.Beta version 2.2341.2.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

@wingetbot run

URL: https://web.whatsapp.com/desktop-beta/windows/release/x64/WhatsAppSetup-beta.exe
Status Code: 200
(Automated message - build 627)

Hi @Exorcism0666,

If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly.


Cannot stream images from D457 on Jetson Orin

Required Info

Camera Model
D457

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubuntu 20.04

Kernel Version (Linux Only)
5.10.104

Platform
NVIDIA Jetson Orin

Language
C++

Issue Description
I can stream images from the D457's devices (IMU, RGB, Depth etc) using v4l2-ctl. But when I try to stream images using v2.53 of librealsense I see these error messages in the kernel logs.
[ 1490.024072] d4xx 72-001b: DEPTH START, stream_status 0x1004:2, config_status 0x4800:1
[ 1490.025233] bwmgr API not supported
[ 1490.200903] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 0, flags: 0, err_data 131072, vc: 2
[ 1490.201838] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1490.202061] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_close: Error in closing stream_id=0, csi_port=0
[ 1490.202361] (NULL device *): vi_capture_control_message: NULL VI channel received
[ 1490.202575] t194-nvcsi 13e40000.host1x:nvcsi@15a00000: csi5_stream_open: VI channel not found for stream- 0 vc- 2
[ 1490.285087] d4xx 74-001b: Y8 START, stream_status 0x1014:2, config_status 0x4808:1
[ 1491.936240] d4xx 72-001b: ds5_send_hwmc(): HWMC failed, ret: 0, status: 1, error code: -21
[ 1492.299329] d4xx 72-001b: ds5_get_hwmc(): HWMC failed, ret: 0, error code: 256
[ 1498.654867] d4xx 72-001b: DEPTH STOP, stream_status 0x1004:1, config_status 0x4800:0

I am using Connect Tech's BSP for Jetpack 5.0.2 that has the drivers required for the D457 to work with Connect Tech's Expansion Board (JCB002)

At https://github.com/IntelRealSense/librealsense/issues/10984#issuecomment-1486939651 a D457 user states that Connect Tech's instructions were to use JetPack 4.6.1.  They comment on this again at https://github.com/IntelRealSense/librealsense/issues/10984#issuecomment-1518671668
The librealsense SDK does not have official support for JetPack 5.0.2 at the time of writing this.  It has been added to the next SDK version, which will likely be numbered 2.54.0.  This support is currently on the development branch of the SDK, which becomes the latest 'master' SDK when pushed to release.
https://github.com/IntelRealSense/librealsense/tree/development
It is possible to use Orin with JetPack 5 and SDK 2.53.1 if a kernel patch is not applied or if the SDK is built from source code using the RSUSB backend installation method to bypass the kernel - see https://github.com/IntelRealSense/librealsense/issues/10722#issuecomment-1230005808
Ultimately though, I recommend enquiring to Connect Tech's support if you continue to experience problems with this issue.

@MartyG-RealSense

At #10984 (comment) a D457 user states that Connect Tech's instructions were to use JetPack 4.6.1. They comment on this again at #10984 (comment)

I did see these posts, but since I'm using an Orin I can only use a Jetpack 5-compatible BSP.

It is possible to use Orin with JetPack 5 and SDK 2.53.1 if a kernel patch is not applied or if the SDK is built from source code using the RSUSB backend installation method to bypass the kernel - see #10722 (comment)

The D457 is detected only when I disable the RSUSB backend.

Ultimately though, I recommend enquiring to Connect Tech's support if you continue to experience problems with this issue.

I will contact Connect Tech to check what version of librealsense their BSP(CTI-L4T-AGX-35.1.0-V001-REALSENSE) was tested against.
Thanks for your quick reply!

You are very welcome.  I look forward to your next report.  Good luck!

Hi @dmellosanjay.
We have suport for JetPack 5.0.2. Do you have any updates on this issue?

@dmipx I'm receiving an Jetson Orin Nano devkit next week. How could I test the support?

My understanding at the time of writing this is that official support for 5.0.2 has been added to the development branch of librealsense already but is not yet in the master branch (currently 2.53.1) until the development branch gets pushed to release and becomes the next 'latest' master version of the SDK.  I believe that in SDK 2.53.1, JetPack 4.6 is still currently the newest officially supported JetPack.
https://github.com/IntelRealSense/librealsense/tree/development
However, JetPack 5.0.2 can be used with Orin now, by either not applying kernel patching or by building librealsense from source code with CMake with the RSUSB backend installation method - see https://github.com/IntelRealSense/librealsense/issues/10722#issuecomment-1230250762

Hi everyone,
The new 2.54.1 version of librealsense with JetPack 5.0.2 support is now available.
https://github.com/IntelRealSense/librealsense/releases/tag/v2.54.1
Release notes:
https://github.com/IntelRealSense/librealsense/wiki/Release-Notes#release-2541

I was able to stream frames from the depth and RGB sensors by running the SDK examples save-to-disk and hello-realsense
Thanks for your support!

You are very welcome.  It's great to hear that the examples were able to stream successfully for you.  Thanks very much for the update!


The |> operator can cause parsing errors where normal function calls do not

I have continued working on the list representation of mixed units and came upon this odd behavior. In my function, inside an if expression, calling a function with two arguments worked fine, but piping in one of the gave an error. This seems unintentional since I see no reason why it would make it ambiguous.
Below is the two function definitions and their output.
# works as expected
>>> fn unit_list_impl<A: Dim>(val: A, units: List<A>, acc: List<A>) -> List<A> =
    if len(units) == 1 then
        reverse(cons(val -> head(units), acc))
    else
        unit_list_impl(val - unit_val, tail(units), cons(unit_val, acc))
    where unit_val: A =
        if (len(units) > 0)
        then trunc_in(head(units), val)
        else error("Units list cannot be empty")

  fn unit_list_impl<A: Dim>(val: A, units: List<A>, acc: List<A>) -> List<A> = if (
len(units) == 1) then reverse(cons(val ➞ head(units), acc)) else unit_list_impl(val
 - unit_val, tail(units), cons(unit_val, acc))
    where unit_val: A = if (len(units) > 0) then trunc_in(head(units), val) else er
ror("Units list cannot be empty")

# fails due to parseing errors
>>> fn unit_list_impl<A: Dim>(val: A, units: List<A>, acc: List<A>) -> List<A> =
    if len(units) == 1 then
        reverse(cons(val -> head(units), acc))
    else
        unit_list_impl(val - unit_val, tail(units), cons(unit_val, acc))
    where unit_val: A =
        if (len(units) > 0)
        then val |> trunc_in(head(units))
        else error("Units list cannot be empty")
error: while parsing
  ┌─ <input:74>:6:5
  │
6 │     where unit_val: A =
  │     ^^^^^ Expected local variable definition after where/and

error: while parsing
  ┌─ <input:74>:9:9
  │
9 │         else error("Units list cannot be empty")
  │         ^^^^ Expected one of: number, identifier, parenthesized expression, str
uct instantiation, list

I tested it in the online terminal (wasm) from firefox.

The problem is that |> has lower precedence than if … then … else

Oh of course, I completely forgot about that. I'm not sure of which is better, but perhaps a terminating token to the if-else expression would solve some of the problem? My thinking is that the then clause is already delimited by the else, making it a logical unit to scope as if in parentheses. If the else clause could be delimited as well it would also have an easy to parse scope. It does bring other challenges but it would disambiguate a pipe after the whole statement as if it's after the delimiter it would apply to the whole if-else expression while if inside it applies to only that scope. My main argument against this approach would probably be changing if-else expressions would become ugly or reintroduce ambiguity.
For good measure here is an example syntax for the idea:
if true
then 1.5m |> floor_in(m)
else 1.5m |> ceil_in(m)
end

# equivalent to
if (true)
then ( 1.5m |> floor_in(m) )
else ( 1.5m |> ceil_in(m) )
end

# the problem with chaining:
if i < 0
then "negative"
else
  if i > 0
  then "positive"
  else "zero"
  end
end

Unrelated: I'm excited about this unit_list feature!

I really liked the idea of it when I read about it, so I'm excited to try my hand at it!

I'm not sure of which is better, but perhaps a terminating token to the if-else expression would solve some of the problem? My thinking is that the then clause is already delimited by the else, making it a logical unit to scope as if in parentheses. If the else clause could be delimited as well it would also have an easy to parse scope. It does bring other challenges but it would disambiguate a pipe after the whole statement as if it's after the delimiter it would apply to the whole if-else expression while if inside it applies to only that scope.

I think that reasoning is correct.

if-else expressions would become ugly

Indeed :-/

# the problem with chaining:

what do you mean by that?

# the problem with chaining:

what do you mean by that?

I meant that making a chain of if-else expression would no longer be possible without nesting them.
I've had an idea about this. Could the syntax of the if-else be extended? To my understanding the current syntax is something like the following.
IfElse = "if" Cond "then" Expr "else" Expr

What if chaining was an actual part of the syntax and all chains had to end with a terminating token. Something like the following.
IfElse = "if" Cond "then" Expr "else" Expr  ; Regular if-then-else
IfElseChain = 1*IfElse "end" ; A chain of one or more if-then-else's terminated with a single "end" token

I'm thinking this allows for an optional end token for the normal case that could be used to make the parsing of the pipe operator unambiguous and making the nesting of if-then-else chains easier to determine. As far as I can see it would allow for the current syntax in all cases but enable additional uses without the need for parentheses or many ugly terminating tokens.
Disclaimer: I do not really understand the current implementation of the expressions. I have never used Rust and can't really gauge how big of an undertaking this would be, so if it is a larger change then I don't mind the parentheses that much, but would probably write a paragraph about it in the documentation.


Solve #21

There was inconsistent between old/new indexes for NotifyCollectionChangedAction.Move/Move. There is no the exception after replacing. Also added Ui test that cover this case.

@ReedCopsey Can you please review the PR?


Import problem

Hello,
Sorry to bother you again, but it seems your baseline is not working.
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/benjamin/Documents/l2rpn-baselines/l2rpn_baselines/PandapowerOPFAgent/__init__.py", line 6, in <module>
    from l2rpn_baselines.PandapowerOPFAgent.PandapowerOPFAgent import PandapowerOPFAgent
  File "/home/benjamin/Documents/l2rpn-baselines/l2rpn_baselines/PandapowerOPFAgent/PandapowerOPFAgent.py", line 9, in <module>
    from grid2op.Agent import Agent
ImportError: cannot import name 'Agent' from 'grid2op.Agent' (/home/benjamin/Documents/grid2op/grid2op/Agent/__init__.py)

Indeed now the class Agent is called BaseAgent in grid2op.
Benjamin

Sorry, i thought i had fixed that already, but i guess only on my local machine. I'm out of office for the rest of the week but will try to correct this in between or Monday at the latest.

Indeed i had fixed it but not commited. Should be updated now.


[Bug?]: Properties set on event.locals in middleware.ts are missing from getRequestEvent()!.locals

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Current behavior 😯
Properties set on event.locals in middleware.ts are missing from getRequestEvent()!.locals.
Expected behavior 🤔
Properties set on event.locals in middleware.ts are present on getRequestEvent()!.locals.
Steps to reproduce 🕹
Reproduction link: https://stackblitz.com/edit/vitejs-vite-hgzy8d?file=src%2Froutes%2Findex.tsx
Your environment 🌎
<EMAIL_ADDRESS><EMAIL_ADDRESS>

Thanks for reporting. We attempted to make a TS build and somehow that has been breaking a bunch of stuff.

And yet again this seems to be something that works perfectly fine in the repo but breaks outside of it.

Should be fixed in 0.7.4


Add the Javadoc of 3.5.0

@supl Merging it since it's just adding the javadoc of 3.5.0. PTAL when you get a chacne. (it's too big so you can't really check though)


Adds sentiment analysis feature

I added a feature where I use the Sentiment API and Charts API to analyze how the sentiment of my comments changes over time. I haven't really made any of these features look presentable, so I will likely move my focus to cleaning some stuff up and doing the image compression we discussed a while back. Then I will move on to some more APIs.

Starting review


[Proposal] Include num_kv_heads in the Model Properties Table in the docs

Proposal
Include num_kv_heads in the Model Properties Table in the docs
Motivation
A fair amount of models now use multi-query attention (ie single key and single value) or grouped-query (ie k keys and values, q queries, for 1 < k < q). This lets users see this easily about models.
Should be a fairly easy change.
https://neelnanda-io.github.io/TransformerLens/generated/model_properties_table.html

@neelnanda-io I've made the change locally, but noticed that only 12 of the models would have n_key_value_heads. And when I add
    if "num_key_value_heads" in cfg_json:
        cfg_dict["n_key_value_heads"] = cfg_json["num_key_value_heads"]

below this line, that 17 of the models have n_key_value_heads, which makes me think that not all the configs have a value for n_key_value_heads when they should. Do you think I should open a PR just to update the docs (and either assume the configs are correct or fix the configs in a separate PR) or open a PR to do all of it?

Oops, I miscounted. 17 models would have n_key_value_heads without those additions. I'll just create a PR to update the docs.