License Problem of vision

🚀 The feature
As the video related API added in, please care about the license of video component.
For example, if you use ffmpeg( with x264(GPL license) ) or pyav (with (ffmpeg with x264)) without process isolation, you will meet the license problem for change vision's license to GPL .
Motivation, pitch
Watch out that the GPL is contagious. Which will cause big problem to a BSD project.
Alternatives
No response
Additional context
No response

Thanks for reporting. My understanding is that ffmpeg's licensing is the reason why we don't offer precompiled binaries with video support. I'm not too knowledgeable on the topic, so let me cc a few people who know more on the topic than I do.
@fmassa @prabhat00155 @bjuncek Could you provide a summary of the licensing situation?

For pyav you can use  python -m av --version to see the real runtime license
like
PyAV v9.0.1
library configuration: --enable-gpl --enable-version3 --enable-shared --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
library license: GPL version 3 or later
libavcodec     58. 91.100
libavdevice    58. 10.100
libavfilter     7. 85.100
libavformat    58. 45.100
libavutil      56. 51.100
libswresample   3.  7.100
libswscale      5.  7.100

As you can see it is GPL.
The root reason of the license is what FFMPEG built with. The same situation for Pyav.
Something you can check for this. link
So for pyav , the solution is to build pyav by source that you can chose what component of ffmpeg to build with,then pyav will use your custom ffmpeg without GPL component.

I have an idea that you can use h264_cuvid and nvenc_h264 to replace libx264 and hevc_cuvid and nvenc_hevc to replace libx265 on GPU vision.

@andfoy was toying with the idea of providing LGPL compatible version of ffmpeg to pytorch channel. Maybe we should pick this up again?

We used to provide an LGPL version of FFmpeg that linked against OpenH264, but it was only for 4.2

Never mind, the latest minor updating version is 4.4.2,just update and recompile. @andfoy @bjuncek

I've checked with our Open-source and legal teams and they confirmed that:

TorchVision doesn't have a required dependency on or distribute any GPL library, so there are no issues with the BSD license. We don't prevent a user from combining TorchVision with GPL software, but no GPL software is needed for TorchVision to operate.

I will therefore close the issue as there is no licensing problem in TorchVision.


CU-85ztxzr1x: tapioca-periph: artifacts

Task linked: CU-85ztxzr1x 213 [Approval] MagnetarV2.burst can't be called on behalf of user


IC-9-GET-endpoint-to-retrieve-products

Updated swagger such that it is accessible from within the frontend.
Added two GET methods for Products

Merging


SPC ff, SPC fh, SPC fr, SPC fg, and SPC fm are not woking for dashboard-nvim theme

I've tried to follow the quick start's section but I couldn't understand what commands alpha-nvim suppose I've mapped to SPC ff, SPC fh, SPC fr, SPC fg, and SPC fm when using dashboard-nvim theme. For the out-of-the-box config, none of these keymapping are working...
The README.md file says:

this theme makes some assumptions about your default keybindings to customize the buttons, see :h alpha-example

It turns out that the alpha-example doesn't even set these keymaps. Rather, it sets only the button q and e. The unique keymap that works is e (new file).
How to reproduce

save this code as minimal_init.luarequire("packer").startup{function ()
  use 'wbthomason/packer.nvim'
  use {
    'goolord/alpha-nvim',
    config = function ()
        require'alpha'.setup(require'alpha.themes.dashboard'.config)
    end
  }
end
}

Run nvim -u minimal_init.lua
Test SPC ff, SPC fh, SPC fr, SPC fg, and SPC fm. They won't work

Expected behavior
One of the following options:

Having a quick start's section with clearer instructions to make SPC ff, SPC fh, SPC fr, SPC fg, and SPC fm work.
Making these keymaps already working without any extra configuration

As it is written on README.md, it conveys the wrongly impression that these keys work, but they don't.
Thanks in advance.

After struggling a lot to make out how to set this up.  I really didn't understand a "quick start" which does not provides the basic functionalities :expressionless:

Just installed this plug in and experienced it myself as well. Out of the box the starting UI shows the hot keys like space ff but they do absolutely nothing. Either hotkeys the user are straight up shown on start up should work out of the box, or not be shown as the default hotkeys. If the point were to make users customize their shortcuts from the start, then the displayed shortcuts shouldn't exist and instead the program should encourage you to make new hotkeys.

yes the dashboard theme makes assumptions about what keybindings you already have by default, but so does the viml dashboard plugin. i don't have any interest in changing that

the dashboard theme without making assumptions about your existing keybindings would just be a header by default. this is pointless


fixed back stackedlabel input scroll

This PR resolves #2006 in https://github.com/GeekyAnts/NativeBase/releases/tag/v2.5.2 .
But I don't know why .secureTextEntry fontSize is changed.
Is it related to #2006 ?


[BUG] Error to remove last item from the cart

When I went to remove the last item from the cart this error happened

console:

I made a video showing the problem
https://www.loom.com/share/6f34f25137544dc4a95f178cf03faef7

Why is everything in uppercase? 🤔  https://demo.vercel.store/product/lightweight-jacket

Hello, I don't know why everything is in uppercase, but debugging on the console I found a property that when I remove it comes out of the uppercase
html {
    height: 100%;
    box-sizing: border-box;
    touch-action: manipulation;
    font-feature-settings: "case" 1,"rlig" 1,"calt" 0; //this property makes the uppercase in my browser
}

My Google Chrome is version 87.0.4280.141 64 bits
Linux Mint 20 Xfce 64 bits
About the cart item, I tried it on firefox too and the item doesn't come out
I'm going to make a short video to help
https://www.loom.com/share/9cc9de86c85b4196a933afe4ab38b361
Thank you very much for your time and attention
Sincerely
:blush:

It looks Vercel team is not responsive. Let's search for alternatives.

Do you know any other alternatives?

Looks like this has been solved already!


Accessibility-related updates

Implementing documentation accessibility (a11y) CI checks, to ensure that the rendered documentation is in line with the WCAG2AA standard.
Before merging, we should decide whether this CI job is activated by default or one of the configurable options (I expect that some of our more established projects will required quite a lot of docs cleanup to pass the test...)

Before merging, we should decide whether this CI job is activated by default or one of the configurable options

If I understand the question correctly, I think it would be best to switch it off by default and allow it to be switched on by repo-specific config.


Something is wrong | 'taskId'

Fixed, realized I didn't pay for the api :sob:

Is it working correctly, worth a shot to buy anycaptcha services with this code or which captcha service you use, if code is working I would like to buy captcha services you recommended?  @unfetchable


Update Expander NotSupported notes

Just FYI - we haven't released the new CollectionView support for Expander yet.
It's been merged, but not yet released.
It requires a Major Version update since we had to bump our minimum  .NET Dependency and our minimum .NET MAUI Dependency.
@jfversluis Want to release v5.0.0 tomorrow along with Maui.Markup v3.0.0? MCT v5.0.0 adds CollectionView support for Expander and fixes a FolderPicker error. It's a bit underwhelming for a Major Version update, but as long as we note the breaking change in our minimum dependency, I think folks will understand.

Did I do it again?! arrrghhh


fix idle_scaling key not being set correctly for dev services

fixes #5

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


[Typo]: Sentence out of place?

Summary
The highlighted sentence seems out of place. It does not match the context of the page.
Page
https://react.dev/reference/rules/react-calls-components-and-hooks
Details

It's not out of place but it could be explained better. The missing context is that this pattern of passing hooks as props is commonly done as a way to do dependency injection so you can replace the hook with a mock in testing environments. Maybe we don't need to include that, but if we want to keep it we should provide more of this context.
cc @poteto

Yeah I was trying to think of examples where people might reach for dependency injection and testing seemed like the most common scenario. Adding some context about this would be great, @txbm would you be interested in opening a PR?


LRP: Add explicit dependency to k8s ServiceCache

Currently, the Agent daemon setup registers the k8s ServiceCache with the LRP Manager via the method RegisterSvcCache.
In the meantime, the k8s ServiceCache is provided by its own Hive Cell which makes it possible to have an explicit dependency from the LRP Manager to the ServiceCache.
Therefore, this commit adds the k8s ServiceCache as direct dependency to the LRP Manager and removes the method RegisterSvcCache.

/test

/test


Plural genders inflected with subjectize does not work as expected

When I have say a "women" and want to subjectize it in the first person I would expect to get back "we" but instead get i.

Issue solved with commit d49aa5f


Invoke installed ga4gh_* packages as part of CI

@jeromekelleher discovered (https://github.com/ga4gh/server/issues/1003) that it is possible for our CI to pass and the ga4gh_server utility to fail to start.  We should have a step at the end of our CI that tests that we can start and invoke the ga4gh_* utilities without any issue.

(although I am a bit surprised that tests/end_to_end/test_server_start.py did not catch that issue... will investigate)

Fixed in #1010


How is it performs on voc2007 test  benchmark？

Do you ever test the results on VOC2007?

@qijiezhao no, I didn't do this job.  if you want better performance, you have to adjust the size of the anchor and the learning rate, it may cost a lot of time.


BUG: Doesn't work with the latest version of Sketch :(

@aacrouch are you using the latest version of the plugin (11.4)? Sketch 45 introduced a nasty bug, which was addressed back in 45.0 (https://github.com/sonburn/symbol-organizer/issues/25). I have also verified Symbol Organizer works in 45.2.

@sonburn ,Does not work in 45.2 :(

@ralts00 I saw exactly what you saw. I was on version 11.0. Then I installed latest (by downloading directly from github, not through any plugin manager), which is 11.4. Everything worked as expected, at least on my computer.

Thanks @jayliu50, you are correct... @ralts00 Symbol Organizer works properly in 45.2 if you have the latest version 11.4.


openapi tags splitting?

i have a path with tags object however the tag splitting.
it shows below.

How can i fix this?
the swagger is using openapi 3
"paths": {     "/random": {       "post": {         "description": "POST /form",         "summary": "Test",         "tags": "Reference",         "responses": {           "200": {             "examples": {               "imageData": [{                 "test": "test"               }]             },             "content": {               "application/json": {                 "schema": {                   "$ref": "#/components/schemas/Pet"                 }               }             }           }         }       }     }   }

tags should be an array.

@nanov Thanks for reply! I'm able the resolve this problem! Wouldn't it be great if it shows an error with the tags? It shows nothing about it currently, or the other version of ReDoc shows e.filter is not a function

I am not the developer of ReDoc.
The message from the other version is also a "coincidence", because a filter method is used on the array, so it produces an error. I guess type checking could be easily done, the question is if it's really needed. I would validate my schema with something like that before deploying.

@luvwinnie validate your spec before ReDoc. ReDoc intentionally doesn't bundle in a validator to save bundle size.


DllNotFoundException: Unable to load DLL 'fccore'

What happened?
On iOS when I begin recording I get this error:
DllNotFoundException: Unable to load DLL 'fccore': The specified module could not be found.

I've tried adding the binary as an embedded binary is xcode, but then I get this error on build:
/arkitscene.app/PlugIns/fccore.bundle: unsealed contents present in the bundle root
Command /usr/bin/codesign failed with exit code 1

Is it reproduceable?
Yes
Released package version / tag?
v0.2
Unity version, operating system, target platform (standalone windows, mac, iOS, PS4...)?
iOS

Video recording: Editor only for now. Standalone within reach for 2018.2. Low-hanging for iOS and other Microsoft platforms as they piggy-back on existing implementations.

Q: How did you trigger the recording? iOS is not supported by the video recorder, so you should have gotten an error in the console that says: Recorder xyz does not support current platform"
you should not be getting a DllNotFoundException!


Null Weapons

Been playing with the demo extraction on and off and it was working fine till I tried putting some more recent demos through and now I am getting errors for Null Weapons.  player.ActiveWeapon.Weapon is returning 'Object reference not set to an instance of an object.' and iterating through player Weapons I am getting similar type of errors. Did something change to the way demos capture this information? Also if this has already been answered sorry, I couldn't find anything recent about this type of issue.

I noticed that Player values are null as well. I went back to a couple of demos from HLTV from December and those ones work, but anything starting in this year is returning Null values for some of the Players and Weapons. Did something change to cause this problem or do I need to use a newer version of the library. I am currently using the NuGet Stable version.

User Error! I messed up a part of my code.


Update user guide

FIxes #489

Codecov Report

Merging #490 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #490   +/-   ##
=========================================
  Coverage     18.93%   18.93%
  Complexity      369      369
=========================================
  Files           226      226
  Lines          4379     4379
  Branches        523      523
=========================================
  Hits            829      829
  Misses         3475     3475
  Partials         75       75

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fc69ae...ad0821e. Read the comment docs.


feat: add Concur's GitHub to the addon

Now everyone in SAP has access to that new github instance, which means the users will have an i-number instead of the name.
I wonder how the people.wdf call works? I couldn't find how it is being used, but that'd be a problem because the people using github.concur rarely have ready-access to the people.wdf webite.

Hi @Psidium, thanks, very nice. I'll test it and then merge it. It will take some time though as I also need to think a bit about the permission update and I might already add other sites as well before publishing a new version (users will be asked to confirm the new permissions so I may bundle multiple permission updates into one version update to not annoy them with the permission requests).
I removed the people.wdf call just recently because I found that it did not work as it did some time ago. (The call was in background_scripts/fetch-github-name.js and it used github itself as a fallback in case people.wdf did not work)

@Psidium the updated version is now published (both, Chrome and Firefox). To avoid any problems due to a permission update, github.concur.com needs to be enabled manually in the popup:

Open the popup
Go to "Optional Permissions" (second from bottom)
Click on github.concur.com and save changes
Confirm the browser's permission request
If you already have github.concur.com open, you need to reload the page. Then, auto-login, username replacement, etc. also work on Concur's GitHub

I will work on improving the user experience with these optional permissions (so that users get a notification or something that they can enable a new feature). But at least you can already use it now :)


Allow different styles of signing parameters

I'd like to be able to sign with a key already installed on our build machine, which requires a different set of arguments than certificateFile and certificatePassword arguments can account for.
Any objections to adding a signWithParams argument that just gets passed through to squirrel?  Should I deprecate and/or remove certificateFile and certificatePassword at the same time?
The alternative for me would be adding keystoreName and certificateName arguments (corresponding to /s and /n arguments to signtool.exe, respectively).
Preferences?

The alternative for me would be adding keystoreName and certificateName arguments

I kind of like this, seems straightforward and we wouldn't have to deprecate/remove the current signtool options.

This would be fairly straightforward, this is actually already how Squirrel works. We could add the signWithParams parameter that trumps certificate.*

FWIW, I think signWithParams has the advantage of being as future-proof to new use-cases as we can possibly get.  I'll tentatively plan on making a PR adding a signWithParams argument, but without removing / deprecating the certificateFile and certificatePassword arguments.

@joshuawarner32 :+1: :rabbit:


logstash handling of canary events

To test, you should be able to simply:

start  docker machine
start RDO instance
eval machine environment
docker rm -f $(docker ps -qa)
docker-compose -f docker-compose-ent-dev.yml up

Canary should generate a testflight record set every 2 minutes.  You should find them in the internal-{today} index in ES, and note that they have a type of "canary"

Current coverage is 68.49%

Merging #462 into develop will decrease coverage by -0.13% as of 46dcb21

@@            develop    #462   diff @@
=======================================
  Files            63      63
  Stmts          2798    2787    -11
  Branches          0       0
  Methods           0       0
=======================================
- Hit            1920    1909    -11
  Partial           0       0
  Missed          878     878

Review entire Coverage Diff as of 46dcb21

Uncovered Suggestions

+0.62% via goldstone/views.py#30...46
+0.59% via ...stone/drfes/views.py#134...149
+0.41% via ...tone/drfes/models.py#165...175
See 7 more...

Powered by Codecov. Updated on successful CI builds.

I'm getting this error when I run docker-compose:
ERROR: Get https://gs-docker-ent.bintray.io/v2/goldstone-canary/manifests/latest: unauthorized: Unauthorized

Getting this error now:
ERROR: Error parsing HTTP response: invalid character 'U' looking for beginning of value: "Unable to retrieve resource."


Bug: Lang strings not work if that string ends with the dot (.) and at least two levels deep.

PHP Version
8.0
CodeIgniter4 Version
4.4.1
CodeIgniter4 Installation Method
Manual (zip or tar.gz)
Which operating systems have you tested for this bug?
Windows
Which server did you use?
cli-server (PHP built-in webserver)
Database
PostgreSQL 10
What happened?
Test.php (Lang string file).
<?php

return [
    'level_one' => [
        'level_two' => [
            'The string with the dot at the end.'
                => 'The string with the dot at the end.'
        ]
    ]
];

In the view file.
<?= lang('Test.level_one.level_two.The string with the dot at the end.') ?>

The output.
Test.level_one.level_two.The string with the dot at the end.

The expected output.
The string with the dot at the end.

This only happen when the lang string key and the value two levels deep in the lang array and has the dot (.) at the end of lang key. Without the dot (.) it's works fine. But this issue only happening when the lang array element at least two levels deep.
Steps to Reproduce
Info given
Expected Output
Info given
Anything else?
No response

This is not a bug. When your key has a dot at the end, the parser expects an array.

<?php

var_dump(explode(".", "File.with.dot."));

array(4) {
  [0]=>
  string(4) "File"
  [1]=>
  string(4) "with"
  [2]=>
  string(3) "dot"
  [3]=>
  string(0) ""
}

He's waiting for the key at the end.
I would not recommend using phrases instead of keys

"But if that string is only one level deep, then it works just fine. I have many strings like that in my app, and they all work fine. This is the first time I've encountered a string that is two levels deep.

Yes it does. I have hundreds of strings thats ends with a dot.
Lang array element
'alerts' => [
    'Fields marked with {0}*{1} are required.'
         => 'Fields marked with {0}*{1} are required.'
]

In the view file.
<?= lang('Users.alerts.Fields marked with {0}*{1} are required.', ['', '']) ?>

How its display

I think this is a bug.

What do you expect when there are several dots in a phrase? Maybe you should reconsider the "with a dot at the end" approach?
I can't check the code now, I don't have a PC

In the documentation, there is no example that a key ends with a dot.
https://codeigniter4.github.io/CodeIgniter4/outgoing/localization.html#creating-language-files
And dots are used for dot array syntax. So a key should not end with a dot.
It seems https://github.com/codeigniter4/CodeIgniter4/issues/7960#issuecomment-1729970923 is a bug.

Yeah! I will use [dot] for dots in the lang keys.
Thanks!

@nalakapws Sorry, we use dot as a meta character in this case, so we probably don't support dot as a literal dot in a key.
Because if we do it, it is not consistent or confusing.
You have options:

Extend Language class
Remove the last dot in the key
Use gettext instead of CI4 Language class

I found this package:
https://github.com/michalsn/codeigniter-gettext

@nalakapws Paul made a fix for you. #8104
But, I agree with this.

The examples in the user guide indicate that the language files should contain a key and a string for that key. The key was never designed to hold a complete sentence.
https://github.com/codeigniter4/CodeIgniter4/pull/8104#pullrequestreview-1702746709

Using a sentence as a key is never designed, and a sentence might contain dot in it not in the end.
E.g., "Dr. Smith is a doctor."
If a sentence includes a dot, it won't work.


Unable to view or create users

Rancher Server Setup

Rancher version:  v2.6-b26b920420e47e99d5c96356b96c393360dd5739-head
Installation option (Docker install/Helm Chart): Docker

If Helm Chart, Kubernetes Cluster and version (RKE1, RKE2, k3s, EKS, etc):

Proxy/Cert Details: self-generated

Information about the Cluster

Kubernetes version: 1.23.3+k3s1
Cluster Type (Local/Downstream): Local

If downstream, what type of cluster? (Custom/Imported or specify provider for Hosted/Infrastructure Provider):
N/A

User Information

What is the role of the user logged in? (Admin/Cluster Owner/Cluster Member/Project Owner/Project Member/Custom)
Admin

Describe the bug
When selecting the hamburger menu from the rancher home page (upper-left hand corner) and then selecting "Users & Authentication", right away you'll notice no users are listed, not even the admin, which exists.  Upon clicking "create" to attempt to create a new user, the form seems incomplete in the UI and the "create" button in bottom right, is disabled, even when all required fields are filled in. (my initial thoughts are that the UI "create" form for "Users & Auth" is not displaying the entire form, so if that is correct, there might be no way to actually fill in all the required fields to allow the "create" button to become enabled, assuming that the button is only enabled when ALL required fields are filled, and in this instance the UI form itself may not be displaying all input field options.  Further investigating, I noticed that if you log out, the UI will get caught in a "hang" state of "Loading...", but with a hard refresh, you are able to log back in and the bug seems to be resolved.  I was also able to create a new user through the api with Postman.  When attempting to log out of rancher, the UI seemed to "hang" on the "Logging out..." screen.  With a hard refresh, I was able to log back in as the new user, created through Postman, and then I was able to see ALL users (new user + admin) as well as having the correct UI display on the "create" user form page)
To Reproduce

Fresh install rancher with Docker, using v2.6-b26b920420e47e99d5c96356b96c393360dd5739-head
Once logged in, as admin, from the home page, select the hamburger menu found in the upper-left corner
You should now be able to view "all" users on the server, however, even admin (currently logged in as) is not listed
To continue, the issue also persists when attempting to "create" a new user, if "create" button is selected, it seems an incomplete form page is shown in UI, also no matter what data the user inputs, the "create" button is never enabled

Result

Expected Result

Additional Comments
Successful creation of a new user through api with Postman:

Logs:
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [ERROR] defaultSvcAccountHandler: Sync: error handling default ServiceAccount of namespace key=cattle-fleet-local-system, err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] namespaceHandler: Sync: error adding project id label to namespace err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [ERROR] defaultSvcAccountHandler: Sync: error handling default ServiceAccount of namespace key=cattle-fleet-local-system, err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] namespaceHandler: Sync: error adding project id label to namespace err=Operation cannot be fulfilled on namespaces "cattle-fleet-local-system": the object has been modified; please apply your changes to the latest version and try again
2022/03/08 19:39:52 [INFO] namespaceHandler: addProjectIDLabelToNamespace: adding label field.cattle.io/projectId=p-m2vwh to namespace=cattle-fleet-local-system
2022/03/08 19:39:52 [ERROR] error syncing 'cattle-fleet-system/helm-operation-9wg8x': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-9wg8x), requeuing
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] certificate CN=dynamic,O=dynamic signed by CN=dynamiclistener-ca,O=dynamiclistener-org: notBefore=2022-03-08 19:39:11 +0000 UTC notAfter=2023-03-08 19:40:06 +0000 UTC
2022/03/08 19:40:06 [INFO] Updating TLS secret for serving-cert (count: 6): map[field.cattle.io/projectId:local:p-m2vwh listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-IP_ADDRESS_REDACTED:IP_ADDRESS_REDACTED listener.cattle.io/cn-ANOTHER_IP_ADDRESS_REDACTED:ANOTHER_IP_ADDRESS_REDACTED listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=HIDDEN_VALUE]
2022/03/08 19:40:06 [INFO] Active TLS secret serving-cert (ver=3265) (count 6): map[field.cattle.io/projectId:local:p-m2vwh listener.cattle.io/cn-<IP_ADDRESS>:<IP_ADDRESS> listener.cattle.io/cn-IP_ADDRESS_REDACTED:IP_ADDRESS_REDACTED listener.cattle.io/cn-ANOTHER_IP_ADDRESS_REDACTED:ANOTHER_IP_ADDRESS_REDACTED listener.cattle.io/cn-localhost:localhost listener.cattle.io/cn-rancher.cattle-system:rancher.cattle-system listener.cattle.io/fingerprint:SHA1=HIDDEN_VALUE]
2022/03/08 19:40:07 [ERROR] Error during subscribe write tcp IP_ADDRESS_REDACTED:443->ALT_IP_ADDRESS_REDACTED:59558: use of closed network connection
2022/03/08 19:40:09 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:40:10 [ERROR] error syncing 'cattle-fleet-system/helm-operation-c8ndm': handler helm-operation: an error on the server ("container not found (\"proxy\")") has prevented the request from succeeding (get pods helm-operation-c8ndm), requeuing
2022/03/08 19:42:10 [INFO] starting duplicate binding cleanup
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] starting bindings cleanup
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] total PRTB duplicate clusterRoleBindings 0, roleBindings 0
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] binding with deterministic name not found, will delete all except the oldest binding
2022/03/08 19:42:10 [INFO] [clean-dupe-bindings] total CRTB duplicate clusterRoleBindings 0, roleBindings 0
2022/03/08 19:42:10 [INFO] successfully cleaned up duplicate bindings
2022/03/08 21:39:10 [INFO] Updating global catalog system-library
2022/03/08 21:39:10 [INFO] Catalog sync done. 0 templates created, 1 templates updated, 0 templates deleted, 0 templates failed
2022/03/08 22:38:01 [INFO] Creating new GlobalRoleBinding for GlobalRoleBinding grb-9lmpq
2022/03/08 22:38:01 [INFO] [mgmt-auth-grb-controller] Creating clusterRoleBinding for globalRoleBinding grb-9lmpq for user u-gzcr4 with role cattle-globalrole-user
2022/03/08 23:22:51 [ERROR] Error during subscribe write tcp IP_ADDRESS_REDACTED:443->ALT_IP_ADDRESS_REDACTED:62661: write: broken pipe

Possible internal reference: SURE-4255. Re-reading just to make sure.

This is also popping up on Keycloak. Internal reference: SURE-4195

(my initial thoughts are that the UI "create" form for "Users & Auth" is not displaying the entire form, so if that is correct, there might be no way to actually fill in all the required fields

You're correct - in your second screenshot, the Global Permissions section is missing. At least one checkbox in Global Permissions must be selected in order for the Create button to be enabled.

@gaktive This issue is less critical than I thought at first glance because it does have a workaround - it works if you refresh the page. So I think it can be bumped to v2.6.5.

@jtravee something to release note for 2.6.4. Per Catherine's comment, a refresh of the page is a workaround.

@jtravee something to release note for 2.6.4. Per Catherine's comment, a refresh of the page is a workaround.

Thank you, added!

This seems to be a startup issue with the backend I think - don't know if it affects the helm install but this definitely is an issue with Docker and this can be seen on the Cluster Mgmt page as well as the users page.
It seems that although the UI loads, the backend is still bust - at some point something changes with the self-signed certificate - you see this if you refresh the page - you have to accept the self-signed cert again, which seems to imply that the cert changes - this seems to be the reason that the API calls for /users and userpreferences fail, which is why the screens are shown empty.
We might be able to add something to the UI to check this, but it seems that something is going on in the backend that needs to be looked at.

Note, this is hard to debug in dev, since the front-end is running locally and the proxy mechanism means that you don't see any issues with certs

Transferring this to backend as this seems to be to do with the self-signed cert:

Run Rancher in docker
Go the UI - you will need to accept the self-signed certificate in your browser
Set it up (set admin password) and log in
Go to the Users & Auth - List is empty
Refresh the page - you will be asked to accept a self-signed certificate again
Page will load and show users

The problem is that self-signed certificate appears to change 9or someone happens) - so the UI's calls to the backend fail silently with an invalid cert authority error. When you refresh in step 5, you accept the new cert and then everything is fine.


[FEATURE]  Convert this application to Reactjs + Tailwindcss (with Responsive)

Is your feature request related to a problem? Please describe.
The current application is not using React.js or TailwindCSS for building the frontend. As a result, it lacks modern component-based structure and utility-first CSS styling, making it harder to maintain and scale. Additionally, it is not fully responsive, which can affect user experience across different devices.
Describe the solution you'd like
I propose converting the entire frontend of this application to React.js, which will provide a component-based architecture, improving maintainability and performance. TailwindCSS will be used for styling, offering a utility-first approach that speeds up development and ensures a consistent design. The solution will also include responsive design improvements to enhance the user experience on mobile, tablet, and desktop devices.
Additional context
Screenshots or relevant context

can you assign this to me..
I CAN DO IT ...

if you want to check my designing work , here is some of my project link:-
https://fin-pay-six.vercel.app/
https://mern-food-frontend-6ywd.onrender.com/
(This Mern stack project--> Full stack application)

can you add this to hacktoberfest

@shangesh-tech feel free to raise a PR.

@bryans-go I had raise PR  , review and merge it

@shangesh-tech kindly do not ping us for review. We try to review PRs ASAP


Need example/advice on testing sagas with async calls/nock

Hi,
Please advise or maybe you could point me to an example of testing a saga doing a (POST) request and issuing put 's based on success/failure.
Following example on the front page I'm using await sagaTester.waitFor(POST_SUCCESS);, however  getting "Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.". Anyways, not sure what would be correct combination of redux-saga-tester with nock.
Any advice/example is greatly appreciated!
  import nock from 'nock';
  import SagaTester from 'redux-saga-tester';

  import { POST_REQUESTED, POST_SUCCEEDED } from '../actions/types';
  import { postWallpost } from '../sagas/wallpostform';
  import reducers from '../reducers';

  const initialState = {
    wallpost: {
      busy: false,
      error: false,
      msg: 'foo',
    },
  };

  describe('wallpostform Saga', () => {

    it('on success should yield put(postSucceeded());', async () => {

      nock('http://localhost:9090')
        .post('/v0.1/posts/post', {
          msg: 'foo',
        })
        .reply(201);

      const sagaTester = new SagaTester({
        initialState,
        reducers
      });
      sagaTester.start(postWallpost);

      // Dispatch the event to start the saga
      sagaTester.dispatch({ type: POST_REQUESTED });

      // Hook into the success action
      await sagaTester.waitFor(POST_SUCCEEDED);

      // Check that the new state was affected by the reducer
      expect(sagaTester.getState()).wallpost({
        someKey : someOtherValue
      });

      // Check that the saga listens only once
      sagaTester.dispatch({ type : POST_REQUESTED });
      expect(sagaTester.numCalled(POST_REQUESTED)).to.equal(2);
      expect(sagaTester.numCalled(POST_SUCCEEDED)).to.equal(1);
    });
  });

OK. Following direction from the home page

...Generally when testing it is perferred to use sync mocks. In that case, there's no need to async/await...

I'm also trying the following approach - without async/nock. In this case,  I still have one issue: checking for the the updated state after "POST_SUCCEEDED", I still see status that was set after "POST_REQUESTED", as if "POST_SUCCEEDED" was not yet reached.
Please advise.
Thank you!
  import nock from 'nock';
  import SagaTester from 'redux-saga-tester';

  import { POST_REQUESTED, POST_SUCCEEDED } from '../actions/types';
  import { postWallpost } from '../sagas/wallpostform';
  import reducers from '../reducers';

  const initialState = {
    wallpost: {
      busy: false,
      error: false,
      msg: 'foo',
    },
  };

  describe('wallpostform Saga', () => {

    it('on success should yield call Alert.success', () => {

      nock('http://localhost:9090')
        .post('/v0.1/posts/post', {
          msg: 'foo',
        })
        .reply(201);

      const sagaTester = new SagaTester({
        initialState,
        reducers
      });
      sagaTester.start(postWallpost);

      // Dispatch the event to start the saga
      sagaTester.dispatch({ type: POST_REQUESTED });

      // Hook into the success action
      sagaTester.waitFor(POST_SUCCEEDED);

      // Check that the new state was affected by the reducer
      // After POST_SUCCEEDED, msg should be '' because we empty the message on success.
      expect(sagaTester.getState().wallpost).toEqual({
        busy: true,
        error: false,
        msg: ''
      });

      // Check that the saga listens only once
      sagaTester.dispatch({ type: POST_REQUESTED });
      expect(sagaTester.numCalled(POST_REQUESTED)).to.equal(2);
      expect(sagaTester.numCalled(POST_SUCCEEDED)).to.equal(1);
    });
  });

Hi @mpmlj!
I've added an example with nock here.
In order to see it running, simply run npm run examples.
For ease, here is the test:
import { expect } from 'chai';
import { call, put } from 'redux-saga/effects';
import SagaTester from '../src/SagaTester.js';
import { takeLatest } from 'redux-saga';
import fetch from 'node-fetch';
import nock from 'nock';

const fetchReply = {value: 'SOME_VALUE'};
const fetchRequestActionType = 'FETCH_REQUEST';
const fetchSuccessActionType = 'FETCH_SUCCESS';

function* handleFetch() {
    const respond = yield call(() => fetch('http://example.com/v0.1'));
    const result = yield call(() => respond.json());
    yield put({ type : fetchSuccessActionType, payload : result });
}

function* mySaga() {
    // will cancel current running handleFetch task
    yield takeLatest(fetchRequestActionType, handleFetch);
}

describe('example.nock.js', () => {

    it('showcases using saga tester with a saga that fetches data and returns a resulting action', async () => {

        // Setup Nock
        nock('http://example.com')
            .get('/v0.1')
            .reply(200, fetchReply);

        // Start up the saga tester
        const sagaTester = new SagaTester({});

        sagaTester.start(mySaga);

        // Dispatch the event to start the saga
        sagaTester.dispatch({type : fetchRequestActionType});

        // Hook into the success action
        await sagaTester.waitFor(fetchSuccessActionType);

        // Check the resulting action
        expect(sagaTester.getLastActionCalled()).to.deep.equal([{
            type: fetchSuccessActionType,
            payload: fetchReply
        }]);
    });
});

I hope it helps you - let me know if you have any questions.
Yoav

@3LOK
Worked! Thanks so much.
Just one question remaining: in my saga, before right before "putting" a success/failed status, I'm also doing:
yield call(Alert.success, 'Posted!');

What would be the correct way to test that my Alert was called?
Thanks again!

@mpmlj there's what we do in Wix (which I think is the correct method), and what I've heard others do).
What we do in Wix
All our sagas are initialized with a list of services they use. These services are created in our index.js. This allows us to mock (with sinon) all the services sagas might use (example, the Alert you've mentioned, using sinon).
So, for example:
        const sagaTester = new SagaTester({});
        const MyMuckAlert = {
            success: sinon.spy()
        };
        sagaTester.start(mySaga.bind({Alert:MyMuckAlert}));
        sagaTester.dispatch({type : fetchRequestActionType});
        expect(MyMuckAlert.success.calledOnce).to.be.true;

Saga will use the Alert given, and not import it directly. In the test, Saga will then use this MyMuckAlert, In the production index.js will pass the real Alert service.
We love this way since it makes mocking services really easy for tests.
What I've Heard Others Do
I've heard others use rewire to muck imported services. I personally don't like it (since it causes problems when importing the same package numerous times).

@3LOK
Thank you!!


question about SafeAreaProvider

Hi, I want to ask why i need to wrap the whole App by SafeAreaProvider?

I need to use safeAreaFrame and safeAreaInsets, which are provided by SafeAreaProvider. They are necessary to calculate doprdown position on screen.

Hi, I want to ask why i need to wrap the whole App by SafeAreaProvider?

thanks, I used your lib and it's work as expected


feat(cdktf): bump cdktf to 0.8

Goal
BREAKING CHANGE: Please note that CDK for Terraform 0.8 contains breaking changes that will require code updates for namespacing AWS provider resources

@jpetto as far as socializing this. I made it a breaking change so dependabots wont auto try and upgrade to this and I was thinking to post in our slack channel to the team.

all good as far as i'm concerned! (except for the failing test?)

@jpetto yea we can ignore that. for somereason when you doa merge commit the signed commits check fails. @kkyeboah mentioned he was gonna look into this when hes back.

:tada: This PR is included in version 3.0.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Please add this feature

Please make that you can save your Coordinates to a location

Yeah i was going to add a button to store current location and then another to restore it


fix(menu): correct handling of empty dynamic menus #115

Alaska Airlines Pull Request
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes: #115
Summary:
Report ready for dynamic menus.
Show bib when typing on dynamic menus
Type of change:
Please delete options that are not relevant.

[ ] New capability
[x] Revision of an existing capability
[ ] Infrastructure change (automation, etc.)
[ ] Other (please elaborate)

Checklist:

[x] My update follows the CONTRIBUTING guidelines of this project
[x] I have performed a self-review of my own update

By submitting this Pull Request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Pull Requests will be evaluated by their quality of update and whether it is consistent with the goals and values of this project. Any submission is to be considered a conversation between the submitter and the maintainers of this project and may require changes to your submission.
Thank you for your submission!
-- Auro Design System Team

:tada: This PR is included in version 1.7.1 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


ape doesn't launch via python3.10.4 pip

Environment information

linux
Python Version: 3.10.4

What went wrong?
Trying to launch ape installed via pip in the env:
Traceback (most recent call last):
  File "/home/x/dev/ape/demo/env/bin/ape", line 5, in <module>
    from ape._cli import cli
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/__init__.py", line 7, in <module>
    from ape.managers.project import ProjectManager as Project
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/managers/__init__.py", line 3, in <module>
    from ape.plugins import PluginManager
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/plugins/__init__.py", line 9, in <module>
    from .account import AccountPlugin
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/plugins/account.py", line 3, in <module>
    from ape.api.accounts import AccountAPI, AccountContainerAPI
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/api/__init__.py", line 25, in <module>
    from .query import QueryAPI, QueryType
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/ape/api/query.py", line 3, in <module>
    import pandas as pd
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/__init__.py", line 48, in <module>
    from pandas.core.api import (
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/api.py", line 48, in <module>
    from pandas.core.groupby import (
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/groupby/__init__.py", line 1, in <module>
    from pandas.core.groupby.generic import (
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/groupby/generic.py", line 70, in <module>
    from pandas.core.frame import DataFrame
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/frame.py", line 157, in <module>
    from pandas.core.generic import NDFrame
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/generic.py", line 129, in <module>
    from pandas.core.describe import describe_ndframe
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/core/describe.py", line 38, in <module>
    from pandas.io.formats.format import format_percentiles
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/io/formats/format.py", line 99, in <module>
    from pandas.io.common import (
  File "/home/x/dev/ape/demo/env/lib/python3.10/site-packages/pandas/io/common.py", line 4, in <module>
    import bz2
  File "/home/x/.pyenv/versions/3.10.4/lib/python3.10/bz2.py", line 17, in <module>
    from _bz2 import BZ2Compressor, BZ2Decompressor
ModuleNotFoundError: No module named '_bz2'

when installing a python version with pyenv on linux, I've found that there are a number of libraries which improve the install experience you should have installed via apt:
$ sudo apt install zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev tk-dev libssl-dev llvm \
libncurses5-dev libncursesw5-dev xz-utils libffi-dev liblzma-dev python-openssl

I still get the same errors, unfortunately :(

Another problem:
❯ ape compile WARNING: No compilers detected for the following extensions: .vy
but I can compile it manually via vyper

this appears to be a problem with some other dependencies in your env (pandas?). i dont think this is related to python 3.10.4 or even eth-ape.
i tried to reproduce locally, but could only try so using 3.10.8. did not encounter any problems.


500 Internal Server Error

After uploading a document, when asking questions, I get:
Error getting data.<!doctype html>  500 Internal Server Error Internal Server Error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 2190, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/dist-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1484, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/dist-packages/flask/app.py", line 1469, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/home/it/Scripts/PrivateChatGPT/server/privateGPT.py", line 146, in get_answer
res = qa(query)
File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 140, in call
raise e
File "/usr/local/lib/python3.10/dist-packages/langchain/chains/base.py", line 134, in call
self._call(inputs, run_manager=run_manager)
File "/usr/local/lib/python3.10/dist-packages/langchain/chains/retrieval_qa/base.py", line 119, in _call
docs = self._get_docs(question)
File "/usr/local/lib/python3.10/dist-packages/langchain/chains/retrieval_qa/base.py", line 181, in _get_docs
return self.retriever.get_relevant_documents(question)
File "/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/base.py", line 377, in get_relevant_documents
docs = self.vectorstore.similarity_search(query, **self.search_kwargs)
File "/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/chroma.py", line 182, in similarity_search
docs_and_scores = self.similarity_search_with_score(query, k, filter=filter)
File "/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/chroma.py", line 229, in similarity_search_with_score
results = self.__query_collection(
File "/usr/local/lib/python3.10/dist-packages/langchain/utils.py", line 52, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/langchain/vectorstores/chroma.py", line 121, in __query_collection
return self._collection.query(
File "/usr/local/lib/python3.10/dist-packages/chromadb/api/models/Collection.py", line 227, in query
return self._client._query(
File "/usr/local/lib/python3.10/dist-packages/chromadb/api/local.py", line 437, in _query
uuids, distances = self._db.get_nearest_neighbors(
File "/usr/local/lib/python3.10/dist-packages/chromadb/db/clickhouse.py", line 585, in get_nearest_neighbors
uuids, distances = index.get_nearest_neighbors(embeddings, n_results, ids)
File "/usr/local/lib/python3.10/dist-packages/chromadb/db/index/hnswlib.py", line 240, in get_nearest_neighbors
raise NoIndexException(
chromadb.errors.NoIndexException: Index not found, please create an instance before querying
<IP_ADDRESS> - - [30/May/2023 08:26:06] "POST /get_answer HTTP/1.1" 500 -

Have you done an ingest of the document ?

Yes I did,

This shows document is uploaded, but you need to click on Ingest button to train the model on your document data

Thank you @Anil-matcha
The result is gibberish,  I assume we need to ingest more documents?
Loading documents from source_documentsLoaded 3 documents from source_documentsSplit into 96 chunks of text (max. 500 characters each)03@919:D5362GF%0='H(!4H",&-:-69);!=,'A<76H-D&75>"=#.4"@0.912&=8GC5=)"+EG7!))!&60>:,==$'+%'@(3:(,.>3$A+A"C&;"9GH#@):D:>+0A&%EEA@=),=G5H&C0GD5)8&G(A+5A>8*<.@3;<&A9.D4C,)>:+B<@,;G3643EAE6G>-)$27*"6&%79C10=#.H0@7H64H.*33(,2A9G.;:5B2%BD.@9&D0$75-59#>!HB,*D+
Source: source_documents/state_of_the_union.txt

What documents have you uploaded ?
Maybe you can clean the source documents and db folder and do upload your document, ingest and then run the query


fix(index): support OPTIONS requests for CORS

:tada: This PR is included in version 2.10.1 :tada:
The release is available on:

v2.10.1
v2.10.1
GitHub release

Your semantic-release bot :package::rocket:


Redundant rules in linear model

The current implementation of rulefit can sometimes produce redundant features that are then fed into the lasso. This comes from the stochastic nature of random trees and lack of rule pruning.
To illustrate this let's have a look at the Boston example in the readme:
import numpy as np
import pandas as pd
np.random.seed(42)

from rulefit import RuleFit

boston_data = pd.read_csv("boston.csv", index_col=0)

y = boston_data.medv.values
X = boston_data.drop("medv", axis=1)
features = X.columns
X = X.as_matrix()

rf = RuleFit()
rf.fit(X, y, feature_names=features)

The inner workings of RuleFit rely on L1-penalised linear model which acts on the rules-transformed input variable, i.e.:
transformed_x = pd.DataFrame(rf.transform(X),
                             columns=list(rf.rule_ensemble.rules))

Now what happens (even with the Boston dataset) is that this transformed_x contains columns that are in all purposes duplicated, given the training set. This result comes from the different decision trees having slightly different splits that end up having the same effect on X. To see this we can construct a hashtable of rules based on transformed_x values:
equivalence_classes = {}

for rule, col in transformed_x.T.iterrows():

    # Tuple is hashable
    key_pos = tuple(col)

    try:
        equivalence_classes[key_pos].append(rule)
    except KeyError:
        equivalence_classes[key_pos] = [rule]

redundant_rules = {k: v for k, v in equivalence_classes.items() if len(v) > 1}
for v in redundant_rules.values():
    print('Redundant rules')
    for vv in v:
        print('{}: support={:.3f}, prediction={:.3f}'.format(vv, vv.support, vv.prediction_value))

Out of the groups output some are quite obviously redundant, such as:
lstat <= 4.630000114440918: support=0.107, prediction=7.044
lstat <= 4.664999961853027: support=0.107, prediction=7.654
lstat <= 4.644999980926514: support=0.107, prediction=4.838
lstat <= 4.650000095367432: support=0.073, prediction=12.706

Other are perhaps less intuitive:
nox <= 0.6569999754428864 & dis <= 1.3727499842643738 & rm <= 7.648000001907349: support=0.009, prediction=13.002
nox <= 0.6569999754428864 & dis <= 1.3980499505996704: support=0.013, prediction=14.541

crim <= 17.186299800872803 & rm > 7.797999858856201: support=0.030, prediction=4.344
rm > 6.850500106811523 & rm > 7.7834999561309814: support=0.056, prediction=13.445

I guess the difference in support comes from random subsampling during gradient boosting.
This makes the linear model badly specified, and will cause model instability the in the best case, as L1 will keep picking one of the equivalent groups at random.
To solve this one would probably need to merge these rules. I'm happy to give a PR that does this, but I think it needs to be discussed on what would be the best way to approach this.
The logical option is probably an OR operator.
This would handle the cases where the rules might not be equivalent in other datasets that are not training sets.
The question, is of course what to do with the support and prediction values during the merge.
If I understand the code correctly the prediction_value is not used anywhere.
Can support be recalculated at linear model step?

As an aside, if my intuition is true,
the following formulations are also equivalent where a and b are two rule-transformed columns and ws are the weights.
y = w0 + w1 a + w2 b

and
y = w0 + w1 a + w2 (1-b)  = w0 + w1 a + w2 - w2b = (w0+w2) + w1 a - w2 b

So in the end rules A and B are also equivalent in terms of linear model if transform(A) = 1 - transform(B) , i.e. the negated rule is equivalent to itself.
This is true when the linear model contains an intercept (which is the default in RuleFit). Depending on the research question these may not be desired in cases where intercept is not used.
Such positive-negative redundancies can be found in a similar way:
equivalence_classes_with_negative = {}

for rule, col in transformed_x.T.iterrows():

    key_pos = tuple(col)
    key_neg = tuple(1 - col)

    try:
        equivalence_classes_with_negative[key_pos].append(('+', rule))
    except KeyError:
        equivalence_classes_with_negative[key_pos] = [('+', rule)]

    try:
        equivalence_classes_with_negative[key_neg].append(('-', rule))
    except KeyError:
        equivalence_classes_with_negative[key_neg] = [('-', rule)]

redundant_rules_with_neg = {k: v for k, v in equivalence_classes_with_negative.items() if len(v) > 1}
for v in redundant_rules_with_neg.values():
    print('Redundant rules')
    for vv in v:
        print('{}: support={:.3f}, prediction={:.3f}'.format(vv, vv[1].support, vv[1].prediction_value))

we get rule groups like this:
('+', tax <= 278.0): support=0.256, prediction=2.626
('-', tax > 278.0): support=0.744, prediction=-0.623

Arguably we would need only one of these features in the linear model (as the other can be absorbed into the intercept). I'm pretty sure this is a special case of the issue of constructing linearly-independent categorical encoding that patsy tries to solve
I wonder if something like this should be implemented here as well.

Very nice observation. Lasso does tend to randomly pick a feature (rule) in the case of collinearity!
For the OR option, do you mean carry all equivalent rules say R1 R2 R3 into a composite R*=(R1 or R2 or R3)?
Would a simpler solution be to whip out Occams razor and simply pick the simplest rule (lowest number of conditions) - or pick at random if they are equal? Or do you think it is important to let the use see the options for equivalent rules...

My concern is that simplest rule might overgeneralise on the training dataset.
In theory there is a small chance that the additional rules that are redundant in the training dataset might capture some extra variation in the test datasets. In this case OR could capture this.
For instance, for something like the following dataset of (x,y)  pairs:
[(1, 2), (3, 4), (5,6)]

The following rules are redundant
R1: x > 1
R2: x <= 5 and y>3

But for a hypothetical test observation (0,4) this will no longer be the case.
Simplest rule, R1, will have a zero for this dataset.
R1 or R2 should correctly capture this combination as 1 though.
Ideally I think something like R* = simplify(R1 or R2 or R3) would work best for such rules.
In this case it is clear that
R* = (x>1 or x <=5) and (x>1 or y>3) = True and (x>1 or y<=3) = x>1 or y > 3

Not entirely sure how to implement this though. Maybe sympy?
Related to my second comment in this issue, I have been thinking about that and either I don't understand something about the decision rule generation as described in Friedman in Popescu, or it could be improved. In my opinion, only one side of the rules (condition == True, or condition == False) need to be incorporated at any given level of the tree, as including both adds no extra predictability to the linear model downstream. Let me see if I can draft a proof for this.


OS Zoo CI fails with Alpine containers on 80-test_cmp_http.t

See https://github.com/openssl/openssl/actions/runs/5947207591/job/16128950884

@DDvO any idea what's wrong there? The warnings look suspicious.

I assume it is a regression from https://github.com/openssl/openssl/pull/21033

Looks like the address for the test might have been misconfigured.  The test reports connecting to [::] instead of [::1]

I have a fix in #21825

Oh, I had assumed that [::] is the IPv6 address of localhost, and it seemed to work all situations/tests, but not really.
I was preparing a fix, but thanks @t8m for providing a better one!

Fixed.


DataFrame compile-time schema

Abstract
Right now, you every time you want to access a column of a DF, you need an unwrap (df1.col("lat").unwrap();). That's because at an arbitrary position of the code, you cannot make safe assumptions about which columns are present in a DF. That's a problem that is kinda inherited from pandas. At the same time, many data processing functions could easily specify which columns they need and which columns they produce.
Solution
I propose some kind of TypedDataFrame/SafeDataFrame/CheckedDataFrame (name could differ) that specifies which columns are present and a some kind of try-into mechanism from the normal, unchecked DF into the checked DF (see TryInto). Also, there should be a simple macro to generate new schemas.
Example Usage

// compile time version of an Arrow schema
schema!(
    DFHealth,
    [
        (n_people, UInt32, False),
        (p_sick, Float64, False),
        (city, Utf8, False),
    ]
);

fn sum_people(df: DFHealth) -> u32 {
   // no unwrap required, we already know that df has all required columns
   df.col.n_people().iter().sum()
}

fn load_df() -> DataFrame {
    ...
}

fn main() {
    let df: DFHealth = load_df(...).try_into()?;
    let people = sum_people(df);

    // since schema is known at compile time, we can easily get the arrow schema from it
    // (compile time information => runtime information)
    let schema = DFHealth.schema();
}

Prior Art

Table Enforcer (for Pandas, covers some more features)
Arrow Schema (already used, but only as runtime information)

Thanks for the suggestion. I like the idea and will give this some thought. The focus so far has very much been on dynamic behavior but I like the idea of type-safety with predefined types like this.


thunderbird-unwrapped: 115.10.1 -> 115.10.2

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for thunderbird-unwrapped is: A full-featured e-mail client
meta.homepage for thunderbird-unwrapped is: https://thunderbird.net/
meta.changelog for thunderbird-unwrapped is: https://www.thunderbird.net/en-US/thunderbird/115.10.2/releasenotes/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 115.10.2 with grep in /nix/store/8izxg26lhwkpdmks5pxymhcsb32d92ls-thunderbird-unwrapped-115.10.2
found 115.10.2 in filename of file in /nix/store/8izxg26lhwkpdmks5pxymhcsb32d92ls-thunderbird-unwrapped-115.10.2

Rebuild report (if merged into master) (click to expand)

4 total rebuild path(s)

4 package rebuild(s)

First fifty rebuilds by attrpath

thunderbird-unwrapped
thunderbirdPackages.thunderbird
thunderbirdPackages.thunderbird-115

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/8izxg26lhwkpdmks5pxymhcsb32d92ls-thunderbird-unwrapped-115.10.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A thunderbird-unwrapped https://github.com/r-ryantm/nixpkgs/archive/9102fb6912f9f93ff054db032fbdf53463a528db.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/9102fb6912f9f93ff054db032fbdf53463a528db#thunderbird-unwrapped

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/8izxg26lhwkpdmks5pxymhcsb32d92ls-thunderbird-unwrapped-115.10.2
ls -la /nix/store/8izxg26lhwkpdmks5pxymhcsb32d92ls-thunderbird-unwrapped-115.10.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

4 packages built:

thunderbird
thunderbird-unwrapped
thunderbird-unwrapped.debug
thunderbird-unwrapped.symbols

Maintainer pings
cc @edolstra @lovesegfault @nbp @vcunat for testing.

The changelog... is there any sense in doing a rebuild even?


python3Packages.zha-quirks: 0.0.56 -> 0.0.57

Motivation for this change
Update to latest upstream release 0.0.57
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

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

3 packages built:

home-assistant
python38Packages.zha-quirks
python39Packages.zha-quirks

Result of nixpkgs-review pr 121125 at d51942f9 run on aarch64-linux 1

3 packages built successfully:

home-assistant
python38Packages.zha-quirks
python39Packages.zha-quirks


Implement a config resolver

As discussed in #208 and on gitter: This PR implements a method for populating flags from an user-defined external source, such as a config file. Some properties:

This source has lower priority than flags set on the command-line, and envars.
Multiple resolvers can be added, and they will be used in the order added, until the first match is found.
The lookup is performed using the name of the flag, unless the user sets a custom one.
It is possible to disable usage of the resolvers on a per-flag basis.

Things I'm not sure about and would appreciate some discussion around:

Currently it is not possible to add a resolver directly on a flag. I don't see that this would be useful, but it wouldn't be hard to add if there is a use-case?
I did not check in any implementations for users, but possibly it would be useful to ship some standard ones such as yaml/json file sources? Probably in a separate package in that case?
Errors must be handled in the Resolve method. I'm not sure how an error would best be handled if propagated back up the stack? But I guess someone will implement a remote call resolver, which could lead to all sorts of interesting errors, so maybe it would be better to have it after all...

(Also, naming, of course)

Currently it is not possible to add a resolver directly on a flag. I don't see that this would be useful, but it wouldn't be hard to add if there is a use-case?

I don't think that's necessary.

I did not check in any implementations for users, but possibly it would be useful to ship some standard ones such as yaml/json file sources? Probably in a separate package in that case?

A JSON one would be fine, as it's in the stdlib, but I don't think a YAML one is necessary.

Errors must be handled in the Resolve method. I'm not sure how an error would best be handled if propagated back up the stack? But I guess someone will implement a remote call resolver, which could lead to all sorts of interesting errors, so maybe it would be better to have it after all...

Yes, errors should be handled.
I'm going to merge this, then make a couple of changes (rather than harassing you with even more comments :)). I'll implement the error handling when I do that.
Thanks again for taking the time to implement this!

@alecthomas @carlpett @Joseph-Irving any update?

@daixiang0 As far as I know, this is still only implemented on the v3 branch, so that would be why it is not documented on the v2/master branch.


Add PSRule analysis for WAF Reliability Pillar for module defaults

Description
Add PSRule analysis for WAF Reliability Pillar for module defaults
Pipeline Reference

Pipeline

Type of Change

[ ] Update to CI Environment or utlities (Non-module effecting changes)
[ ] Azure Verified Module updates:

[ ] Bugfix containing backwards compatible bug fixes, and I have NOT bumped the MAJOR or MINOR version in version.json:

[ ] Someone has opened a bug report issue, and I have included "Closes #{bug_report_issue_number}" in the PR description.
[ ] The bug was found by the module author, and no one has opened an issue to report it yet.

[ ] Feature update backwards compatible feature updates, and I have bumped the MINOR version in version.json.
[ ] Breaking changes and I have bumped the MAJOR version in version.json.
[ ] Update to documentation

Checklist

[ ] I'm sure there are no other open Pull Requests for the same update/change
[ ] I have run Set-AVMModule locally to generate the supporting module files.
[ ] My corresponding pipelines / checks run clean and green without any errors or warnings

superseded by https://github.com/Azure/bicep-registry-modules/pull/1263


In proper information.

This site does not provide real information to users where the Personal OneDrive data are stored. After going through this site it seems that my Personal OneDrive data is stored in India (I'm from India), however my network tools provides me information that OneDrive application is uploading data to the IP address highlighted in the screenshot.
Country -United States (US)
Continent - North America (NA)
Coordinates - 37.751 (lat) / -97.822 (long)
Time- 2020-10-26 09:01:09 (America/Chicago)

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

ID: 61c6fa7b-7e9e-21a5-40da-adbd35040ec1
Version Independent ID: 530df3b2-2048-8351-2f09-59e604aedf5b
Content: Microsoft 365 data locations - Microsoft 365 Enterprise
Content Source: microsoft-365/enterprise/o365-data-locations.md
Service: o365-solutions
GitHub Login: @dmwmsft
Microsoft Alias: deanw

@dmwmsft  Please add your comment and help us in resolving this issue. Thanks.

We do not publish the data location for Personal OneDrive.

@dmwmsft Thank you very much for sharing this explanation. @tanmoy1338 Hope this comment is helpful for you. If you see a documentation update is required, please feel free to open an issue for the same. We proceed here to close it. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


License Contradiction Between Repository and Official Website

So, the website has a Terms of Use page that seems to contradict the repository's License page.  For example, the former prohibits making any sort of money from the use of the software while the latter permits the user to use the software as he/she desires without any restrictions except to (a) include the copyright notice and (b) to include the permission notice.

I don't see a problem. These are two different things. The website refers to Orbiter 2016, which was and is closed-source. It comes with its own non-open license.
The repository refers to an open-source project with MIT license. True, they are based on very similar code bases, but that is rather incidental.
So in short, if you want to make money from Orbiter, you better go for the source repository.
I admit that the coexistence of the two projects is a bit confusing, so I'll take down the Orbiter website when I get time.

You're going to take down the whole website?

I don't see a problem. These are two different things. The website refers to Orbiter 2016, which was and is closed-source. It comes with its own non-open license.
The repository refers to an open-source project with MIT license. True, they are based on very similar code bases, but that is rather incidental.
So in short, if you want to make money from Orbiter, you better go for the source repository.
I admit that the coexistence of the two projects is a bit confusing, so I'll take down the Orbiter website when I get time.

Did you already do that? It seems all download mirrors are down 😢

@Ytrog 4th mirror is working


1.21.4 compatibility

Not yet tested by me, so please verify.

Seen, traveling tomorrow but I'll have time to test once I get home then.
Also have other school stuff to work on first. If you could test it that would be quite helpful. But either way I'll get this merged before the UHC


Is there a known issue with @outlook.com addresses and gravatar?

My gravatar dino isn't showing for the @outlook.com address I'm using with gravatar. Is this a known issue?
For my package ...

In my profile ...

At gravatar's website ...

... and FYI ...

... if they can't offer any kind of proper technical support, then perhaps they shouldn't be used for profile pictures.

Nevermind ... you have to assign the image to the address in a separate step in their (crappy) portal. [I hate WordPress ... such garbage.]


[devtools] deleted column is always empty

Devtools here meaning the Composer devtools:

As far as I can tell this is easy to repro since it never shows deleted objects.

Whoever fixed this thank you!


Resetting

In your reset, I made a slight addition by adding the address selector to the resets that is used for the inputs and buttons. The address element, by default, is rendered italic.
e.g.
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select,
address {
  font: inherit;
}

You open for a PR of this or does it have any negative effects?

I wouldn't mind having this as my default, as I purely use the address element for accessibility purposes, not for the italic styling. It's just a default given by the browsers, the spec doesn't include such defaults: https://www.w3.org/TR/2011/WD-html5-author-20110809/the-address-element.html.


In order

Dear sir，
In order to enhance the image features, I extracted features.hdf5 file to add 2D positional encoding operation, and then training, this is my first step of training 8 epoch results, I would like to know why the checkpoint file size is only more than 400MB, I remember that when I do not add the encoding is more than 2GB, but according to the results show and I do not add before compared to not good, but I run test.py to validate this checkpoint score is very low, and why is it the same as the training process. But when I run test.py to validate this checkpoint, the score is very low, why is it different from the score of the training process. Note that the dataset I'm using is low resolution mscoco, only 2GB.

Hi,
I'm not sure I'm not sure I understanding correctly the question

Dear sir， In order to enhance the image features, I extracted features.hdf5 file to add 2D positional encoding operation, and then training, this is my first step of training 8 epoch results, I would like to know why the checkpoint file size is only more than 400MB,

This is normal if you just finished the first training step since the checkpoint does not include the swin-transf. visual backbone

I remember that when I do not add the encoding is more than 2GB,

this is odd. If you're talking about the pre-trained models that can be downloaded from Google Drive, they are complete checkpoints (including the backbone) and are the results of the training steps 3 and 6 in the readme, this is why the checkpoints weight

but according to the results show and I do not add before compared to not good, but I run test.py to validate this checkpoint score is very low,

The last image you posted (I cannot see the first one) showcases a reasonable score. Keep in mind that you should multiply each value by x100 to get the actual score. For instance, the CIDEr-D score of 1.23 is actually 123.

and why is it the same as the training process.

I did get what you meant here, maybe your first image for the matter, was important but I cannot visualize it

But when I run test.py to validate this checkpoint, the score is very low

If you got 1.23 (123 CIDEr) it should be fine.

, why is it different from the score of the training process.

I did not understand this bit

Note that the dataset I'm using is low resolution mscoco, only 2GB.

I find this odd, if the dataset was scaled down to only 2GB, I didn't expect the score to be that high! It means is performing exceptionally.... But again, I might not be understanding the situation correctly


[PE-D][Tester A] Instructions wrong

The displayed instruction seems to be not of the right form.

Labels: severity.VeryLow type.DocumentationBug
original: YuZizhen/ped#7

This is done


fix: moving logo from course static to base static

Pre-Flight checklist

[x] Screenshots and design review for any changes that affect layout or styling

[x] Desktop screenshots
[x] Mobile width screenshots

[x] Testing

[x] Code is tested
[x] Changes have been manually tested

What are the relevant tickets?
https://github.com/mitodl/ocw-hugo-themes/issues/289
What's this PR do?

Buy at MIT Press logo was added in course/static in this PR
which was merged but it didn't work in RC, the image was not found and threw 404 whereas other static images in base-theme and www seems to successfully go through.
This logo was also in the build-theme-assets but not sure why it's throwing 404, though it's working locally.
Anyways, I'm opening this PR which moves this logo from course/static to base-theme/static, just to give it a try as currently, we don't have any static images in course/static unlike base-theme/static

How should this be manually tested?

Open any course which uses this logo and verify that the logo is rendering and showing up. (e.g: course: 21g.049-spring-2017 uses this logo in this page)

Screenshots (if appropriate)

@pdpinch Shall we give this a try and get it reviewed?


Unexpected cutoff behavior for CutOffComposite

Description
For bqm = dimod.BinaryQuadraticModel({}, {'ab': -0.8, 'ac': -0.7}, 0, dimod.SPIN) I expected that CutOffComposite(AutoEmbeddingComposite(sampler), -.75).sample(bqm, num_reads=1000) would remove interaction ac and found the result puzzling until I saw in the code:
(u, v, bias)
                         for (u, v), bias in original.quadratic.items()
                         if not comp(abs(bias), cutoff))

Either the absolute value for cutoff should be explicitly stated in the parameter description or abs() should be dropped.
I'm in this repo now anyway, if you say what your preferred behavior is, I can implement.
To Reproduce
See above.
Expected behavior
Stated above
Environment:

OS: all
Python version: all

Additional context
Add any other context about the problem here.

this is the correct behaviour. The cutoffcomposite is implemented for precision error.

@conta877, this issue isn't saying that there is a bug in the implementation. I found the behavior unexpected based on the description of parameter cutoff. If I have interactions -0.7 and -0.9 and I specify cutoff=-0.8 then I would expect, based on the description "The lower bound for interaction bias magnitudes", that it would drop -0.7. That is not the case.
Above I suggest "Either the absolute value for cutoff should be explicitly stated", which I think would clarify the description if this is the desired behavior. No?

the fact that this was an unexpected behaviour for you tells me that I did a bad job describing what the composite does. So yes changing the parameter definition to explicitly say absolute + better description may be necessary

Agree the documentation should be updated to make it explicit that the cutoff is around 0.

I suppose we could update the composite to allow the user to specify a range (treating a single number as a symmetric range) e.g.
CutOffComposite(AutoEmbeddingComposite(sampler), .75)

would be the same as
CutOffComposite(AutoEmbeddingComposite(sampler), (-.75, .75))

but the user could instead
CutOffComposite(AutoEmbeddingComposite(sampler), (-.75, 0))

That said, I cannot really imagine a use case for which that amount of flexibility would be useful.

I am against that idea. the main reason for this composite is precision issues.

Who are we to tell people what to use it for? :smile: But yeah, need a use-case to justify the implementation time.

@conta877:

how about "interactions with precision below a specified cutoff value"

If I understand your intent correctly, you want to convey that the practical use of this composite relates to the limits of precision in programming qubit biases. I'm not sure that comes across from that proposal because we tend to think of precision as a delta on any value and here the cutoff is around zero. What about separate statements: (1) explains the practical use and talks about precision and (2) defines what interactions are cut off?

@JoelPasvolsky I trust your judgement more than my own on this!

Okay, I'll try propose something that won't badly disappoint your misplaced trust

Back working on this part again. @conta877, please let me know if this isn't your intended use for this composite re precision:
class CutOffComposite(dimod.ComposedSampler):
    """Composite to remove interactions below a specified cutoff value.

    Downsizes the binary quadratic model (BQM) submitted to the child sampler by retaining
    only interactions with values commensurate with the sampler's precision. Also removes
    variables isolated post...

so now this sounds like we actually provide a precision for samplers.
How about "commensurate with a precision given by cutoff" ?
or "bounded by -cutoff < val < cutoff"

I think that once we introduce the notion of precision, it needs to be related to some quantity, which I understand to be the actual programmed values of the biases of qubits & couplers on the QPU versus desired variable values, otherwise we're leaving users unclear on what is the problem the composite is meant to overcome. The cutoff parameter sets a number on it but doesn't relate it to its object.
For your point that it "sounds like we actually provide a precision for samplers":

If by "we" you mean the CutOffComposite, I would not expect the second sentence to be misinterpreted in that was coming after a first sentence that states "below a specified cutoff value" but how about changing to the more explicit "interactions with values commensurate with the sampler's specified precision" or even more explicit "interactions with values commensurate with the sampler's precision as specified by the cutoff argument"?

If by "we" you mean D-Wave for its systems, we can add a reference to the system documentation's Technical Description of the QPU


Aspell returns an empty dictionary list

Issue description
When requesting a list of available dictionaries from the aspell API, it searches for its dictionaries in the path where aspell was built, but not where the dictionaries actually are, thus always returning the empty list.
The API unfortunately also seems to ignore the ASPELL_CONF environment variable when building the list of available dictionaries (see #29429).
Note that it seems that the dictionaries are still found when requested explicitly. Therefore, I'm not sure whether this is not a bug in aspell. One workaround might be to build aspell with dict-dir being set to /run/current-system/sw/lib/aspell, but this might be a kind of hacky solution (and possibly only work with aspell-with-dicts?).
This also impacts programs that depend on aspell, such as enchant and Claws Mail.
Steps to reproduce

Put something like (aspellWithDicts (ps : with ps; [ cs de en fr it ])) into your systemPackages (in configuration.nix).
Download and unpack spell-test.tar.gz.
Run nix-build in the spell-test directory.
Run result/aspell-test to see what happens when you use the default API -- no dictionaries should be found.
Run result/aspell-test fix to see what happens when you set the right dictionary path (via the aspell API) before using the default API -- more than zero dictionaries should be found.

On my system, the output is:
[michi@nixos:~/spell-test]$ export | grep ASPELL_CONF
declare -x ASPELL_CONF="dict-dir /run/current-system/sw/lib/aspell"

[michi@nixos:~/spell-test]$ result/aspell-test
dict-dir = /nix/store/qhb8mq3cl1r6w5pvsr8p9zawkwl538bn-aspell-<IP_ADDRESS>/lib/aspell
Dicts: 0

[michi@nixos:~/spell-test]$ result/aspell-test fix
Fixing dict-dir ...
dict-dir = /run/current-system/sw/lib/aspell
Dicts: 54

Technical details
System: NixOS: 17.09beta647.20e1833914 (Hummingbird)
Nix version: 1.11.14
Sandboxing enabled: false

I thought it was fixed with 20e1833914b0594e53a1e59c8f4ed2d86ac544f6?

For other readers: FRidh's commit at https://github.com/NixOS/nixpkgs/commit/20e1833914b0594e53a1e59c8f4ed2d86ac544f6 fixed one aspect -- aspell finding an explicitly requested dictionary. This bug is about aspell not retrieving a list of all available dictionaries.
I already dug into the aspell source code, but it was quite intricate. Relevant parts for directory finding seem to be in common/config.cpp as well as in common/file_data_util.cpp. The actual list of dictionaries seems to be constructed in ModuleInfoList::fill from common/info.cpp.
The bug in aspell seems to be that loading specific dictionaries loads values from ASPELL_CONF (via the function read_in_settings), while loading the list of dictionaries does not consider ASPELL_CONF. I have created a patch that also reads ASPELL_CONF settings when loading the list of dictionaries. On my quick aspell-test, this seems to build the dictionary list correctly.
The patched version of aspell is here. Unfortunately, I could not test it on my whole system to replace the default aspell, because rebuilding my system on my VM will probably run out of memory.

If you can tell me a simple way to build only the necessary system parts for, say, Claws Mail with the patched aspell, then I am of course willing to test that.

Could you open a PR with your proposed change?

Hm, in the meanwhile, ba4cefe4ae70cfb9121281f508ed5d9fa9dbc662 seems to have addressed the issue I have raised in an elegant way. I cannot test it right now though, because I currently do not have a NixOS installation at hand. I hope I'll get around to test it later this week.

Okay, I tested the new aspell with ba4cefe4ae70cfb9121281f508ed5d9fa9dbc662 now. My test in the OP still returns no dictionaries. However, reading the commit message of ba4cefe4ae70cfb9121281f508ed5d9fa9dbc662, this is actually to be expected:

[...] in some cases, when used as dependency by another derivation,
the passed dictionaries will be missing. However, invoking aspell directly should be fine.

Aspell is used as a dependency by many other derivations, so that fix pretty seriously limits the usability of aspell.
Furthermore, ba4cefe4ae70cfb9121281f508ed5d9fa9dbc662 adds a patch to load the right dictionary directories, but does actually not enable the patch when building aspellWithDicts. I do not understand why ...
Any idea how to proceed here? Unfortunately, the committer of the fix, Rostislav Beneš, seems not to be on GitHub ...

@01mf02 when we have tools that have (optional) run-time dependencies, there are basically two options one can take:

Write the derivation so that during run-time it searces PATH and the Nix profiles and whatever other env variables
Record absolute paths to all dependencies, so that everything is pulled in.

You can install aspell, and its dictionaries separately, and aspell can function this way by scanning the profiles for the dictionaries. This is an implementation of solution 1). The aspellWithDicts function does 2).
Which approach are you interested in, and what is not working for that approach? Looking at the two implementations, it seems aspellWithDicts doesn't set data-dir.

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/aspell-dictionaries-are-not-available-to-enchant/39254/1

This is still an issue, when I use the aspellWithDicts package, upon doing normal checks like:
aspell --lang=en_US --encoding=utf-8 check tmp.error

it works. But when I run it to create a master file needed for recoll
aspell --lang=en_US --encoding=utf-8 create master /home/username/.recoll/aspdict.en.rws

it starts to look for dict files in the directory where it does not exist
Error: The language "en_US" is not known. This is probably because: the file "/nix/store/1amvdri3kwnv0bhz3bx0ix1zmrkrhip8-aspell-<IP_ADDRESS>/lib/aspell/en_US.dat" can not be opened for reading.

Is there any workaround?


Allow STL files bigger than expected (printing a warning message).

See issue https://github.com/ros-visualization/rviz/issues/945.

Thanks @caguero!
@seanyun can you try this to see if it at least loads your STL's? Strictly speaking I think your STL's are not compliant to the STL standard (if I read it correctly).

I'm sorry about the late response. This patch works. I got a bunch of warnings but the graphical model shows up in the right way. Thx!

Ok, I'll merge this, but I'd still like to know why your models have extra data at the end. Do they open in other tools like Blender and Meshlab?

I can open the STL files in Blender smoothly. I don't see any warning or errors in Blender.
The STL files were generated by the SolidWorks auto-export.

I seem to be having this issue with the attached file. Version 1.12.14.
LowRes_DexterHDIKinematic_Link1_Bottom.stl.zip


finding entries in WMO code tables

finding different ways to search
scientific domain experts: operational meteorologist
(in charge of a particular kind of data collection)
lets say they are interested in
http://test.wmocodes.info/bufr4/b/21
weather radar
but they don't know where the WMO keep this
in particular let us consider peakiness
http://test.wmocodes.info/bufr4/b/21/071
http://test.wmocodes.info/bufr4/b/21/093
http://test.wmocodes.info/bufr4/b/21/094
http://test.wmocodes.info/bufr4/b/21/182

lets just search
http://test.wmocodes.info/ui/text-search?query=peakiness

how may i narrow my search to the scenario i am interested in

'search' for table b
http://test.wmocodes.info/ui/text-search?query=table+b
find BUFR4 table B in the list and select
this takes us to:
http://test.wmocodes.info/bufr4/_b

consider velocity, as this has a wider path at the start so it's more useful to show context search

consider adding a link to the 'narrowing your search' page to the search results template

http://test.wmocodes.info/ui/about/findingentries


refactoralign node id in explain with nereids node id

Proposed changes
it is painful to align explain node and explain physical node, since they use two different sets of node IDs.
This pr makes 'explain' command use node IDs of their correspond node in 'explain physical plan'
Issue Number: close #xxx

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall


Cross-server teleportation bugs out for a user [unreproducable]

Describe the bug
Cross-server teleportation does not work for FadedMartian
To reproduce
Unreproducable at this time; thus why the question label is applied.
Expected behavior
It should work but it doesn't
Screenshots

System information
Windows 10
FAPI 0.32.0
EMC Utils v1.7.0
Additional context
N/A

That happens if they have a poor connection to the EMC API. What I mean is that their client couldn't download the residence list by the time they ran the command.


feat(ui): add RTL support for application

Describe your changes:

This PR will add support for RTL ( Right to Left ) at the application level, the working will be like this
You have to select the application language from the language dropdown and if the language is a type of RTL application style will change to RTL styling otherwise it will be in LTR.

Firefox

Brave

Chrome

Type of change:

[x] New feature

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My PR title is Fixes <issue-number>: <short explanation>
[ ] I have commented on my code, particularly in hard-to-understand areas.
[ ] For JSON Schema changes: I updated the migration scripts or explained why it is not needed.

Closing this as opened #14701


Log Levels for "Page Should Contain Element" and similar keywords

Originally submitted to Google Code by kiki... on 11 Nov 2010

"Page Should Contain Element" should have a loglevel parameter similar to "Page Should Contain".
We have in our project some quite large xhtml pages.
When using "Page Should Contain Element" the failure logs the entire page.
In some cases we can get very large files with unwanted source dumps.
This information that should only be presented in DEBUG or TRACE but is always logged with default INFO.

Originally submitted to Google Code by kiki... on 11 Nov 2010

Sorry this should be entered as an enhancement.

Originally submitted to Google Code by @yanne on 11 Nov 2010

We noticed this as part of resolving  issue 147 , and decided to expand it cover all keyword that currently log the source.
Closing this as duplicate


Error during build. Conflicted support v4 module

Version
Platform : android
"react": "16.0.0-alpha.12"
"react-native": "0.46.4"
"react-native-camera-kit": : "^5.3.3"
"sdk tools": 23.0.2
What happened
Error during build. The main cause is because some conflicted modules that also being used by react-native-fetch-blob. I think it was 'support-v4' module
Dex: Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
    UNEXPECTED TOP-LEVEL EXCEPTION:
    com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;

How to replicate
react-native init newProject
yarn add react-native-cached-image
yarn link react-native-cached-image
yarn add react-native-camera-kit
yarn link react-native-camera-kit
react-native run-android

My build.gradle dependencies section
dependencies {
    compile project(':react-native-camera-kit')
    compile project(':react-native-fetch-blob')
    compile fileTree(dir: "libs", include: ["*.jar"])
    compile "com.android.support:appcompat-v7:23.0.1"
    compile "com.facebook.react:react-native:+"  // From node_modules
}

What i've tried

Clean project build
Clean project using gradlew clean
Recreated project and still got error. Even without additional package.

See #56