Make python layers work for inference

This addresses a bug from https://github.com/NVIDIA/DIGITS/pull/329. Without this fix, you can train a model with a PythonLayer, but you can't test it.
SystemError
NULL result without error in PyObject_Call

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request
    return self.view_functions[rule.endpoint](**req.view_args)
  File "/home/lyeager/digits/digits/model/images/classification/views.py", line 291, in image_classification_model_classify_one
    predictions, visualizations = job.train_task().infer_one(image, snapshot_epoch=epoch, layers=layers)
  File "/home/lyeager/digits/digits/model/tasks/caffe_train.py", line 1017, in infer_one
    layers=layers,
  File "/home/lyeager/digits/digits/model/tasks/caffe_train.py", line 1042, in classify_one
    net = self.get_net(snapshot_epoch)
  File "/home/lyeager/digits/digits/model/tasks/caffe_train.py", line 1368, in get_net
    caffe.TEST)
SystemError: NULL result without error in PyObject_Call

The message in the console output is much more informative:
ImportError: No module named python-layer

This requires two changes:

Add job_dir to the path before loading a new Caffe model so that the python file can be found

Force a reload of any modules that were loaded by a previous model (see comments)

Don't merge this - I don't want to figure out the implications of force reloading digits or caffe if the python layer file is named digits.py or caffe.py. I'm investigating another solution...

I think this is a safer solution. I'm hard-coding the filename to digits_python_layers.py - thus requiring that any models using python layers uploaded through DIGITS to specify their network like so:
layer {
    name: "MyPythonLayer"
    type: "Python"
    bottom: "blobA"
    top: "blobB"
    python_param {
        module: "digits_python_layers"
        layer: "MyPythonLayer"
    }
}

@jmancewicz what do you think? This is the simplest solution I can think of that gets around the issue of somebody uploading a filename with the name of a standard module.

Forcing the name to be digits_python_layers.py handles the reload of caffe or digits issue.  Adding the dashless job number does as well but is uglier.  Can you envision a time where multiple python layer files need to be uploaded?

Can you envision a time where multiple python layer files need to be uploaded?

It might be convenient, but not needed. You can put the definition for multiple Python layers into a single Python file.


Render a fallback widget with debug info when rendering some message content fails

Prevents crashes for cases like #37

How to produce a error case, to see changes here?

Make a new post with
<http://example.org

http://example.com>

Note that I didn't spend much time to make this pretty here. It's something that should never happen and is just a fallback to prevent crashing the app and give us just enough info to debug the issue.

Make a new post with
<http://example.org

http://example.com>

Is the line break the important part?
If I create a post like this - it look on webUI the same as in the App. WYSIWYG:
The first one is build with well formatted markdown, the second was build like in your text.  If this is w

With this PR I see no difference in the App.

Yes, all the line breaks are important, remove any and it doesn't crash anymore.

Ah well, I'd love to stick to color scheme and not add random colors here and there. Remember this is another "should never happen and if it happens it's a real bug" case.


opensubdiv: 3.3.2 -> 3.3.3

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/opensubdiv/versions.
meta.description for opensubdiv is: '"An Open-Source subdivision surface library"'.
Compare changes on GitHub

Checks done (click to expand)

built on NixOS
Warning: no invocation of /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3/bin/stringify had a zero exit code or showed the expected version
0 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 3.3.3 with grep in /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3
directory tree listing: https://gist.github.com/f10e1b6d97212ea1efd72c96f844bcb1
du listing: https://gist.github.com/708528cae3aca8aa6acce8e4f619a57a

Test this build with Cachix (click to expand)

One time setup in nixpkgs Git checkout:
cachix use r-ryantm
git remote add r-ryantm https://github.com/r-ryantm/nixpkgs.git

Test this build:
git fetch r-ryantm && git checkout a229933de60384ff5f191392665f55282fe42a48 && nix-shell --pure -I nixpkgs=. -p opensubdiv

cc @edolstra for testing.

Success on x86_64-linux (full log)
Attempted: opensubdiv
Partial log (click to expand)
shrinking /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3/lib/libosdCPU.so.3.3.3
shrinking /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3/bin/stringify
/nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip is /nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip
stripping (with command /nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip and flags -S) in /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3/lib  /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3/bin
patching script interpreter paths in /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3
checking for references to /build in /nix/store/876rb16cnj80lz6qqxsgsih3m781qs29-opensubdiv-3.3.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/ic7i0z7ii29rbfa9w9zs8ffligkc6ihr-opensubdiv-3.3.3-dev
/nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip is /nix/store/vp40my263xk32f07788srrgl59rycsna-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/ic7i0z7ii29rbfa9w9zs8ffligkc6ihr-opensubdiv-3.3.3-dev
checking for references to /build in /nix/store/ic7i0z7ii29rbfa9w9zs8ffligkc6ihr-opensubdiv-3.3.3-dev...

Success on aarch64-linux (full log)
Attempted: opensubdiv
Partial log (click to expand)
shrinking /nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3/lib/libosdCPU.so.3.3.3
/nix/store/8wl4dykwswy42wxj671b6k7vk2ydxg86-binutils-2.30/bin/strip is /nix/store/8wl4dykwswy42wxj671b6k7vk2ydxg86-binutils-2.30/bin/strip
stripping (with command /nix/store/8wl4dykwswy42wxj671b6k7vk2ydxg86-binutils-2.30/bin/strip and flags -S) in /nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3/lib  /nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3/bin
patching script interpreter paths in /nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3
checking for references to /build in /nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3...
shrinking RPATHs of ELF executables and libraries in /nix/store/5dsbwz0q1gynb2br7mjivphzxznayz4w-opensubdiv-3.3.3-dev
/nix/store/8wl4dykwswy42wxj671b6k7vk2ydxg86-binutils-2.30/bin/strip is /nix/store/8wl4dykwswy42wxj671b6k7vk2ydxg86-binutils-2.30/bin/strip
patching script interpreter paths in /nix/store/5dsbwz0q1gynb2br7mjivphzxznayz4w-opensubdiv-3.3.3-dev
checking for references to /build in /nix/store/5dsbwz0q1gynb2br7mjivphzxznayz4w-opensubdiv-3.3.3-dev...
/nix/store/1dyl4lv8djn5a0qvjj6v3b48mygm50gs-opensubdiv-3.3.3

Success on x86_64-darwin (full log)
Attempted: opensubdiv
Partial log (click to expand)
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdCPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdGPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdCPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdGPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdCPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdGPU.3.3.3.dylib: fixing dylib
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3/lib/libosdCPU.3.3.3.dylib: fixing dylib
/nix/store/5im29qx9rni3w8l3j8i2yr22sin55kxv-cctools-binutils-darwin/bin/strip is /nix/store/5im29qx9rni3w8l3j8i2yr22sin55kxv-cctools-binutils-darwin/bin/strip
patching script interpreter paths in /nix/store/rc9b9h4nffy541d1i9n08iqz699y9l7r-opensubdiv-3.3.3-dev
/nix/store/6b7737rgbibsnki82w4h0g6dm3vlnsk2-opensubdiv-3.3.3


Document why skip-prune is not defailt

Via:

         Probably not for this PR, but it would make sense to not prune code that is used in dependent APIs by default, instead of having to set this explicitly.

Originally posted by @markuswustenberg in https://github.com/deepmap/oapi-codegen/pull/1389#discussion_r1466286582

This is called out in https://github.com/deepmap/oapi-codegen?tab=readme-ov-file#key-design-decisions - do we want any more than this?

The issue is about not pruning code that is used in other, dependent APIs, where those APIs are known when generating, I think? In which case it would make sense to not prune them by default, because they're used in the dependent APIs, and it otherwise leads to errors in the generated code.
TLDR: if an option is not optional but mandatory for the generated code to work, why is it an option?

Just adding some feedback here. My use-case is turning OpenAPI specs generated by CUE into Go structs. For example:
{
    "openapi": "3.0.0",
    "info": {
        "title": "Generated by cue.",
        "version": "no version"
    },
    "paths": {},
    "components": {
        "schemas": {
            "Schema": {
                "type": "object",
                "required": [
                    "registry"
                ],
                "properties": {
                    "registry": {
                        "type": "string"
                    }
                }
            }
        }
    }
}

The default behavior, in this case, results in an empty file being generated. Given the length of the README, it took me a while before I realized I was missing the skip-prune setting. Regardless of whether it's defaulted true or not, maybe an explicit example like above with a working configuration in the README would go a long ways towards saving someone this much effort in the future.


wifi: airoc: misc update of airoc wifi driver

FIX: STA fails to connect AP, of which security is open
FIX: SoftAP supports only OPEN and WPA2-PSK. Other scruity modes(e.g. WPA3-SAE, WPA-PSK) are not supported
FIX: When creating softap, interface is not recognized as up.
Add the support of join and leave of multicast address group

Signed-off-by: Morihisa Momona<EMAIL_ADDRESS>

Hi @jukkar, @carlescufi those changes as well as https://github.com/zephyrproject-rtos/zephyr/pull/72859 are critical to be present in 3.7 releases. Could you help with review?

@krish2718 can you review comments and approve if ok?


feat: Brevo Removed from UI

Removed Brevo icon and it's related script from frontend
Brevo icon is removed on frontend change and nothing is done on the backend as said
Fixes #887
Type of PR

[ ] Bug fix
[x ] Feature enhancement
[ ] Documentation update
[ ] Refactoring
[ ] Other (specify): _______________

Additional Notes
I guess this will do the needful, let me know if I missed something.
Checklist

[x ] I have read and followed the Pull Requests and Issues guidelines.
[x ] The code has been properly linted and formatted using npm run lint:fix and npm run format:fix.
[x ] I have tested the changes thoroughly before submitting this pull request.
[ x] I have provided relevant issue numbers, snapshots, and videos after making the changes.
[x ] I have not borrowed code without disclosing it, if applicable.
[ x] This pull request is not a Work In Progress (WIP), and only completed and tested changes are included.
[x ] I have tested these changes locally.
[x ] My code follows the project's style guidelines.
[x ] I have updated the documentation accordingly.
[x ] This PR has a corresponding issue in the issue tracker.

Summary by CodeRabbit

Chores

Removed Brevo Conversations widget script from the application.

Also, did you check package file for related removals?

it was integrating it as sdk i don't think there are packages for it . i searched thoroughly

🚀 Congratulations on the successful PR merge! 🌟 Thank you for your valuable contribution! 🎉 Let's continue to make waves in open source. Share your achievement on social media and tag Digitomize to help spread the word. Thank you for your dedication!
@all-contributors please add @keshavsinha17 for code
@holopin-bot @keshavsinha17 c-ch


there are missing some SKUs

ENTERPRISEPACKWITHOUTPROPLUS
POWERAPPS_VIRAL
POWER_BI_STANDARD
AX7_USER_TRIAL

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

ID: 7c245452-161d-89a1-c026-99a0721cf071
Version Independent ID: 16dec59a-eb83-1837-4efd-4645e7aeaed2
Content: Product names and service plan identifiers for licensing in Azure Active Directory
Content Source: articles/active-directory/active-directory-licensing-product-and-service-plan-reference.md
Service: active-directory
GitHub Login: @piotrci
Microsoft Alias: piotrci

@Michal-Ziemba Thanks for reporting! I have assigned the issue to the author to investigate and update as appropriate.

@MohitGargMSFT Could you please assign this to @SumitParikh instead?

This doc lists only the most popular SKUS and Service Plans in AAD and not all.

Then please either:
a) point us to a complete doc or
b) update this one and keep it updated


docker image start on kvm host?

Description
strange behavior
To Reproduce
Front-end(ubuntu 20.10)
wget 'https://github.com/OpenNebula/minione/releases/latest/download/minione'
echo yes | sudo bash minione -f

3)download  alpine  from apps( MarketPlace | DockerHub)
4)deploy (create instances)
Сurrent behavior
sudo docker ps -a
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

Expected behavior
sucess deploy to docker
or if the host can only have 1 engine (for example kvm) then

why does he start the container and says that it has been successfully launched (although it is not) - and does not say that there are no hosts with the required engine
why is docker installed?

Details

Affected Component: ??
Hypervisor: ??
Version: 6.0.0

Progress Status

[ ] Branch created
[ ] Code committed to development branch
[ ] Testing - QA
[ ] Documentation
[ ] Release notes - resolved issues, compatibility, known issues
[ ] Code committed to upstream release/hotfix branches
[ ] Documentation committed to upstream release/hotfix branches

MiniONE only installs and setup KVM host/engine. Or none if run with --frontend. Other hosts need to be configured afterward manually or using FireEdge.

why does he start the container and says that it has been successfully launched (although it is not) - and does not say that there are no hosts with the required engine

Seems like a problem with the image, I suggest downloading the appliance from OpenNebula marketplace, such as

325 Alpine Linux 3.12                     6.0.0-1.20  256M  rdy  img 04/01/21 OpenNebula    0

why is docker installed?

Docker is only used to manage images from DocerHub marketplace, OpenNebula does not run docker containers but lxc/lcd

"Alpine Linux 3.12 6.0.0-1.20 ..... OpenNebula" it's kvm image
same situation with "alpine_3.13 - LXD" if set host(Front-end)

perhaps need to mark the image type (docker / lxc) depending on which marketplace (OpenNebula / Linux Containers / DockerHub) the image was downloaded from, and when you try to deploy to the wrong host (or, if the host with the required engine does not exist), report error and not "RUNNING" as this is misleading

Docker is only used to manage images from DocerHub marketplace, OpenNebula does not run docker containers but lxc/lcd

do I understand correctly that OpenNebula CAN run docker containers on the firecracker host?
https://opennebula.io/firecracker/
https://opennebula.io/deploying-container-based-applications-with-opennebula/

or can it somehow launch a docker container on lxc / lcd?

perhaps need to mark the image type (docker / lxc) depending on which marketplace (OpenNebula / Linux Containers / DockerHub) the image was downloaded from, and when you try to deploy to the wrong host (or, if the host with the required engine does not exist), report error and not "RUNNING" as this is misleading

No, this should not be required, the appliances contain the limitations themselves. For example
onemarketapp export "alpine_3.13 - LXD"  -d 1 alpine_lxd

onetemplate show alpine_lxd
...
SCHED_REQUIREMENTS="HYPERVISOR=\"lx*\""

But such a VM will remain in a pending state on MiniONE host, because there is only KVM hypervisor installed.
Preferably describe whole failing scenario.

what about the second point about docker?

But such a VM will remain in a pending state on MiniONE host, because there is only KVM hypervisor installed.

well, the problem is that now he writes that he is running.

Preferably describe whole failing scenario.

I described the steps in the section "To Reproduce"
or need some more information?

what about the second point about docker?

as written before: Docker is only used to manage images from DocerHub marketplace, OpenNebula does not run docker containers

well, the problem is that now he writes that he is running.

yes, to understand this issue, please, describe the complete scenario. What hosts do you have created(only kvm?) which appliance did you use etc.
Also, please re-open the issue in https://github.com/OpenNebula/minione/issues where it belongs, thank you.


Can you please add a introduction video on youtube?

I tried the plugin, so far could not make it work, currently I'm using godot 3.02 version, the plugin is supposed to be put inside 'addons' folder, not 'assets', other than that, not sure how to use it
Thank you

Hello Bevin.
Thanks for your interest.
But I'm no longer supporting this addon.
It's up only for educatonal purpose.
Sorry for this.
Em qui, 31 de mai de 2018 13:19, bevin<EMAIL_ADDRESS>escreveu:

I tried the plugin, so far could not make it work, currently I'm using
godot 3.02 version, the plugin is supposed to be put inside 'addons'
folder, not 'assets', other than that, not sure how to use it
Thank you
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/falquinho/tilemapplus/issues/3, or mute the thread
https://github.com/notifications/unsubscribe-auth/ANfGWU6nrdFTnTdmKXiCmrpUvki9rkmyks5t4BgmgaJpZM4UVWDN
.


Produce an error for missing interpolation arguments

A common bug we've found is when a particular string translation value has interpolation arguments in it, but the code/filter/directive that references that translation id doesn't provide them, or there is a typo in the object that is passed in. Currently, angular-translate does not produce any sort of error when this happens. We'd like the option to fail fast and require all interpolation arguments referenced in the translation value to be specified explicitly, otherwise produce an error.
e.g:
$translateProvider.translations('en', { greeting: 'hello {{name}}!' });

// later

// these promises should be rejected.
var shouldBeRejectedPromise = $translate('greeting', null);
var shouldAlsoBeRejectedPromise = $translate('greeting', { namee: 'oops! typo! but currently no way of knowing short of looking at the UI and the seeing that the string isn't right.' });

Closing this due inactivity.
In case of a contribution

should not breaking existing code
should be aware of other interpolation services (i.e. messageformat)
perhaps opt-in


[kmac] Countermeasure and hardening

[ ] Adding FSM sparse encoding for missing submodules

[ ] Add local alerts for the invalid state encoding

[ ] Add global alert escalation input port
[ ] Add logic to stop operation and enter to dormant state when local alert or global escalation alert occurs.
[ ] Add logic to securely wipe the SW programmed secret key shares #1920
[ ] counter protection (key index & round count) #7747
[ ] Shadow register for the configuration #8982  PR #7439 (should change the scheme to follow more generic way not hwext)

here, I would say "securely wipe" rather than "wipe out"
for the dormant state, should we think about resetting the keccak state?  (@tjaychen  should we ask some other folks to see if they have opinions?  We believe that the hamming weight leakage of something that wide is not problematic, and I feel like zeroing anything potentially sensitive and based on early-terminated operation isn't a bad idea.  But maybe I am going overboard here.)

i also filed #8982 a few days ago, but I believe most of the points are already covered here.
@eunchan would you mind having a look and just closing the other issue if it's the case?

i also filed #8982 a few days ago, but I believe most of the points are already covered here. @eunchan would you mind having a look and just closing the other issue if it's the case?

Thanks Tim, I didn't notice it. Looks like I missed the shadow register item here. Just added :) Thanks!

here (4th item), I would say "securely wipe" rather than "wipe out" just to be really precise.

Revised. :) thanks !

@m-temp Here's more combined items for KMAC hardening. (forgot I created this :) )

@eunchan We can update the tasks here as well.


return entire transaction group, not just transaction

I want to see the entire transaction group that a transaction was part of, not just a single transaction. Related to #211

Duplicate of #135


Trigger completion doesn't work on MacOS

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[ ] Linux
[x] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
By some reason after update to version 0.35.0 via Homebrew the completion trigger doesn't work for me.
In case I type cd **<TAB> or vim **<TAB> nothing happens. I use the following settings for fzf:
[[ -f $HOME/.fzf.bash ]] && \. $HOME/.fzf.bash
FD_OPTIONS="--hidden --follow --exclude .git --exclude node_modules"
export FZF_DEFAULT_OPTS="--height 50% -1 --reverse --multi --inline-info --preview='[[ \$(file --mime {}) =~ binary ]] && echo {} is a binary file || (bat --style=numbers --color=always {} || cat {}) 2> /dev/null | head -300' --preview-window='right:hidden:wrap' --bind='f3:execute(bat --style=numbers {} || less -f {}),f2:toggle-preview,ctrl-d:half-page-down,ctrl-u:half-page-up,ctrl-a:select-all+accept,ctrl-y:execute-silent(echo {+} | pbcopy),ctrl-x:execute(rm -i {+})+abort'"
# Use git-ls-files inside git repo, otherwise fd
export FZF_DEFAULT_COMMAND="git ls-files --cached --others --exclude-standard || fd --type f --type l $FD_OPTIONS"
export FZF_CTRL_T_COMMAND="fd $FD_OPTIONS"
export FZF_ALT_C_COMMAND="fd --type d $FD_OPTIONS"

✔ ~ $ cat .fzf.bash
# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
  export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin"
fi

# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.bash" 2> /dev/null

# Key bindings
# ------------
source "/usr/local/opt/fzf/shell/key-bindings.bash"

In the same time all works on my Ubuntu 20.04 (fzf is installed via git).
Mac OS: Catalina 10.15.7
Terminal: iTrem2/Built-in Mac terminal

Hi - I was having the same problem so I did the following
$ locate fzf
/opt/homebrew/Cellar/fzf
/opt/homebrew/Cellar/fzf/0.34.0
/opt/homebrew/Cellar/fzf/0.34.0/.brew
/opt/homebrew/Cellar/fzf/0.34.0/.brew/fzf.rb
/opt/homebrew/Cellar/fzf/0.34.0/CHANGELOG.md
/opt/homebrew/Cellar/fzf/0.34.0/INSTALL_RECEIPT.json
/opt/homebrew/Cellar/fzf/0.34.0/LICENSE
/opt/homebrew/Cellar/fzf/0.34.0/README.md
/opt/homebrew/Cellar/fzf/0.34.0/bin
/opt/homebrew/Cellar/fzf/0.34.0/bin/fzf
/opt/homebrew/Cellar/fzf/0.34.0/bin/fzf-tmux
/opt/homebrew/Cellar/fzf/0.34.0/install
/opt/homebrew/Cellar/fzf/0.34.0/plugin
/opt/homebrew/Cellar/fzf/0.34.0/plugin/fzf.vim
/opt/homebrew/Cellar/fzf/0.34.0/share
/opt/homebrew/Cellar/fzf/0.34.0/share/man
/opt/homebrew/Cellar/fzf/0.34.0/share/man/man1
/opt/homebrew/Cellar/fzf/0.34.0/share/man/man1/fzf-tmux.1
/opt/homebrew/Cellar/fzf/0.34.0/share/man/man1/fzf.1
/opt/homebrew/Cellar/fzf/0.34.0/shell
/opt/homebrew/Cellar/fzf/0.34.0/shell/completion.bash
/opt/homebrew/Cellar/fzf/0.34.0/shell/completion.zsh
/opt/homebrew/Cellar/fzf/0.34.0/shell/key-bindings.bash
/opt/homebrew/Cellar/fzf/0.34.0/shell/key-bindings.fish
/opt/homebrew/Cellar/fzf/0.34.0/shell/key-bindings.zsh
/opt/homebrew/Cellar/fzf/0.34.0/uninstall
/opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/fzf.rb
/opt/homebrew/bin/fzf
/opt/homebrew/bin/fzf-tmux
/opt/homebrew/opt/fzf
/opt/homebrew/share/man/man1/fzf-tmux.1
/opt/homebrew/share/man/man1/fzf.1

Realised that /opt/homebrew/opt/fzf was the most likely candidate to hold what I was looking for, and checked with tree
$ tree /opt/homebrew/opt/fzf/
/opt/homebrew/opt/fzf/
├── CHANGELOG.md
├── INSTALL_RECEIPT.json
├── LICENSE
├── README.md
├── bin
│   ├── fzf
│   └── fzf-tmux
├── install
├── plugin
│   └── fzf.vim
├── share
│   └── man
│       └── man1
│           ├── fzf-tmux.1
│           └── fzf.1
├── shell
│   ├── completion.bash
│   ├── completion.zsh
│   ├── key-bindings.bash
│   ├── key-bindings.fish
│   └── key-bindings.zsh
└── uninstall

6 directories, 16 files

So I updated the ~/.fzf.bash to
# Setup fzf
# ---------
if [[ ! "$PATH" == */usr/local/opt/fzf/bin* ]]; then
  export PATH="${PATH:+${PATH}:}/usr/local/opt/fzf/bin"
fi

# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/usr/local/opt/fzf/shell/completion.bash" 2> /dev/null

# Key bindings
# ------------
source "/opt/homebrew/opt/fzf/shell/key-bindings.bash"

Then sourced my ~/.bashrc to get everything loaded
$ source ~/.bashrc

(This last step depends if you have set up a ~/.bashrc - use whats appropriate for your setup)
HTH

Have you upgraded your Mac? The Homebrew prefix for Apple Silicon is /opt/homebrew, so if your .fzf.bash is pointing to /usr/local which is for Intel Mac, please re-run the install script to re-generate the file.
# Should print /opt/homebrew
brew --prefix

# Run install script to re-generate ~/.fzf.bash
$(brew --prefix)/opt/fzf/install

Hi!
I use Mac with Intel processor. So brew is located in /usr/local.
✔ ~ $ brew --prefix
/usr/local
✔ ~ $ tree /usr/local/opt/fzf
/usr/local/opt/fzf
├── CHANGELOG.md
├── INSTALL_RECEIPT.json
├── LICENSE
├── README.md
├── bin
│   ├── fzf
│   └── fzf-tmux
├── install
├── plugin
│   └── fzf.vim
├── share
│   └── man
│       └── man1
│           ├── fzf-tmux.1
│           └── fzf.1
├── shell
│   ├── completion.bash
│   ├── completion.zsh
│   ├── key-bindings.bash
│   ├── key-bindings.fish
│   └── key-bindings.zsh
└── uninstall

6 directories, 16 files
✔ ~ $ fzf --version
0.35.0 (brew)

Can you try manually loading the completion file in your shell and see if the completion works afterwards?
source "/usr/local/opt/fzf/shell/completion.bash"

Yes, it works for me.

I use the following settings for fzf:
[[ -f $HOME/.fzf.bash ]] && \. $HOME/.fzf.bash

You said you already have the code that reads the file. (~/.fzf.bash has the source line for completion.bash). So you'll have to figure out why it's not working as expected.


Broom panics on Git 'branch not fully merged' error

Broom returns a 'panic: exit status 1' upon git error in title. This isn't really helpful so have to figure out how to make the error more descriptive. I don't think this is an issue that broom can handle but the error message should at least be descriptive.

This was fixed with #6, will reopen if the error arises again


Changing stream private does not trigger an event

When a stream's privacy state is changed (public -> invite_only, or the other way around), we don't send an event, and thus clients have no way of knowing this happened.  This is an interesting case, because for clients that were subscribed, they just need to learn that the stream is now private; but for clients that were not subscribed, effectively the stream is disappearing for them, so some thought should go into the structure of the event (also, ideally we'd start keying things off stream IDs, not names, for this).
@showell this is an interesting one.

For public -> private, we can send a simple notification to all members of the realm, and the clients can do the appropriate thing, either simply flipping the bit if they're still subscribed or removing the sub.
For private -> public, I think we need to send separate events to prior subscribers and prior unsubscribers.  Prior subscribers just need to know to flip the bit, so they should get a simple event, but prior unsubscribers will need to get a list of subscribers so that they have subscriber counts and can have the list of subscribers if they want to invite new folks.

@zulipbot claim

Steve's proposed approach sounds good to me.

For the stream/update event, we should send stream_id.

This appears to have been fixed at some point: if I try changing a stream's access permissions from public to private or vice versa, then in a different browser as a different user I get a type: 'stream', op: 'update' event. As described here:
https://zulip.com/api/get-events#stream-update
I am curious what release it was fixed in. It'd be good to know when all the servers we support for mobile can be expected to keep the stream data up to date like this. (There's no Changes entry at https://zulip.com/api/get-events#stream-update . Which isn't too surprising, as I'd guess this happened circa 2018 or 2019, which is before we were systematically recording those.)

I'm not sure when this was fixed, but at this point it's not important given how deep in the past it was.


EntityAbstract one method

If would be useful to have  method one for picking the first result from the find query, instead of constantly doing find and then picking the first result.
// this is the current solution
User::find(['name'=>'foo'])[0];

// this is the proposed solution
User::one(['name'=>'foo']);

findOne($conditions) is the implemented method name, to keep find methods grouped in autocomplete.


Can't retrieve the browser logs file from the mounted folder inside the container.

Problem:
Can't retrieve the browser logs file from the mounted folder inside the container.    The folder is always empty.
Steps:

make a To  directory in the host  root of the host machine
Steps up browser capabilities
setup up browser.json file
Run test

Actual
Go inside the container view the From directory is empty.
Browser capabilities
{
"browserName": "chrome",
"browserVersion": "88.0",
"goog:chromeOptions": {
"args": [
"--log-file=./from/example.log",
"--log-level=2",
Safari/537.36"
]
},
"selenoid:options": {
"enableVNC": true,
"enableVideo": false,
"screenResolution": "1280x1024x24"
},
"acceptInsecureCerts": true
}
Browser.json File
{
"chrome": {
"default": "88.0",
"versions": {
"88.0": {
"image": "selenoid/vnc:chrome_88.0",
"port": "4444",
"path": "/",
"volumes": ["/to:/from"],
"shmSize": 268435456
}
}
},
}

Related issue: https://github.com/aerokube/selenoid/issues/1082


Disable display compositor or switch to xrender

Hello ,
I'm wondering if it is possible to disable screen compositing in this Chromium OS or just in chrome os in general.
The gpu compositing that is in place is causing graphical glitches and slow performance on these images on the rpi 4.
The raspberry pi 4 does not seem to currently work properly with opengl / GLX compositing and it runs wayyy better with it disabled if you can handle a little bit of tearing ( which is happening anyway with the current compositor)
So is it possible to disable compositing or switch it from OpenGL to xrender instead?
Thank you.

Thank you for mentioning this. I have the same issue. It's bearable but very annoying.

The recent version of Chromium OS based on "freon" which is a graphic stack combined of  DRI/GBM/OpenGL ES(or VULKAN).
We use the latest raspberry pi official kernel. If the graphic driver in the kernel doesn't provide stable and efficient performance, we can do nothing about it.

Hello , I'm not talking about the graphics driver in general I'm talking about opengl based compositors specifically.   For example the raspberry pi 4 has the same problem in Linux when using the "Compton" opengl compositor or any opengl compositor.   I'm asking you if it is possible to disable the opengl compositor in chrome os.

@Discombobulated88 Chromium os neet hardware acceleration, there are no other options. I'm sad as you were. When I got the brand new rpi4, I thought it will get the same performance as  rk3288, even better. But at last, It's worst than rpi3. We need more patience to wait for the new driver.

It can still have hardware acceleration but the window manager compositor needs to be changed to xrender instead if opengl

Deviation of the roadmap of vanilla Chromium OS is not the intention of this project, especially on the graphics stack which is a huge undertaking. Sorry friend, if you want to re-marry Chromium OS with X you are probably on your own.
Closing the issue.


options parameter in serialize function is not supported by index et show function

In the documentation, it seems to be an options parameter that be handled in the paginator

but the code does not handle it.
It is never sent to the serializer.
Please, see :+1: https://github.com/jeregrine/jsonapi/blob/master/lib/jsonapi/view.ex#L261

It is sent to the serializer if you pass the :options key to render("index.json", %{...}).


chore: weekly dependency update

Redis instrumentation now includes command arguments in an anonymized form. SPLUNK_REDIS_INCLUDE_COMMAND_ARGS can still be used to reveal the full statement. Fixed the tests for this.

Codecov Report
Base: 85.21% // Head: 85.21% // No change to project coverage :thumbsup:

Coverage data is based on head (81f8166) compared to base (d881c3d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #654   +/-   ##
=======================================
  Coverage   85.21%   85.21%
=======================================
  Files          27       27
  Lines        1204     1204
  Branches      273      273
=======================================
  Hits         1026     1026
  Misses        178      178

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


how to jump to the item in the location list rendered by :GoReferrers

I tried "Enter", Ctrl+], :cnext and Ctrl+n.

let g:go_list_type = "quickfix"


Add CommunityAmmunitionLibrary and fix its dependent mods.

Original https://github.com/KSP-CKAN/NetKAN/pull/2347

LGTM! Merging with Thanks! :D


Add --max-models command line option

Suggested by @nielsdrost. For testing purposes it would be useful to have a --max-models command line option that will limit the number of models used in the namelist. This avoids having to create 'short' versions of namelists for development (e.g. esmvaltool/namelists/namelist_perfmetrics_CMIP5_short.yml).

The option should make sure that the reference/alternative model is selected in any case.


In java view, failed to submit code

checked submission log, the code sent was the default template, not the one user typed

How do you write your config.cfg?

Pasting config down here:
Chaorans-MacBook-Pro:~ chaoranwang$ cat  ~/.config/leetcode/config.cfg
[leetcode]
username=superchaoran
password=blablabla
language=Java
ext=java # file extention
path=~/program/leetcode # code file directory

It's weird, my configuration is the same in 'language' and 'ext' with yours. Did you use pip to install the package or compile the source code?

@chishui I cloned the code into my workspace and compile it

Could you update the code and compile it again?

My local version is on the master branch and up to date. The last commit was by you on Sunday. :)

Another friend of mine also experiences the same issue. I am trying to reinstall and see how.

OK, I'll investigate this issue.

i just uninstalled and using the pip method.
looks like its submitting the template instead of saved code using c++.
though i use java in config:
Chaorans-MacBook-Pro:terminal-leetcode chaoranwang$ cat ~/.config/leetcode/config.cfg
[leetcode]
username=superchaoran
password=blablabla
language=Java
ext=java # file extention
path=~/program/leetcode # code file directory

Thx, if you need any help. I can provide you with log details. @chishui

Yeah, there is a bug in last pip package, it is fixed in code but I haven't update pip package, so the source code should use java code.

gotcha. redownloaded the source code and compile. gives this:

So if you press 'e' to edit code you can see the code you input before?

Exactly, pressing e has no problem shown previously wrotten code.

Sent you an invitation on gtalk

try<EMAIL_ADDRESS>i didn't receive your invitation :)

Google hangouts doesn't have a function to resend invitation..
Could you help me add some log in 'submit_code' to see if the filepath and code from the file are correct?

Added you on hangout. Trying to log it.

@chishui thx, problem solved. turns out we can't include # in config, will take # as path 👍

Great, thx


DOC enable jupyterlite for the gallery

Enable jupyterlite for the sphinx-gallery.
Issue with PyArrow

pyarrow cannot be installed with micropip

https://github.com/apache/arrow/issues/34996
https://github.com/pyodide/pyodide/issues/2933

I have good hope that the following PR should work.


MV libs

This branch consist of two Links to Drop in libraries, MVAutocompletePlaceSearchTextField, MVMaterialView

MV Libs added


Randomness in torch.compliance.kaldi.fbanks

🐛 Bug
Fbanks computed on same waveform change from one run to another.
SOLVED:  My bad, I didn't know that the dither parameter, if different from zero, introduces noise. For some reason I cannot comment anymore my issue, thank you for answering.
To Reproduce
Steps to reproduce the behavior:
Compute the filterbanks on same waveform multiple times and observe the absolute difference.
import torch
import torchaudio
import torchaudio.compliance.kaldi as kaldi

waveform, sample_rate = torchaudio.load('00001.wav')

for i in range(5):
    feat1 = kaldi.fbank(waveform=waveform, sample_frequency=sample_rate, num_mel_bins=40)
    feat2 = kaldi.fbank(waveform=waveform, sample_frequency=sample_rate, num_mel_bins=40)
    print(torch.abs(feat1-feat2).sum())

returns:
tensor(21854.6953)
tensor(21868.1934)
tensor(21707.9492)
tensor(21902.4062)
tensor(21755.6875)

Expected behavior
The difference among one run to another should be zero.
Environment
Tested on three different computers.
Computer 1
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 18.04.3 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: version 3.10.2
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: 10.0.130
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 418.56
cuDNN version: Could not collect
Versions of relevant libraries:
[pip3] numpy==1.18.1
[pip3] numpydoc==0.9.2
[pip3] torch==1.4.0
[pip3] torchaudio==0.4.0
[pip3] torchstat==0.0.7
[pip3] torchsummary==1.5.1
[pip3] torchvision==0.5.0
[conda] cudatoolkit               10.1.243             h6bb024c_0
[conda] mkl                       2019.5                      281    conda-forge
[conda] mkl-service               2.3.0            py37h516909a_0    conda-forge
[conda] mkl_fft                   1.1.0            py37hc1659b7_1    conda-forge
[conda] mkl_random                1.1.0            py37hb3f55d8_0    conda-forge
[conda] numpy                     1.18.1           py37h95a1406_0    conda-forge
[conda] numpy-base                1.18.1           py37h2f8d375_1
[conda] numpydoc                  0.9.2                      py_0    conda-forge
[conda] torch                     1.4.0                    pypi_0    pypi
[conda] torchaudio                0.4.0                    pypi_0    pypi
[conda] torchstat                 0.0.7                    pypi_0    pypi
[conda] torchsummary              1.5.1                    pypi_0    pypi
[conda] torchvision               0.5.0                    pypi_0    pypi
Computer 2
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 16.04.6 LTS
GCC version: (Ubuntu 6.3.0-21ubuntu1~16.04.york0) 6.3.0 20170628
CMake version: version 3.5.1
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: TITAN Xp
Nvidia driver version: 418.39
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.0.5
Versions of relevant libraries:
[pip3] numpy==1.14.5
[conda] mkl                       2019.4                      243
[conda] mkl-service               2.3.0            py37h516909a_0    conda-forge
[conda] mkl_fft                   1.1.0            py37hc1659b7_1    conda-forge
[conda] mkl_random                1.1.0            py37hb3f55d8_0    conda-forge
[conda] numpy                     1.18.1           py37h95a1406_0    conda-forge
[conda] numpy-base                1.18.1           py37h2f8d375_1
[conda] numpydoc                  0.9.2                      py_0    conda-forge
[conda] torch                     1.4.0                    pypi_0    pypi
[conda] torchaudio                0.4.0                    pypi_0    pypi
[conda] torchfile                 0.1.0                      py_0    conda-forge
[conda] torchsummary              1.5.1                    pypi_0    pypi
[conda] torchvision               0.5.0                    pypi_0    pypi
Computer 3
Collecting environment information...
PyTorch version: 1.4.0
Is debug build: No
CUDA used to build PyTorch: 10.1
OS: Ubuntu 18.04.4 LTS
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
CMake version: Could not collect
Python version: 3.7
Is CUDA available: Yes
CUDA runtime version: Could not collect
GPU models and configuration: GPU 0: GeForce 940M
Nvidia driver version: 430.64
cuDNN version: Could not collect
Versions of relevant libraries:
[pip] numpy==1.18.1
[pip] numpydoc==0.9.2
[pip] torch==1.4.0
[pip] torchaudio==0.4.0
[pip] torchstat==0.0.7
[pip] torchsummary==1.5.1
[pip] torchvision==0.5.0
[conda] _pytorch_select           0.1                       cpu_0
[conda] blas                      1.0                         mkl    conda-forge
[conda] cudatoolkit               10.1.243             h6bb024c_0
[conda] libblas                   3.8.0                    14_mkl    conda-forge
[conda] libcblas                  3.8.0                    14_mkl    conda-forge
[conda] liblapack                 3.8.0                    14_mkl    conda-forge
[conda] liblapacke                3.8.0                    14_mkl    conda-forge
[conda] mkl                       2019.4                      243
[conda] mkl-service               2.3.0            py37h516909a_0    conda-forge
[conda] mkl_fft                   1.1.0            py37hc1659b7_1    conda-forge
[conda] mkl_random                1.1.0            py37hb3f55d8_0    conda-forge
[conda] numpy                     1.18.1                   pypi_0    pypi
[conda] numpydoc                  0.9.2                      py_0    conda-forge
[conda] pytorch                   1.4.0           py3.7_cuda10.1.243_cudnn7.6.3_0    pytorch
[conda] torch                     1.4.0                    pypi_0    pypi
[conda] torchaudio                0.4.0                    pypi_0    pypi
[conda] torchstat                 0.0.7                    pypi_0    pypi
[conda] torchsummary              1.5.1                    pypi_0    pypi
[conda] torchvision               0.5.0                    pypi_0    pypi

Using test/assets/kaldi_file_8000.wav, I got the following result.
tensor(0.)
tensor(0.)
tensor(0.)
tensor(0.)
tensor(0.)

I assume you resolved this somehow.

Hi
Using test/assets/kaldi_file_8000.wav, I got the following result.
tensor(0.)
tensor(0.)
tensor(0.)
tensor(0.)
tensor(0.)

I assume you found the issue somewhere else.

My bad, I didn't know that the dither parameter, if different from zero, introduces noise. Thank you for answering.


ML: Listen folder, detect & blur

Create service to listen for folder /mnt/data/unprocessed_framekm
And once there's new FrameKM package,

read every frame from it with the cursor
run resize, inference & masking for every frame,
prepare JSON file containing the following information for every processed frame:

resizing time
inference time
masking time
hash of model weights
class id
confidence
bounding box info (cx, cy, width, height)
with name of the JSON similar to name of the FrameKM but with '.json' extension

packing all the processed frames into new frameKM in /mnt/data/framekm folder
dropping metadata JSON into /mnt/data/ml_metadata

Currently there is not much error handling.

add error handling when creating and moving files

Also, the python chime only works on newly created framekm files. Do we want to extend that to already existing framekms?


Table iteration form

We have the *for form, but it only works with "numeric for", not with pairs and ipairs. Should we introduce a new form for table iteration; maybe each? Is the star in the name of *for intended to indicate an internal implementation detail, or is there some other meaning?
I noticed that *for takes its arguments in an unusual way: (*for i [begin end] body) instead of keeping i inside the vector like most lisps do. If it were up to me I would implement table iteration as (each [k v (pairs tbl)] (print k v)) where the last element in the vector is the iterator call, and you can bind as many loop locals as the iterator will return. But that's different from the existing *for so I thought I'd ask before implementing.

All of the forms that begin a * are forms that can definitely be subject to change. The leading * was to indicate that in the future, I would like to avoid relying on these too much in written code. The original idea for their existence was to expose them for macros.
Feel free to change them as you want, but i'd like to make it possible to write pretty much all constructs available in standard Lua.
I agree that the *for syntax is a bit weird, and could definitely be expanded to handle iterators.


Bump to 0.2.89

r? @JohnTitor
(rust-highfive has picked a reviewer for you, use r? to override)

Could you also bump the libc-test version?

@JohnTitor Ah, good catch, thank you.
Perhaps we should add a quick test to CI that makes sure those two version numbers match.

Thanks :)
@bors r+

:pushpin: Commit 1a359cff89ca2383a1461ae2c571b2e3b5aa3d51 has been approved by JohnTitor

:hourglass: Testing commit 1a359cff89ca2383a1461ae2c571b2e3b5aa3d51 with merge 508f65a2f87968f14a2b815f1e5537f08c504907...

:sunny: Test successful - checks-actions, checks-cirrus-freebsd-11, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13
Approved by: JohnTitor
Pushing 508f65a2f87968f14a2b815f1e5537f08c504907 to master...


Example Makefile dependent actions

Related to https://github.com/kaustubh-sadekar/OmniCV-Lib/issues/19
cc https://github.com/openjournals/joss-reviews/issues/2533

closing stale PR


test: speed up ci test run & reduce random failures

See https://circleci.com/docs/2.0/parallelism-faster-jobs/
refs 80775
refs 93142
Goals/Description:

reduce random failures - they are rly annoying
speed up test run in ci -> switch from random split by filename to split by timings. Random is not good because it will put x slow tests on a single job
we can only activate 16 parallel jobs per node version (80/5), otherwise they are waiting for one to finish (PER BUILD!)

Before:
node-8: 14m 2s
node-16: 22m 58s
node-14: 23m 14s
node-12: 21m 26s
node-10: 21m 35s
After:
node-8: 6m 32s
node-16: 10m 3s
node-14: 8m 47s
node-12: 8m 27s
node-10: 7m 45s
The whole test runs depends on circle ci being slow/fast and our third party communication (aws etc.)
So you sometimes see they finish after 8mins and sometimes after 12min
Node 16 is the slowest run at the moment. I don't want to spend more time on this for now.
TODO

[x] results.xml has no file name - thats why by-timings does not work
[x] split by timings
[x] why are some tests not running? (shard-metrics, autoprofile)
[x] why aws s3 broken - buckets again?
[x] some single tests run too long
[x] fix new ci reporter output - looks ugly -> use multi
[x] test:mocha -> test:local
[x] npm testci vs test
[x] create ticket for broken collector/test/tracing/cloud/gcp tests

No timing found for "/home/circleci/repo/packages/collector/test/tracing/cloud/gcp/pubsub/test.js"
No timing found for "/home/circleci/repo/packages/collector/test/tracing/cloud/gcp/storage/test.js"

[x] create ticket for profiling test to speed up the test (7mins locally!)

No timing found for "/home/circleci/repo/packages/collector/test/profiling/test.js"

[x] cleanup

tests before: 2625
tests after: 2470
Reasons for running less tests:

We run tests twice in the previous implementation e.g. otel env was wrong and always executed all tests per node version
When the ci globbing did not have results for a package, the npm command run everything as fallback

The shorter the runtime, the less annoying it is to re-run a suite because of a random failure.
The new reporter is officially listed on their docs https://circleci.com/docs/2.0/collect-test-data/
Summary of changes

introduce test:ci - we do not need to generate xml files locally + less bugs if we have two separate commands
split tests which run multiple npm versions into separate files

putting multiple npm versions into a single test makes the test very slow
it is uncomfortable to run a single npm version because you need to manually comment the version out

fixed s3 bucket naming (see cleanup aws script!)
adding split by timings

when you add a new test, circleci has no timing reference. It will run it randomly on any job and next run it will know

Review per commit is easier than looking at the full diff
Merge all commits into main

LGTM 👍
One thing that we should discuss IMO: There is a good bit of code duplication now to make the distribution algorithm of CircleCI happy. But I think we can eat the cake and have it too, in this case -- I added #518 as a suggestion for a pattern that should make CircleCI happy and avoid code duplication.
Let's have a chat tomorrow or next week.


Error in prepDE.py

Hi,
I am using prepDE.py for getting an estimation matrix with Deseq2 but I encounter this error:
(0, 'RNAseq_33-C')
(1, 'RNAseq_33-S')
Traceback (most recent call last):
File "/home/nourelislam/anaconda3/envs/ngs/bin/prepDE.py", line 255, in
geneDict.setdefault(geneIDs[i],{}) #gene_id
KeyError: '33-S.28019.1'
Please Help @gpertea

This seems to be the same issue with #234 and #232, so it should be fixed by v2.0.4 release.


Symlinks aren't created for all buffers

Describe the bug
Hey there,
recently I noticed an issue, related to symlink_path mechanism in td-agent/fluentd receiver agent. It seems like td-agent successfully receives two (or more) log streams from k8s cluster and creates two (or more) buffers for them, but it always create only one symlink in provided directory.
From agent's logs we can read, that td-agent recognized and created two buffers for two log streams:

2023-10-02 15:00:04 +0200 [debug]: #0 Created new chunk chunk_id="606bb5a4e90896a0fcff5b8d2d5c1b83" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1696251600, tag="k8s.cilium-sxjgc.stdout.log", variabl
es={:"$.kubernetes.namespace_name"=>"kube-system", :"$.kubernetes.pod_name"=>"cilium-sxjgc", :stream_group=>"stdout", :"$.kubernetes.container_name"=>"fwlogs-prod"}, seq=0>
2023-10-02 15:00:04 +0200 [debug]: #0 Created new chunk chunk_id="606bb5a4e95bcad718a493023a4caa68" metadata=#<struct Fluent::Plugin::Buffer::Metadata timekey=1696251600, tag="k8s.cilium-sxjgc.stdout.log", variabl
es={:"$.kubernetes.namespace_name"=>"kube-system", :"$.kubernetes.pod_name"=>"cilium-sxjgc", :stream_group=>"stdout", :"$.kubernetes.container_name"=>"fwlogs-tech"}, seq=0>

And when I checked buffers' directory, both of them was present and was continuously written:

ls -la /opt/logs/.fluentd_buffers/1/buffer.b606bb5a4e95bcad718a493023a4caa68.log
-rw-r--r-- 1 td-agent td-agent 76023492 10-02 15:46 /opt/logs/.fluentd_buffers/1/buffer.b606bb5a4e95bcad718a493023a4caa68.log
ls -la /opt/logs/.fluentd_buffers/1/buffer.b606bb5a4e90896a0fcff5b8d2d5c1b83.log
-rw-r--r-- 1 td-agent td-agent 1696307 10-02 15:46 /opt/logs/.fluentd_buffers/1/buffer.b606bb5a4e90896a0fcff5b8d2d5c1b83.log

So far so good. But I configured td-agent to create symlinks for me. And it also works, but only for one buffer:

tree /opt/logs/k8s/kube-system/current/cilium-sxjgc
/opt/logs/k8s/kube-system/current/cilium-sxjgc
└── fwlogs-tech
└── stdout
└── stdout.log -> /opt/logs/.fluentd_buffers/1/buffer.b606bb5a4e95bcad718a493023a4caa68.log

The second buffer exists, but symlink wasn't created. I didn't find anything interesting in td-agent logs. It just skips creating symlink for the other buffer for some reason.
In the meantime I recreated my k8s pods many times and td-agent always creates only one symlink. It's definitely not related to my system or permissions. Seems like td-agent internal logic issue...
To Reproduce
To reproduce this issue, use td-agent.conf provided below.
Expected behavior
Symlinks should be created for every open buffer.
Your Environment
- Fluentd version: 1.16.2
- TD Agent version: 4.5.1
- Operating system: Oracle Linux Server release 7.9
- Kernel version: 5.4.17-2136.318.7.1.el7uek.x86_64

Your Configuration
# Enable RPC endpoint (control API)
<system>
  log_level debug
  rpc_endpoint <IP_ADDRESS>:24444
</system>

# Enable monitor_agent (monitoring API)
<source>
  @type monitor_agent
  bind <IP_ADDRESS>
  port 24220
</source>

# Define input (listening on 24224)
<source>
  @type forward
  @log_level debug
  port 24224
</source>

<match k8s.**>
  @type file
  path /opt/logs/${tag[0]}/${$.kubernetes.namespace_name}/%Y-%m/%d/${$.kubernetes.pod_name}/${$.kubernetes.container_name}/${stream_group}/${stream_group}.%Y-%m-%d-%H
  symlink_path /opt/logs/${tag[0]}/${$.kubernetes.namespace_name}/current/${$.kubernetes.pod_name}/${$.kubernetes.container_name}/${stream_group}/${stream_group}.log
  append true
  compress gzip
  <format>
    @type single_value
    message_key log
  </format>
  <buffer time,tag,$.kubernetes.namespace_name,$.kubernetes.pod_name,stream_group,$.kubernetes.container_name>
    @type file
    path /opt/logs/.fluentd_buffers/1
    timekey      1h
    timekey_wait 10s
    retry_max_interval 30
    retry_forever true
  </buffer>
</match>

Your Error Log
There isn't any error in the logs.

Additional context
No response

Well, seems like buffers always use tag as an unique ID. In my example, both log streams had same tag (but other variables, which should be included and separated by the buffers). Anyway, I removed 'tag' from  section and now it works properly. But what's the point of defining custom variables for the buffer, if it still uses 'tag' as a determinant of uniqueness?

Thank you for your report!
I think that the symlink path should be unique for each buffer.
So you will get the expected result by changing the symlink path tag from tag{0} to tag.
<match k8s.**>
  @type file
  path /opt/logs/${tag[0]}/${$.kubernetes.namespace_name}/%Y-%m/%d/${$.kubernetes.pod_name}/${$.kubernetes.container_name}/${stream_group}/${stream_group}.%Y-%m-%d-%H
  symlink_path /opt/logs/${tag}/${$.kubernetes.namespace_name}/current/${$.kubernetes.pod_name}/${$.kubernetes.container_name}/${stream_group}/${stream_group}.log
  append true
  compress gzip
...
</match>

But it may be a bug that there is no check for the setting in symlink_path.

#4502

From this fix, warnings occur when the setting is insufficient.


Correct code does not pass in 'Nest an Anchor' waypoint

Challenge Waypoint: Nest an Anchor Element within a Paragraph has an issue.
User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 The test expects to find your <p> up there with the original <a>, so adding it down at the bottom causes the test to fail.
However, this is the third time in a week or so that I've seen this same issue reported, so I propose adding some clarifying language to the waypoint that lets the user know they should not be moving existing <a> tag, only wrapping it.

It worked. Indeed the language should be more clarifying.

Great, just reading your your response. Unsure if you have added clarifying language yet but I have run into the same isue...as of two days ago, 10/21...

The change has been pulled into the staging branch but hasn't been pushed into the production code yet. It shouldn't be too long before it is.


Adds convenience methods for Accept request body

Codecov Report

Merging #275 into master will increase coverage by 0.04%.
The diff coverage is 96.15%.

@@            Coverage Diff             @@
##           master     #275      +/-   ##
==========================================
+ Coverage   86.81%   86.85%   +0.04%
==========================================
  Files          88       88
  Lines        5658     5684      +26
==========================================
+ Hits         4912     4937      +25
- Misses        746      747       +1

Impacted Files
Coverage Δ

lib/src/http/http_controller_internal.dart
98.49% <ø> (ø)
:arrow_up:

lib/src/http/request.dart
97.24% <96.15%> (-0.35%)
:arrow_down:

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 d76c016...62a2542. Read the comment docs.


Tests don't run in Angular 16 using Jasmine/Karma

Command
test
Is this a regression?

[X] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
15
Description
The project compiles well, and the tests worked in version 15 of Angular. After running ng test I am receiving the following error:
ng-virtual-main.js!=!data:text/javascript;base64 ...Unknown string like token - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):  ...Unknown string like token s missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Minimal Reproduction
After running ng test I am receiving the following error:
ng-virtual-main.js!=!data:text/javascript;base64 ...Unknown string like token - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):  ...Unknown string like token s missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Exception or Error
`ng-virtual-main.js!=!data:text/javascript;base64 ...Unkown string like token - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):  ...Unkown string like token s missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.`

Your Environment
npm ls @ngtools/webpack

`└─┬<EMAIL_ADDRESS>  └──<EMAIL_ADDRESS>
ng version

`Angular CLI: 16.2.4
Node: 18.15.0
Package Manager: npm 9.5.0
OS: linux x64

Angular: 16.2.7
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                              Version
--------------------------------------------------------------
@angular-devkit/architect            0.1602.4
@angular-devkit/build-angular        16.2.4
@angular-devkit/core                 16.2.4
@angular-devkit/schematics           16.2.4
@angular/cdk                         16.2.6
@angular/cli                         16.2.4
@angular/material                    16.2.6
@angular/material-date-fns-adapter   16.2.6
@schematics/angular                  16.2.4
rxjs                                 7.5.7
typescript                           4.9.3
zone.js                              0.13.3
`

Anything else relevant?
No response

This seems like a bug but we'll need to look at a reproduction to find and fix the problem. Can you setup a minimal repro please?
You can read here why this is needed. A good way to make a minimal repro is to create a new app via ng new repro-app and adding the minimum possible code to show the problem. Then you can push this repository to github and link it here.
This might be related to your directory structure so its really important to get an accurate repro to diagnose this.

I haven't managed to reproduce the error in another project yet, but when I decoded the 'unknown string' I received something like this in case it helps:
  import { getTestBed } from '@angular/core/testing';
  import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting,
   } from '@angular/platform-browser-dynamic/testing';

  // Initialize the Angular testing environment.
  getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
    errorOnUnknownElements: true,
    errorOnUnknownProperties: true
  });

Hello @alan-agius4 here is the small app where you can get the error when running ng test . I hope it is of great help.
https://github.com/apangr/repro-app

This seems to be caused by the allowJs tsconfig option.

well, in my project I have some .js files and I will have them until I have time to create an npm package, if I exclude them from the test can it work? or is it necessary to remove the enableJs option and files?

It is necessary to remove the allowJs option until a fix is provided.

ok thanks for your help

I have also come across this issue. Will it be fixed anytime soon?

+1

Same issue....

FYI, changing allowJs from true to false fixed it for me. Fortunately, I didn't have any JS files and don't remember why it was there to begin with.

Luckily I already migrated away from Karma several years ago to Jest. Which works much better now and also works well with Angular. Angular also has a builder for that: @angular-builders/jest:run.

I can confirm if I comment out the allowJs from tsconfig.json then I can run tests.

FYI, changing allowJs from true to false fixed it for me. Fortunately, I didn't have any JS files and don't remember why it was there to begin with.

I am guessing it is the project defaults in modern angular. We also encountered the issue and didn't even know that setting exists.

Same problem with Angular 18.
A found a simple workaround.
If you look at https://github.com/angular/angular-cli/blob/073e81ecfbde768c1c4e9fa243bf4a0af08eaf8d/packages/angular_devkit/build_angular/src/builders/karma/browser_builder.ts#L47 you can see that the missing Javascript is added only if !options.main.
Solution is to decode javascript:
data:text/javascript;base64,CiAgaW1wb3J0IHsgZ2V0VGVzdEJlZCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUvdGVzdGluZyc7CiAgaW1wb3J0IHsKICAgIEJyb3dzZXJEeW5hbWljVGVzdGluZ01vZHVsZSwKICAgIHBsYXRmb3JtQnJvd3NlckR5bmFtaWNUZXN0aW5nLAogICB9IGZyb20gJ0Bhbmd1bGFyL3BsYXRmb3JtLWJyb3dzZXItZHluYW1pYy90ZXN0aW5nJzsKCiAgLy8gSW5pdGlhbGl6ZSB0aGUgQW5ndWxhciB0ZXN0aW5nIGVudmlyb25tZW50LgogIGdldFRlc3RCZWQoKS5pbml0VGVzdEVudmlyb25tZW50KEJyb3dzZXJEeW5hbWljVGVzdGluZ01vZHVsZSwgcGxhdGZvcm1Ccm93c2VyRHluYW1pY1Rlc3RpbmcoKSwgewogICAgZXJyb3JPblVua25vd25FbGVtZW50czogdHJ1ZSwKICAgIGVycm9yT25Vbmtub3duUHJvcGVydGllczogdHJ1ZQogIH0pOwo=

You will have
  import { getTestBed } from '@angular/core/testing';
  import {
    BrowserDynamicTestingModule,
    platformBrowserDynamicTesting,
   } from '@angular/platform-browser-dynamic/testing';

  // Initialize the Angular testing environment.
  getTestBed().initTestEnvironment(BrowserDynamicTestingModule, platformBrowserDynamicTesting(), {
    errorOnUnknownElements: true,
    errorOnUnknownProperties: true
  });

In src folder, add a test.ts file with the previous content.
In angular.json file, in field architect > test > options, add:
            "main": "src/test.ts",

The problem should disappear.


adding case for negative scale

Modifying code for extraction of scale matrix, adding case for negative scale
@thomasflynn  @liaxim Please review the changes.

Looks good.

ok, can you fix the tab?  consistent spacing makes diffs easier.

Math for this change is from
http://stackoverflow.com/questions/33538035/extracting-scale-matrix-from-modelview-matrix

Take the scaling matrix S = diag([-1, 1, 1, 1]) as an example, your algorithm will output S' = diag([-1, -1, -1, 1]). They are not equivalent.
For example, v = [1, 2, 3, 1], S * v = [-1, 2, 3, 1] but S' * v = [-1, -2, -3, 1]. The y and z values are flipped.
The reason is stated in http://stackoverflow.com/questions/33538035/extracting-scale-matrix-from-modelview-matrix, the signs of xs, ys and zs are the same. When they are negative, either "one" or "three" axis are flipped. But you don't know which case is true. So this algorithm does not work either.
Please correct me if I am wrong...

@danke-sra : Yes, you are right. The fix is not complete and won't work if one of axis is inverted as we can't distinguish between rotation and scaling. However, this fix handles case for negative scale for all the axis, I am working on the algorithm for the missing case.


Not working on Rewards.GG v2.0

It just says "LOADING THIS SHIT!"

Hi,
Unfortunately since latest rewards.gg update, the script is completely broken. Please disable it to enjoy the new site update.
I'll do an update when I will have the time, unfortunately I'm not available for the whole next month. I still accept Pull Requests, so if someone knows how to code html & js, feel free to contribute to this project.
Hope you'll understand.

@DeathMiner I understand what you are going through. I would love to colaborate once I am through with exams(2-3 weeks more). Till then any one who wants to mine can use an auto-clicker( I personally use  this one https://sourceforge.net/projects/orphamielautoclicker/ ) Just set it on 20 minutes and 30 seconds over the get tickets button while you are away... p.s don't do it too much or you might face a ban..  ;)

The problem with the autoclicker is that it is not recognized as a human, because firstly the mouse is not moving, & secondly it is clicking the Get Tickets button at regular intervals. I will do on my side a system to "emulate" human behavior by clicking on the Get Tickets button randomly.

As far as i know they do not check for mouse movement but the auto clicker is pretty random but not too random as the site is never in sync with it so sometimes it may click before or after 3-4 seconds. And I have been using this after the update came out for 7 hrs a day and  have mined over 28k. But a real code would work better as it would be more random and you would not have to keep the mouse at one place.

I did not check their code. But they could be checking click location easily. It is close to impossible to click to same pixel twice as a human just to mention 1 of the things they could do. For me, Im waiting for DeathMiner as I dont wanna risk the ban. Detecting a simple autoclicker is way easier then 1 could imagine.
P.S. Even if they dont check click loc. 1 update to do that and we would get all banned. I doubt DeathMiner would want that.

 I too do not recommend using a auto-clicker but if someone is too eager to get tickets it's their choice and also some people have been soft banned for 4-5 hours because they left the site on auto-click for 1-2 days... from what i have read on the chat.

Because I noticed there was two modes, maybe the script will only work on slow mode, because in this mode it is allowed to be afk, and the script acts like someone that is afk. It might not get the best amount of tickets, but you can always switch off the script to farm in fast mode.

1 thing is for certain. Part of it can be automated as it make a 'beep' sound when it's ready to be collected. Maybe just need a RNG to make it pick it up between 1-15 sec after it's rdy to be collected.
If the slow mode is what I think it is. Im sure it would be the best bet to stay on the safe course.

Hey nice script but an update coming soon ? :x

Btw. It seems that G-Recaptcha resets after 20min so the bot-protection is useless. Its made for fast spam and not for 20min-click.


Perl LSP fails to intialize

When attempting to edit a remote perl file, perlpls fails to initialize on the file.
Netman log
lsp.log
It looks like the suggested change from this commit didn't quite work.
Error:
[ERROR][2022-03-28 07:57:04] .../vim/lsp/rpc.lua:420    "rpc"   "pls"   "stderr"    "Can't locate object method \"file\" via package \"URI::sftp\" at /usr/local/share/perl/5.30.0/PLS/Parser/Document.pm line 68, <DATA> line 1.\n"

Im going to close this out as there is just no feasible way to deal with this. At some point in the future I am going to consider how to make Netman expose remote file systems to external LSPs but that is well past backlog state. Sorry perl :(


Make the error state of the Edit display name input more descriptive

API Services Portal Issue
User Story
As an API provider,
I want to understand the requirements of a Gateway display name when editing it in the Services Portal
so that I can successfully update the Gateway display name.
Test Case
ENV

[x] DEV
[x] TEST
[ ] PROD

TESTCASE
Create a Gateway, navigate to the details page (My Gateways > Gateway) and select the Edit button beside the current display name. Interact with the form input and provide an updated display name.
EXPECTED

Inputting a display name that does not satisfy the requirements results in an error state and an input description with the requirements to appear.
ACTUAL

Providing a display name (>3 characters) that does not satisfy the requirements results in the following toast message only after the form is submitted:

No updates to the form input are present.
Notes
The error state is currently displayed when the input name is less than 3 characters.

The Save action in the dialog is also disabled.

so is the missing piece more validation (like to include special characters) in the front end?

I think so, looks like there is only validation for >3 characters in the component right now.

And my screenshot also conveniently illustrates something weird with the hover state of the disabled Save button, though I'm not sure what's going on as it looks like it just uses the isDisabled prop from the Chakra button.

And my screenshot also conveniently illustrates something weird with the hover state of the disabled Save button (it's invisible?), though I'm not sure what's going on as it looks like it just uses the isDisabled prop from the Chakra button.

Whoa I didn't even understand what you were showing until I looked at it! Oddly this only happened once for me, and now it's the expected:

I bet that is a NextJS (server side) error. I can't recreate it even in a private window.
Another bug with the edit dialog (which I will add to the description) - if you click cancel, it does not clear the text in the input.

@Elson9 @ikethecoder oops, I'm bad at Git and made some commits on the wrong branch. I was then trying to cherry pick them over to a new feature branch but they ended up on dev. 🤦♂
@timng-bcgov please also review on dev. Should be live shortly.

Tseted out in dev, looks good


[scann] How to save the searcher?

Is there a way to save scann.scann_ops.py.scann_ops_pybind.ScannSearcher? Pickle solution failed (I tried joblib).
Thank you.

Yes you can with the serialize method on the ScannSearcher.  Regarding to the issue #397 this is only possible with the non-tensorflow version of the searcher.
# create serialize target dir
os.makedirs('.scann_artefacts/glove/', exist_ok=True)

# serialize the searcher
searcher.serialize('.scann_artefacts/glove/')

# later... restore the searcher

# load the earcher with the dataset and the artefacts dir
searcher = scann.scann_ops_pybind.load_searcher(
                normalized_dataset,
                '.scann_artefacts/glove/')

@DavidWiesner which version are you using? In version 1.1, serialize method crashes for me even in following dummy scenario:
# coding: utf-8
import numpy as np
import os

import scann
import time

start = time.time()
train = np.random.rand(1_000_000, 768)

searcher = scann.scann_ops_pybind.builder(
    db=train,
    num_neighbors=10,
    distance_measure="dot_product") \
    .tree(
    num_leaves=2000,
    num_leaves_to_search=100,
    training_sample_size=250_000) \
    .score_ah(
    dimensions_per_block=2,
    anisotropic_quantization_threshold=0.2) \
    .reorder(reordering_num_neighbors=100).build()
end = time.time()
print(f"Indexed in {(end - start) / 60} minutes!")

os.makedirs('.scann_artefacts/', exist_ok=True)
searcher.serialize(f'.scann_artefacts/serialize_test')

produces the output:
2020-10-01 11:52:06.382858: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'libcudart.so.10.1'; dlerror: libcudart.so.10.1: cannot open shared object file: No such file or directory
2020-10-01 11:52:06.382881: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2020-10-01 11:52:18.600410: I scann/partitioning/partitioner_factory_base.cc:58] Size of sampled dataset for training partition: 249544
2020-10-01 11:55:38.117967: I ./scann/partitioning/kmeans_tree_partitioner_utils.h:89] PartitionerFactory ran in 3m19.517490462s.
Indexed in 5.038116590181986 minutes!
Traceback (most recent call last):
  File "/home/ifajcik/PycharmProjects/QA/fit_qa/scripts/pruning/scann_pruning.py", line 27, in <module>
    searcher.serialize(f'.scann_artefacts/serialize_test')
  File "/opt/anaconda3/envs/qaenv/lib/python3.6/site-packages/scann/scann_ops/py/scann_ops_pybind.py", line 56, in serialize
    self.searcher.serialize(artifacts_dir)
RuntimeError: Failed to extract SingleMachineFactoryOptions:

@MFajcik I have used scann in version 1.0. But the problem is you will store your results in .scann_artefacts/serialize_test but this directory was not created yet.
os.makedirs('.scann_artefacts/serialize_test', exist_ok=True)
searcher.serialize(f'.scann_artefacts/serialize_test')

will do the job

I was able to serialize my model in version 1.0, but in 1.1 nothing gets saved to the serialize directory.

@MFajcik Have you managed to get it working? Having the same issue, and the suggested by @DavidWiesner brings the same error.

IIRC, it was just that serialize expected folder name, not file name. Doing what @DavidWiesner mentioned in the last post worked for me.

After saving, I load the numpy searcher and then use the searched_batched method:
neighbors, distances = searcher.search_batched(data)
But it's giving me this error:
AttributeError: 'ScannSearcher' object has no attribute 'searched_batched'
Any idea why this could be occurring? I'm loading this searcher within a particular python function, which is called by another function.

@MFajcik I have used scann in version 1.0. But the problem is you will store your results in .scann_artefacts/serialize_test but this directory was not created yet.
os.makedirs('.scann_artefacts/serialize_test', exist_ok=True)
searcher.serialize(f'.scann_artefacts/serialize_test')

will do the job

By doing so, then can you load again the searcher. With score_ah present in the creation, it complains about a missing dataset if exact reorder is used.

@Charlyo Yes, I'm able to load the searcher. It gives me error in searcher.search_batched()

@pseudonymmm try to load again the example with any input. Are you able to load it?

Yes I'm able to load for this example and even the search_batched() method is working.

The error is only occurring when I'm using script. searcher.search_batched() method is working fine when used in a notebook. I need to use a script though. What could be the issue?

@DavidWiesner, I am using  ScaNN version 1.2.5. However, I am not able to save the serialized version of the searcher. I have used both numpy and tf approaches. For tf approach, I have even this error that the searcher does not have serialize_to_module().
record_count = normalized_dataset.shape[0]
print("start_reasercher")
start = time.time()
searcher = (
    scann.scann_ops_pybind.ScannSearche.builder(normalized_dataset, 10, "dot_product")
    .tree(
        num_leaves=record_count,
        num_leaves_to_search=record_count,
        training_sample_size=record_count,
    )
    .score_ah(2, anisotropic_quantization_threshold=0.2)
    .reorder(100)
    .build())

os.makedirs('.scann_artefacts/scann_index', exist_ok=True)
searcher.serialize(f'.scann_artefacts/scann_index')

Inside the directory I have 'scann_assets.pbtxt' and I have this error RuntimeError: Failed reading scann_config.pb: Failed to open file .scann_artefacts/scann_index/scann_config.pb.
Any suggestion for that?

Update on my question: I was able to train and save ScaNN using the TensorFlow implementation available at: https://www.tensorflow.org/recommenders/examples/efficient_serving
I'd like to highlight two important notes:

If you are using ScaNN for document indexing, remember to normalize the embeddings before feeding them to the layer.

normalized_dataset = embeddins_array / np.linalg.norm(embeddins_array , axis=1)[:, np.newaxis] record_count = normalized_dataset.shape[0] embeddings = tf.convert_to_tensor(normalized_dataset, dtype=tf.float32)         embedding_dataset = tf.data.Dataset.from_tensor_slices(embeddings) scann_model = tfrs.layers.factorized_top_k.ScaNN(num_reordering_candidates=record_count,                                                    num_leaves_to_search=record_count,                                                    distance_measure='dot_product') scann_model.index_from_dataset(embedding_dataset.batch(32))

Before saving the trained model, be sure to activate the model by making at least one inference. Otherwise, it won't save.
scann_model(query_embedding,top_k)

I hope this information is helpful to others! Cheers!"


[WIP] Add autogluon.common

Issue #, if available:
Description of changes:

Move highly re-usable code to a new autogluon.common module
autogluon.common will depend on very little, and autogluon.core will depend on autogluon.common

TODO:

[x] Ensure CI passes
[x] Move FeatureGenerator and infer_types to autogluon.common (Requires #1376 be merged to avoid conflicts)
[x] Remove pytest dependency from autogluon.common
[x] Move all autogluon.core logic used in autogluon.features out of autogluon.core, make autogluon.features depend on autogluon.common instead.
[ ] Merge after #1397 to simplify addressing of merge conflicts.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Job PR-1386-8 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1386/8/index.html

Job PR-1386-10 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1386/10/index.html

Job PR-1386-12 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1386/12/index.html

Job PR-1386-13 is done.
Docs are uploaded to http://autogluon-staging.s3-website-us-west-2.amazonaws.com/PR-1386/13/index.html


Support closure compiler in the advanced mode

I don't think I'll go for Google Closure Compiler. I'd rather go with TypeScript.


Add option of old voxelwise algorithm for VFA

Previously we switched from a voxelwise to linearized algorithm for VFA: https://github.com/qMRLab/qMRLab/commit/f03e5a0ead4c0ff94d3c25bd7a4502948b1d22d0
While this algorithm works pretty much as well as the old one only faster, there is a small difference that I just hit upon while trying to reproduce my interactive VFA notebook with the latest master branch (it used to point to a 2 year old commit).
Basically, the new algorithm has more circumstances that can lead to NaNs, and for most users in doesn't really matter, but I hit these more in my VFA notebook because I do some low SNR and/or really bad B1 simulations in it. To reproduce the graphs from my book chapter / notebook, the change in this PR is needed to give me the option of using the old algorithm (which can be selected by changing the voxelwise mode).

Coverage decreased (-0.01%) to 41.381% when pulling c57d3640b259eaa8c0943a826e451f1241d30bcd on vfa_option into 8e02921d99d9fc670439c63e4afcb329e9d091f0 on master.


modules: thrift: private includes and posix app conformance

Do not export Thrift header paths to the global build / include paths and define the necessary _POSIX_C_SOURCE application conformance macro.

For _POSIX_C_SOURCE, I have already opened https://github.com/zephyrproject-rtos/zephyr/pull/79873.

For _POSIX_C_SOURCE, I have already opened https://github.com/zephyrproject-rtos/zephyr/pull/79873.

Ah, ok - I can back out that one line then.

Shoot - I wonder what's failing in CI. I was busy most of today and didn't get to check in until now.

CI failure looks unrelated
/opt/toolchains/zephyr-sdk-0.16.8/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd: warning: orphan section `DMA_RAM21' from `zephyr/drivers/pwm/libdrivers__pwm.a(pwm_nrfx.c.obj)' being placed in section `DMA_RAM21'


Propose mrerlison as a reviewer for the pt-br docs

Over the past few months, I have been contributing to the pt-br localization. As a result of my efforts, I would like to be recognized as an official reviewer for the pt-br localization team.
/language pt
/cc @rikatz @stormqueen1990 @edsoncelio @devlware

Can confirm, Erlison has been doing a great job!!
/lgtm
/approve

Erlison is doing a great job with reviews for the Portuguese localization! 😃
Thanks for your work!
/approve

+1, Erlison is doing a great job and his work is helping the translate development for pt_BR.

/approve


open Popup with mouse over the Notify Icon

Hi Philipp,
the ToolTip can be opened with mouse over the Notify Icon, but the Popup only works with a click.
How I can also open the Popup with a mouse over the icon?
Best regards

IMO this makes it hard to handle with possible tooltips. Maybe using a tooltip instead a popp makes more sense.


Fixed issue with start button text not displaying correctly

CI: No security warnings found

I didn't think that button macro would translate the localised text correctly. So I created a variable initially. Seems that I didn't need to do that. The localised text works within the button macro. So I removed the extra complexity.


Allow react 18 peerDependency for @mui/styles

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Steps to reproduce 🕹
No response
Current behavior 😯
Currently in @mui/styles, it looks like also allowing react@18 was missed: https://github.com/mui/material-ui/blob/master/packages/mui-styles/package.json#L42
Expected behavior 🤔
That npm doesn't have an issue with installing @mui/styles when on react 18.
Context 🔦
No response
Your environment 🌎

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

@kirbyjs @mui/styles is the legacy JSS-based styling solution (for Material UI v4) and is no longer supported! I'm afraid React 17 is the last version it will work with. Here are the docs about this: https://mui.com/system/styles/basics/


Bump Spectre.Console to v0.45.0

:tada: This issue has been resolved in version 0.4.0 :tada:
The release is available on:

GitHub Release
NuGet Package
Your GitReleaseManager bot :package::rocket:


[CLOSED] Consider using handles instead of pointers for resources

 Issue by Cloudef
Monday Dec 08, 2014 at 16:11 GMT
Originally opened as https://github.com/Cloudef/wlc/issues/2

This makes sense due to uncontrolled environment where dangling pointers are real problem. Handles would be simple indexes. This gives additional bonus that the underlying memory management could be optimized for iterations.

 Comment by Cloudef
Thursday Feb 26, 2015 at 13:06 GMT

Working on this now. Should get rid of most if not all hacks and not so nice things in wlc (excluding some internal apis, like platform abstraction that could be nicer).
Changes public API dramatically as well, however should be easier to wrap to different languages as result.

 Comment by Cloudef
Saturday Mar 07, 2015 at 11:15 GMT

Done @ refactor branch.


Add stefan library

Project URL
https://github.com/appunite/Stefan
Category
UI -> Collection View / TableView
Description
Just edited readme in CollectionView / TableView category where I've added Stefan
Why it should be included to awesome-ios (optional)
Because I've never find a library like Stefan, which is small and very helpful at the same.
Checklist

[x] Only one project/change is in this pull request
[x] Addition in chronological order (bottom of category)
[x] Supports iOS 9 / tvOS 10 or later
[x] Supports Swift 4 or later
[x] Has a commit from less than 2 years ago
[x] Has a clear README in English

@SzymonMrozek Can you add a description on repository?

@vsouza Done.


SEO: Should override canonical URL to use /blog/, not /d/

Currently, Google Search is getting soft 404s.

Researched: issue is that the content for this extension runs after the content for Flarum SEO, depending on which was enabled later. Will fix in a PR to Flarum SEO.


the order of classification

Hi,
here is a confusion matrix getting from logistic regression:

classes
negative
positive

negative
295
0

positive
20
4

But I expect it is:

classes
positive
negative

positive
0
295

negative
4
20

How does linfa determine the order of the classification ? Does it affect the calculation of accuracy and decision ? which column is ground truth and which column is prediction ?

Besides, I find that the confusion_matrix is not stable, it varies each run !
Run the program first time:

Run the program again:


Introduce a linting script

I think that its a good idea to introduce a linting script and integrate it into our test procedure.
This will help us maintain a uniform code style in the repository.
I think that doing this just for ts files is the best option, since src/xterm.js still has LOTS of legacy code.
tslint looks like a good option.

tslint works great in vscode :+1:


can't chat to someone when you've hidden previous conversations

I have a number of conversations in my keybase  chat application for Windows (I use it for work). scrolling through them because a bit of a pain, so I thought it might be easier to 'hide' some of my co-workers that I'd not spoken to in a while, not realizing there isn't an 'unhide'. "Not a problem, I'll just find them in a team chat, open up the chat window and talk to them again."  Easier said than done. When I find the person, the first message I get is "you haven't chatted with '$USER' yet." , which is not true, I just haven't spoken to them in a month. I click 'Start Chatting' and my chat history with them opens, and I can see it with no issues.  I then start typing a message to them, and hit "enter" to send. $USER's chat window with me disappears, and when I ask them if they received the message (I emailed him asking him WTF is he not answering me), and he stated he did not. The only way to 'fix' the problem is to have the person message me, which appears to fix the problem and we can continue to chat as normal.
Steps to Reproduce:
Step 1: Chat to a $USER
Step 2: Open the Command line (powershell or cmd), and type "keybase chat hide $USER"
Step 3: Find $USER again in Keybase, open $USER's profile panel and click 'Chat'  (should error with "you haven't chatted with $USER yet)
Step 4: Click "Start Chatting" (box should open with previous chat history)
Step 5: Type a message to $USER, hit enter (notice how the $USER chat window disappears from side bar on the app, requiring you to attempt Steps 1-4 again)
Step 6: Reach out to $USER through another media, and ask them to send you a message
Step 7: chat window will come back and stay, operating as per normal

Have you tried keybase chat hide --unhide $USER ?

great... that worked... but when I re-open the chat through the GUI it should allow me to send messages and should be smart enough to realize that I want to continue the conversation, even after I hid it... and leave it unhid. That the whole reason for the bug...
Just seems like too many things not in the GUI... opening a CLI for deleting a team, for example...
Appreciate the help... keep at it, the GUI will get there one day


Adds Namespaces to Watchable ProviderResources

Adds namespace support to watchable ProviderResources.
Fixes #229
Signed-off-by: danehans<EMAIL_ADDRESS>

Codecov Report

Merging #230 (5f2798b) into main (9c34a8c) will increase coverage by 0.31%.
The diff coverage is 94.73%.

@@            Coverage Diff             @@
##             main     #230      +/-   ##
==========================================
+ Coverage   57.62%   57.94%   +0.31%
==========================================
  Files          30       30
  Lines        2702     2720      +18
==========================================
+ Hits         1557     1576      +19
+ Misses       1054     1052       -2
- Partials       91       92       +1

Impacted Files
Coverage Δ

internal/provider/kubernetes/httproute.go
67.50% <75.00%> (-0.04%)
:arrow_down:

internal/message/types.go
85.18% <100.00%> (+2.96%)
:arrow_up:

internal/provider/kubernetes/helpers.go
100.00% <100.00%> (ø)

internal/provider/kubernetes/gateway.go
78.68% <0.00%> (+1.63%)
:arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Fix a mime-type issue with CSV downloads

Due to an issue with ActionController::Live not always sending a string for the mime type, it's safer for us to specify one here.
This will fix an issue with an interaction with a DfE analytics gem.
Context
https://ukgovernmentdfe.slack.com/archives/CN1MCQCHZ/p1666382932798649
Guidance to review
Check one of the CSV exports to make sure it still works, and ideally that it sends the correct mime-type.

 CSV exports interacting poorly with DfE analytics gem


Get-AzureADUser has no 'pagination' (-Skip) Support

The cmdlet Get-AzureAdUser has the -Top option, but there is no way to retrieve the next number of entries after that.  At minimum, this should be documented as a limitation of the cmdlet.
The cmdlet needs to add a -Skip (and -SkipToken) support -- functionality which is already supported by the underlying Graph API (see: https://developer.microsoft.com/en-us/graph/docs/concepts/query_parameters).  Otherwise, there is no efficient way to go through a large Active Directory (e.g., consider an Azure Automation Runbook which has severe memory limitations).

Hi @lesterw1
Sorry for the delay in response.  I have opened a work item for this so that engineering can take a look and possibly address this.  At this point, I am going to go ahead and close this issue and will post any update I have here.  Thanks!
Bill


[BUG] Could not find a declaration file for module 'aws-jwt-verify'.

Describe the bug
https://stackoverflow.com/questions/74872904/could-not-find-a-declaration-file-for-module-aws-jwt-verify
Versions
Which version of aws-jwt-verify are you using?
3.2.0
Are you using the library in Node.js or in the Web browser?
Node.js
If Node.js, which version of Node.js are you using? (Should be at least 14)
v18.10.0
If using TypeScript, which version of TypeScript are you using? (Should be at least 4)
^4.9.3
To Reproduce
If you can, please provide a minimal code example that reproduces the bug.

Thanks for the report!
Setting "moduleResolution" to "Node" solves this. We'll have to investigate why "NodeNext" doesn't work.

Having looked a bit deeper, I suspect this is a bug in TypeScript, so I created an issue there: https://github.com/microsoft/TypeScript/issues/51996
I hope they'll look at it but they might not as they don't like poking in external libraries.
We need to establish what the rules are for looking up declaration files (*.d.ts) under moduleResolution NodeNext. It seems to be different than under moduleResolution Node. This might be deliberate on their end, or a bug.
Had a look at the TypeScript docs, but they don't yet reveal any insights to me.

We need to establish what the rules are for looking up declaration files (*.d.ts) under moduleResolution NodeNext. It seems to be different than under moduleResolution Node. This might be deliberate on their end, or a bug.

TS now wants the "types" to be pointed to from entries in the "exports" object.


Update es6-promise from v2.0.0 to v3.0.2 (fixes conflict with requirejs)

Solves the issue detailed in:
https://github.com/IdentityModel/oidc-client/issues/13
Thanks. :)

Would be good to get this merged for hassle-free IE support.

thanks and sorry for taking so long


Proposal: traverse return value and finalize drafts by default unless use rawReturn()

To make the migration from Immer to Mutative smoother, we consider return values that are all traversed and finalized by default. For return values without mixed drafts, rawReturn() can be used to improve performance, and we will hint at such an optimization with checking mixed drafts in strict mode.

For return values that do not contain any drafts, you can use rawReturn() to wrap this return value to improve performance. It ensure that the return value is only returned explicitly.
const baseState = { id: 'test' };
const state = create(baseState as { id: string } | undefined, (draft) => {
  return rawReturn(undefined);
});
expect(state).toBe(undefined);

You don't need to use rawReturn() when the return value have any draft.

const baseState = { a: 1, b: { c: 1 } };
const state = create(baseState, (draft) => {
  if (draft.b.c === 1) {
    return {
      ...draft,
      a: 2,
    };
  }
});
expect(state).toEqual({ a: 2, b: { c: 1 } });
expect(isDraft(state.b)).toBeFalsy();

If you use rawReturn(), we recommend that you enable strict mode in development.
const baseState = { a: 1, b: { c: 1 } };
const state = create(
  baseState,
  (draft) => {
    if (draft.b.c === 1) {
      return rawReturn({
        ...draft,
        a: 2,
      });
    }
  },
  {
    strict: true,
  }
);
// it will warn `The return value contains drafts, please don't use 'rawReturn()' to wrap the return value.` in strict mode.
expect(state).toEqual({ a: 2, b: { c: 1 } });
expect(isDraft(state.b)).toBeFalsy();


[Snyk] Security upgrade golang from 1.11-alpine to 1.23.4-alpine

Snyk has created this PR to fix 3 vulnerabilities in the dockerfile dependencies of this project.
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Snyk changed the following file(s):

scripts/go-builder-image/Dockerfile

We recommend upgrading to golang:1.23.4-alpine, as this image has only 1 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.
Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Out-of-bounds Read SNYK-ALPINE310-APKTOOLS-1534688
  212

Improper Certificate Validation SNYK-ALPINE310-OPENSSL-1089244
  184

Improper Certificate Validation SNYK-ALPINE310-OPENSSL-1089244
  184

NULL Pointer Dereference SNYK-ALPINE310-OPENSSL-587954
  163

NULL Pointer Dereference SNYK-ALPINE310-OPENSSL-587954
  163

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 NULL Pointer Dereference

:no_entry: Snyk checks have failed. 1 issues have been found so far.

Icon
Severity
Issues

Critical
0

High
0

Medium
0

Low
1

:no_entry: security/snyk check is complete. 1 issues have been found. (View Details)
:white_check_mark: license/snyk check is complete. No issues have been found. (View Details)


fix(interactive): Fix the bug in the RexNode to Proto Conversion

What do these changes do?
For a specific expression, i.e. a.age-(b.age-1), there is an issue when converting it to a proto structure, resulting in missing parentheses in the generated proto; it gets converted to a.age-b.age-1. This PR is meant to address the issue.

Related issue number

Fixes

Codecov Report

Merging #3171 (c9483e9) into main (246f85b) will decrease coverage by 30.96%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files

@@             Coverage Diff             @@
##             main    #3171       +/-   ##
===========================================
- Coverage   73.25%   42.29%   -30.96%
===========================================
  Files         102      101        -1
  Lines       11006    10907       -99
===========================================
- Hits         8062     4613     -3449
- Misses       2944     6294     +3350

see 62 files with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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


find a way to avoid writing your own entity parser

See https://github.com/AlphaWallet/alpha-wallet-android/issues/677

@hboon bump

@James-Sangalli Got it. Will swing back after I'm done with TokenScript 2019/05.


Remote control app script

As a user I want a bug free app so that when I run the app I won’t have any problems.

As a user I want a bug free app so that when I run the app I won’t have any problems.

Please include this in the issue's description

Also, the description sounds different from the tittle. Is this in the correct place?
Also, this doesn't sound like a feature but more like a non functional requirement that still needs some metrics to be unambiguously specified.

I couldn't figure out how to add a description after I submit the issue. so I put it as a comment, don't know if there is any way around.
About if it is in a right place we are going to take another look at it with the work group and consider your comment.


Monitor re-arrangement persists even after deletion of SRWE

Hi there, I'm posting this on behalf of a buddy who doesn't have a github account.
He installed this program to stretch Microsoft Flight Simulator across 3 of his 6 displays. He managed to get the config wrong, however after deleting SRWE and completely re-installing flight sim it persists. How does one reset the config and get his displays back to normal?

Please disregard and close this issue, it was eyefinity lol