[Bug]: Incorrect instructions in HOWTO

Current Behavior
Currently the readme instructs to run
nix flake init --template github:tweag/jupyterWith

and then, if one follows HOWTO there must be files in the kernel dir that one can rename as follows
cp kernels/_python.nix kernels/my-python.nix

However, currently there is only one file in the template dir which is python.nix.
When I add julia.nix  manually there is no connection to the kernel (see logs attached).
Expected Behavior
notebook connects to the julia kernel
Steps To Reproduce

mkdir my-project
cd my-project
nix flake init --template github:tweag/jupyterWith
download example-julia.nix to kernels/julia.nix
nix run

Version
ubuntu 22.04.01
nix 2.11
I suppose nix flake --template copies master branch, so current revision: 4aadb156c475bbae3259e26201db97632ada39d7
Additional Context
No response
Relevant log output
warning: Using saved setting for 'extra-substituters = https://tweag-jupyter.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = tweag-jupyter.cachix.org-1:UtNH4Zs6hVUFpFBTLaA4ejYavPo5EFFqgd7G7FxGW9g=' from ~/.local/share/nix/trusted-settings.json.
jupyterWith does not need build JupyterLab. Starting...
[I 2022-10-27 11:04:44.555 ServerApp] jupyterlab | extension was successfully linked.
[I 2022-10-27 11:04:44.575 LabApp] JupyterLab extension loaded from /nix/store/ldh5ipllc8symcd7acya0rq71ycbfxj5-python3-3.10.6-env/lib/python3.10/site-packages/jupyterlab
[I 2022-10-27 11:04:44.575 LabApp] JupyterLab application directory is /home/user/personal/random/experiments/julia-test/.jupyter/lab/share/jupyter/lab
[I 2022-10-27 11:04:44.579 ServerApp] jupyterlab | extension was successfully loaded.
[I 2022-10-27 11:04:44.579 ServerApp] Serving notebooks from local directory: /home/user/personal/random/experiments/julia-test
[I 2022-10-27 11:04:44.579 ServerApp] Jupyter Server 1.17.1 is running at:
[I 2022-10-27 11:04:44.579 ServerApp] http://localhost:8888/lab?token=719605e33ab38b0e7d15449d8880438094ad302f02deaec9
[I 2022-10-27 11:04:44.579 ServerApp]  or http://<IP_ADDRESS>:8888/lab?token=719605e33ab38b0e7d15449d8880438094ad302f02deaec9
[I 2022-10-27 11:04:44.579 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 2022-10-27 11:04:44.592 ServerApp]

    To access the server, open this file in a browser:
        file:///home/user/.local/share/jupyter/runtime/jpserver-22717-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/lab?token=719605e33ab38b0e7d15449d8880438094ad302f02deaec9
     or http://<IP_ADDRESS>:8888/lab?token=719605e33ab38b0e7d15449d8880438094ad302f02deaec9
/nix/store/ldh5ipllc8symcd7acya0rq71ycbfxj5-python3-3.10.6-env/lib/python3.10/site-packages/IPython/paths.py:70: UserWarning: IPython parent '/' is not a writable location, using a temp directory.
  warn("IPython parent '{0}' is not a writable location,"
[I 2022-10-27 11:04:50.256 LabApp] Build is up to date
[I 2022-10-27 11:04:53.823 ServerApp] Creating new notebook in
[I 2022-10-27 11:04:54.597 ServerApp] Kernel started: 12a356d3-259f-4b03-91bc-63b6e2b0d74f
/nix/store/ldh5ipllc8symcd7acya0rq71ycbfxj5-python3-3.10.6-env/lib/python3.10/site-packages/IPython/paths.py:70: UserWarning: IPython parent '/' is not a writable location, using a temp directory.
  warn("IPython parent '{0}' is not a writable location,"
[I 2022-10-27 11:05:11.525 ServerApp] Kernel shutdown: 12a356d3-259f-4b03-91bc-63b6e2b0d74f
[W 2022-10-27 11:05:11.899 ServerApp] delete /Untitled.ipynb
[I 2022-10-27 11:05:14.174 ServerApp] Kernel started: 578d5058-e5be-42cd-a714-59ccf50bcd61
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[I 2022-10-27 11:05:17.165 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (1/5), new random ports
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[I 2022-10-27 11:05:20.182 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (2/5), new random ports
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[I 2022-10-27 11:05:23.200 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (3/5), new random ports
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[I 2022-10-27 11:05:26.218 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (4/5), new random ports
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[I 2022-10-27 11:05:29.238 ServerApp] AsyncIOLoopKernelRestarter: restarting kernel (5/5), new random ports
  Activating project at `~/personal/random/experiments/julia-test`
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/personal/random/experiments/julia-test/Project.toml`
  No Changes to `~/personal/random/experiments/julia-test/Manifest.toml`
ERROR: SystemError: opening file "/home/user/.julia/packages/IJulia/AQu2H/src/kernel.jl": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ./loading.jl:1484
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [11] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:303
 [12] _start()
    @ Base ./client.jl:522
[W 2022-10-27 11:05:32.256 ServerApp] AsyncIOLoopKernelRestarter: restart failed
[W 2022-10-27 11:05:32.256 ServerApp] Kernel 578d5058-e5be-42cd-a714-59ccf50bcd61 died, removing from map.
[W 2022-10-27 11:05:34.263 ServerApp] 404 GET /api/kernels/578d5058-e5be-42cd-a714-59ccf50bcd61?1666861534243 (<IP_ADDRESS>): Kernel does not exist: 578d5058-e5be-42cd-a714-59ccf50bcd61

it gets even weirder, when I try to replicate it in a new dir I get a log with one repeated message:
julia-attempt2 ⊢ nix run
warning: Using saved setting for 'extra-substituters = https://tweag-jupyter.cachix.org' from ~/.local/share/nix/trusted-settings.json.
warning: Using saved setting for 'extra-trusted-public-keys = tweag-jupyter.cachix.org-1:UtNH4Zs6hVUFpFBTLaA4ejYavPo5EFFqgd7G7FxGW9g=' from ~/.local/share/nix/trusted-settings.json.
jupyterWith needs to build JupyterLab.
jupyterWith needs to build JupyterLab.
jupyterWith needs to build JupyterLab.
jupyterWith needs to build JupyterLab.

Hey @liesnikov
Thanks for submitting an issue. The HOWTO was meant to show users how to enable a kernel but since we didn't include any disabled kernels, I can see how that would be confusing. :sweat_smile:  I'll update the HOWTO today.
As for the issue with julia, it is the only stateful kernel and requires some extra care. I forgot to bring over instructions from the old branch. I'll write up something and post it soon.

Thank you!
So, for now I can just use instructions in the old branch to get it to work?

@liesnikov
Here are instructions for getting the Julia kernel working. Unfortunately, it is the only kernel we support that has a stateful environment.
Essentially, what needs to happen is the same as what you have done but instead of running nix run, we need to insert some extra steps. We need to build the environment to get access to the Julia binary. Enter the Julia REPL and install IJulia by following the instruction on their repo. Finally, come back out of the REPL and then run nix run.
Let me know if these work for you and if there are any steps that are missing. I'll update the documentation with your feedback so it is clear.

mkdir my-project
cd my-project
nix flake init --template github:tweag/jupyterWith
download example-julia.nix to kernels/julia.nix
run nix build .#
Enter the Julia REPL with ./result/bin/julia.
Follow the commands on the IJulia repo to install IJulia.
After installing IJulia, make sure you exit the Julia REPL and are back at the top level of your project folder.
nix run

There might be an extra step for setting up Julia on your system. I set it up a while ago when testing the IJulia kernel but lost the steps I needed to do.

@liesnikov
I submitted a PR to update the HOWTO. Is this more clear?
https://github.com/tweag/jupyterWith/pull/334
https://github.com/tweag/jupyterWith/blob/f391a222e059c538aa3f66d2e338124744d93f39/docs/HOWTO.md

I feel like that's a bit better, but the bit that confused me initially is still there. I took the liberty to leave a comment
The instructions you mentioned in the comment above did work for me and I sense this is also what one does to add an arbitrary kernel? Like if I want to add another one I have to copy another file to a kernels dir. So perhaps it makes sense to include it in the HOWTO? Maybe with a note that for julia you have to do an extra couple of motions like

Enter the Julia REPL with ./result/bin/julia.
Follow the commands from IJulia documentation to install IJulia.julia
julia> using Pkg
julia> Pkg.add("IJulia")

After installing IJulia, make sure you exit the Julia REPL and are back at the top level of your project folder.

Thanks for the suggestion! I committed your suggestion.
Yes, we will be adding a section to the HOWTO for Julia. Thanks for your feedback.


[Web Portal] tweak disabled action button's background color

Coverage increased (+0.01%) to 53.324% when pulling ebc7bbaec6d884a1a1b9d55c89891f72cdaacfce on qinsu/portal/disable into<PHONE_NUMBER>5345dabc2d9cdd8bca9d19481cef7d on master.


"ForbiddenError, Message: The server failed to authenticate the request" on Windows using Azure Driver

Hi!
I was trying to create a virtual machine using Azure driver from my Windows machine but following the documentation steps is not fruitful.
First, using a Linux VM with Ubuntu installed I run the following commands to get my certificate:
$ openssl req -x509 -days 365 -newkey rsa:1024 -keyout AzureManagement.pem -out AzureManagement.pem
$ openssl pkcs12 -export -out AzureManagement.pfx -in AzureManagement.pem -name "Azure Management"
$ openssl x509 -inform pem -in AzureManagement.pem -outform der -out AzureManagement.cer

Second, using WinSCP I copy the files to my local Windows machine in the same directory running docker machine. I upload the .cer file to Azure and  I execute the following command
docker-machine_windows-amd64.exe create -d azure --azure-subscription-id="b124xxxx-xxxx-xxxx-xxxx-xxxx20b68a6" --azure-subscription-cert="AzureManagement.cer" UniqueNameHere

The result is the following error:
INFO[0000] Creating Azure machine...
ERRO[0003] Error creating machine: Code: ForbiddenError, Message: The server failed to authenticate the request. Verify that the certificate is valid and is associated with this subscription.
WARN[0003] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0003] Error creating machine

Using the recommendation from Microsoft Azure documentation produces the same error message (https://msdn.microsoft.com/en-us/library/azure/gg551722.aspx)

/cc @jeffmendoza

It was an ID10T Error Code, I will close the Issue ;)

Thanks for the update!  I have plenty of those :)

Yes, however, I have not been able to deploy something from Windows to Azure. I get always an error creating the machine, something like this: https://github.com/docker/machine/issues/774

It was an ID10T Error Code, I will close the Issue ;)

@jangelfdez seems that I'm getting the same error hahaha
Could you please specify what you did wrong?

Well, really an ID10T error!!
For those with the same problem, check that you are azure-subscription-cert pointing to .pem instead of .cer file.

@cusspvz ah haha thanks for the feedback!

Same here ;)


6/15 Publish

@Taojunshen,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-autogen/ad.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/ad/app.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/ad/group.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/ad/group/member.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/ad/sp.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/ad/user.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/role.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/role/assignment.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/role/definition.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/availability-set.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/boot-diagnostics.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/diagnostics.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/disk.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/encryption.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/extension.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/extension/image.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/image.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/nic.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/unmanaged-disk.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vm/user.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss/diagnostics.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss/disk.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss/extension.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss/extension/image.pycliyml
:white_check_mark:Succeeded
View

docs-ref-autogen/vmss/nic.pycliyml
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Add missing % at the end of a template example

Why:

There's a missing % at the end of a template example.
What's being changed:

Add missing % at the end of a template example.

Check off the following:

[x] All of the tests are passing.
[x] I have reviewed my changes in staging.
[x] For content changes, I have reviewed the localization checklist
[x] For content changes, I have reviewed the Content style guide for GitHub Docs.

Thanks for merging my work! :smile:


Where is the DLL for Office365 interop?

see subject!

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

ID: 88fddd73-1fac-2149-71db-5f20c8c94934
Version Independent ID: 46e037ee-a5fd-7274-b072-8df92ce70eda
Content: Office primary interop assemblies - Visual Studio
Content Source: docs/vsto/office-primary-interop-assemblies.md
Product: visual-studio-windows
Technology: office-development
GitHub Login: @John-Hart
Microsoft Alias: johnhart

@jgfet just to be clear these interop assemblies are for use with the Office Client on the desktop not Office in the browser.  If that's what you're looking for and you're using Visual Studio.  For VS 2017 and 2019 you can find them under: %ProgramFiles(x86)%\Microsoft Visual Studio\Shared\Visual Studio Tools for Office\PIA.  Earlier versions are inside the VS folder: %ProgramFiles(x86)%\Microsoft Visual Studio 14.0\Visual Studio Tools for Office\PIA

#please-close

Hello, I am not seeing the "Visual Studio Tools for Office" directory in %ProgramFiles(x86)%\Microsoft Visual Studio\Shared. The Microsoft website says, that the .NET Programmability Support feature is included in the default installation. Please help.

@khamille please make sure you've selected the Office Workload and the Visual Studio Tools for Office to be installed when you install Visual Studio 2017 or 2019.  If you're still having problems I just sending feedback through the Visual Studio Help menu.

Re-running the VS 2019 Installer to add Office Workload and VS Tools for Office was the answer! Thanks John-Hart!!!
I dug around on the web for hours before finding this post!!


fix send-on-close test

This should fix the Shippable tests. I guess this got broken with some of the recent changes to when we check the brower's buffer size; I don't think anything was really broken, just the test.
I can't remember why set the buffered size to half the maximum amount mid-way through the test, can you?

:+1:
The purpose of setting the buffered amount to half the maximum was to check that DataChannel doesn't wait for bufferedAmount to reach zero before resuming transmission.


UI for "Pick a Layer"

Describe
These are asks coming from the business area after preliminary review:

[ ] Need ability to display multiple layers at once
[ ] Needs to be able to re-order layers, pick X # of layers and then select order they appear (accordion like imapBC, or something that is intuitive to users)
[ ] Needs to be able to see metadata associated with the layer (likely more important for main Map page)
[ ] Error or instruction for uploading too many layers or being too zoomed out.

Duplicate ticket.  addressed in 589


Timeout exception: while clicking on "Accept all cookies button" / How to maximize window (org.openqa.selenium.TimeoutException: timeout: Timed out receiving message from renderer: 29.778)

The problem
Hi, I am new to Selenide. Working on AngularJS application. Before login page website has accept cookies pop up , I think that problem is when window is not maximized accept cookie button is not completely visible. Hence its getting timed out.
I checked that window maximize option is not available in Selenide.
If I want to scroll down and then click, how do I do that?
Please check the image. This is how it looks when page is loaded
Tell us about your environment
Selenide Version - 6.12.2
Chrome:- 111
Selenium Version: 4.8
OS Version**: Windows 10 Enterprise (64 bit)
Code To Reproduce Issue
package org.example;
import com.codeborne.selenide.Configuration;
import org.openqa.selenium.By;
import org.testng.annotations.Test;
import java.util.*;
import static com.codeborne.selenide.Selenide.*;
import static com.codeborne.selenide.Condition.*;

public class  loginAndSearchTest{
    //Configuration.browserSize = "1920x1080";

    @Test
    public void demoTest() throws InterruptedException {

-         open("intenal company url");
          $(By.cssSelector("#onetrust-reject-all-handler")).click();

    }

Hi , This issue is resolved by wait condition "should appear".
can someone please tell, how do I locate ngelelemts in selelnide like in below image there is no other attribute than ngContent.

@Reshmajadhavb Hi.
For example, you can find this element by text:
  import static com.codeborne.selenide.Selectors.byText;

  $(byText("Login")).click();

@Reshmajadhavb This test works for me. I am not getting timeouts.
Usually this error means that the browser could not load the site in time. The network was too slow in your office?
NB! Please fix the SLF4J warning. You see lots of red text, why don't you fix it?
NB! Next time please share source code as text, not images. Use services like pastebin or github gist for this.


Prevent creation of duplicate patients

[ ] Write spec

Now that we have archive patient we don't need this.


cli: set I/O stream to Stdio:null if the given solana_version is already installed

Description :

Added Conditional with currently installed version of solana
It's related to this issue #2724

Thank you for your interest in contributing to Anchor!
This implementation doesn't currently solve the issue described in #2724 because the installation progress is still not visible.

So i Should do this right?

If the Solana version is already installed (is_solana_version_installed returns true), it will set the standard I/O streams to null during the installation process.
If the Solana version is not installed, it will execute the installation command without redirecting the standard I/O streams, allowing to see the installation progress.

am i right on this approach?

am i right on this approach?

Yes, the I/O behavior should change based on whether the version is already installed.

am i right on this approach?

Yes, the I/O behavior should change based on whether the version is already installed.

Added another implementation kindly have a look.

@acheroncrypto Removed comments and updated the is_solana_version_installed function to be
fn is_solana_version_installed(version: &str) -> Result<bool> {
    let output = std::process::Command::new("ls")
        .arg("-l")
        .arg("~/.local/share/solana/install/releases")
        .output()?;

    if output.status.success() {
        let output_versions = std::str::from_utf8(&output.stdout)?;
        Ok(output_versions.lines().any(|line| line.contains(version)))
    } else {
        Err(anyhow!("Failed to list Solana installed versions"))
    }
}


小时视图和分钟视图怎么才能采用24小时制?

Supprt Question?
For support questions, please use one of these channels:
Gitter: https://gitter.im/dalelotts/angular-bootstrap-datetimepicker
Stack Overflow: http://stackoverflow.com/search?q=angular-bootstrap-datetimepicker
This repository's issues are reserved for feature requests and bug reports.
Bug Reports
You MUST have a JSBin recreation of the defect or your issue will be CLOSED without explanation
NB: Search the existing issues (open and closed) to see if someone has already reported your bug. If so, vote with a 👍 reaction on the topmost description of the issue (learn how) and press the Subscribe button to receive updates when progress is made.
Comments like "+1" or "when will this be done?" will be ignored. Only 👍 reactions on the topmost description will be counted.
Duplicate issues will be CLOSED without explanation.
Instructions: https://github.com/dalelotts/angular-bootstrap-datetimepicker/wiki/Reporting-Bugs

Overview of the Issue - if an error is being thrown a non-minified stack trace helps
Motivation for or Use Case - explain why this is a bug for you
angular-bootstrap-datetimepicker Version(s) - is it a regression?
Browsers and Operating System - is this a problem with all browsers or only specific ones?
Link to a live example (Required) - provide a live example (using JSBin, Plunker or JSFiddle.
Related Issues - has a similar issue been reported before?
Suggest a Fix - if you can't fix the bug yourself, perhaps you can point to what might be
causing the problem (line of code or commit)

Feature Requests
Search the issue tracker for an existing ticket before creating a new one.
Instructions: https://github.com/dalelotts/angular-bootstrap-datetimepicker/wiki/Requesting-Features
(Please erase the above text and begin typing. Thanks!)

这个区域只是为了缺陷. 请使用https://gitter.im/dalelotts/angular-bootstrap-datetimepicker的问题
使用https://momentjs.com/docs/#/i18n/更改时间格式


Google cloud plugins not working on Windows Environment

I am facing issue with running Google cloud storage plugin where the plugin is working fine with Linux environments but throwing error 403 un-authorized on windows with the same service credentials private file

Migrated from: https://issues.jenkins-ci.org/browse/JENKINS-46411

After testing this plugin using windows agents I'm inclined to think this is related to the windows permissions errors that were resolved in https://github.com/jenkinsci/google-oauth-plugin/pull/19


[bug] lucide-icons error

Current Behavior
I'm using Expo with tamagui. Error occurred when using the ListItem sample code, it was resolved by removing all the icons.
Expected Behavior
No response
Tamagui Version
1.9.15

System Info
System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
    Memory: 1.25 GB / 15.58 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 16.19.1 - ~/.nvm/versions/node/v16.19.1/bin/node
    Yarn: 3.4.1 - /usr/local/bin/yarn
    npm: 8.19.3 - ~/.nvm/versions/node/v16.19.1/bin/npm
  Browsers:
    Chrome: 111.0.5563.110
    Firefox: 111.0.1
  npmPackages:
    @react-navigation/native: ^6.1.6 => 6.1.6
    @react-navigation/native-stack: ^6.9.12 => 6.9.12
    @tamagui/animations-react-native: ^1.9.15 => 1.9.15
    @tamagui/babel-plugin: ^1.9.15 => 1.9.15
    @tamagui/config: ^1.9.15 => 1.9.15
    @tamagui/core: ^1.9.15 => 1.9.15
    @tamagui/font-inter: ^1.9.15 => 1.9.15
    @tamagui/lucide-icons: ^1.9.15 => 1.9.15
    @tamagui/shorthands: ^1.9.15 => 1.9.15
    @tamagui/theme-base: ^1.9.15 => 1.9.15
    @tamagui/themes: ^1.9.15 => 1.9.15
    @types/react: ~18.0.27 => 18.0.28
    babel-plugin-transform-inline-environment-variables: ^0.4.4 => 0.4.4
    expo: ^48.0.9 => 48.0.9
    expo-font: ^11.1.1 => 11.1.1
    expo-linear-gradient: ~12.1.2 => 12.1.2
    expo-status-bar: ^1.4.0 => 1.4.4
    npm-run-all: ^4.1.5 => 4.1.5
    react: ^18.2.0 => 18.2.0
    react-dom: ^18.2.0 => 18.2.0
    react-native: ^0.71.4 => 0.71.4
    react-native-reanimated: ~2.14.4 => 2.14.4
    react-native-safe-area-context: 4.5.0 => 4.5.0
    react-native-screens: ~3.20.0 => 3.20.0
    react-native-svg: 13.4.0 => 13.4.0
    react-native-web: ^0.18.12 => 0.18.12
    shadow-cljs: ^2.20.6 => 2.21.0
    tamagui: ^1.6.3 => 1.6.3
    typescript: ^4.9.4 => 4.9.5

Can you set up a repro please

I am facing the same issue. any updates on this ?


Receiving JWT Token.

In my application I have a custom login page, at this I call await _httpClient.RequestPasswordTokenAsync(new PasswordTokenRequest(...)); for receiving a JWT token.
At this function I also need to provice oidc information. In order to reduce double configuration, is there an similar function available?
How do I set these token into the HttpContext.SignInAsync() funtion to use the IdentityUser model?

The suggested scenario is not supported, the identity is populated from access_token
Here is how to read Keycloak configuration:
KeycloakAuthenticationOptions options = new();

        configuration
            .GetSection(KeycloakAuthenticationOptions.Section)
            .Bind(options, opt => opt.BindNonPublicProperties = true);

From a design perspective, implementing a custom login page on the Keycloak side is the way to go.


data can not be passed in session initialization

https://github.com/kennethreitz/requests/blob/develop/requests/sessions.py#L65
If params can be passed, shouldn't data be available too?
Miguel

Being one passing access_token for OAuth2 apis. See:
https://github.com/maraujop/requests-oauth2
Cheers,
Miguel

We should talk. There's some pretty serious efforts going on to get oauth into requests right now. You should help :)

See: https://github.com/idangazit/oauthlib


Added Mario and Yoshi Gif App

Created app that displays Mario and Yoshi Gif and also has text saying "It's a me Mario".
Description
Created a new app with a Gif of Mario and Yoshi. Process for generating:

Used LibreSprite for creating the animation
Converted Gif into individual pgn images
Made a quick python script to convert images into Base 64 format to be easily displayed, for reference, https://github.com/BriHen/Tibyt_Python
Found a Gif template from a working app on Tidbyt community, thanks Mack Ward and their Nyan Cat!
Replaced their Base64 lines with the ones generated

Copilot

copilot:all

I have read the CLA Document and I hereby sign the CLA


composer issue

I am experiencing this issue during installation  , i tried many times but it didn't work at all

Please check the pic and let me know if the issue from my side , how can i sort it out
Thanks in advance

I downloaded the repo as zip and i run composer install and it worked fine but till now i dont know how to install it using composer however i can install anything else with composer for example a laravel project ,
i am watching you series that explain the laraflat project but the one which i download is different in its theme , please let me know if i misunderstand anything
thanks in advance , i really appreciate your effort

about the theme
we support two theme on laraflat project you can switch btween them in env file (THEME = themeone , default)
about composer problem its about windows only the composer run fine on linux and mac system
because length was bigger than what windows allows ,
you can download zip file and run composer install it will work fine

Many thanks for your decent support :+1:

you are welcome


Add reveal.js as submodule in /docs folder

create a submodule with reveal.js

warning: use https submodule (not ssh) for making GitHub pages happy.
It will initialise the submodules without problems.

git submodule add https://github.com/hakimel/reveal.js.git docs/revealjs

pick a released version, take a look https://github.com/hakimel/reveal.js/releases to select a valid tag

cd docs/revealjs && git checkout tags/4.1.2


How to get a return value 'char*'?

my c++ code：
EXPORT char* getBuf(int x, int y, int l,int* len)
{
FILE fin = fopen("a.jpg", "rb");
char buf = (char*)malloc(sizeof(char) * 1024 * 1024);
*len = fread(buf, 1, 1024 * 1024, fin);
return buf;
}
EXPORT void releaseBuf(char* buf)
{
free(buf);
}
then in my node code:
var libm = ffi.Library(__dirname+'\readfile.dll', {
'getBuf':['char *',['int','int','int',intPtr]
});
and i use:
var l = ref.alloc(ref.types.int);
var bits = ref.alloc('char *');
bits = libm.getBuf(1,2,3,l);
I can get the 'l' successfully, but  the bits.length===1?
what should i do to get the file(a.jpg)?

Use "string" as the type instead of "char *".
"string" is a special type that reads a null-terminated C-style string.

thank you. i use "string", and i use var bits = libm.getBuf(1,2,3,l). buti still can not get the buffer that i want.
I am trying to serve this image to front end.
var server = http.createServer(function(req,res){
res.writeHead(200,{'Content-Type':'img/jpeg'});
res.write(bits,'binary');
res.end();

}).listen(4000);

In case if it's a binary file, the result char * should be threatened as a pointer. And because it isn't zero terminated you should reinterpret it to make it have the result length.
var libm = ffi.Library(__dirname+'\readfile.dll', {
'getBuf':['pointer',['int','int','int',intPtr]
});

var l = ref.alloc(ref.types.int);
var ptr = libm.getBuf(1,2,3,l);
var len = l.deref();
var bits = ref.reinterpret(ptr, len, 0);

thanks very much! It works! memeda..


Coal gas power plants should have a separate slide

It may not be clear for users where coal gas power production is coming from, and especially why they cannot change it by setting the gas power plant sliders (see screenshot below).
The proposal is to add a slide for coal gas power plants to the electricity section. Instead of sliders, this slide would explain how the coal gas power plants are modelled and link to the steel production slide and the coal gas slide in the CCUS section.

Notifying @Charlottevm

@marliekeverweij @DorinevanderVlies how do you feel about this enhancement?

Good idea! That's indeed more clear

Instead of adding a new slide that references the Coal gases from blast furnaces (steel) slide (see screenshot below), another option is to move the existing slide from Emissions > CCUS to Supply > Electricity.

Pro: we don't add a new slide without actionable content, but keep the same number of slides and actually allow the user to choose whether to produce electricity with the coal gases in the electricity section.
Con: coal gas use might be too advanced for the Supply > Electricity section.
I would be in favour of moving the slide. What do you think @Charlottevm / @DorinevanderVlies / @marliekeverweij?

I would be in favor of moving the slide. What do you think @Charlottevm / @DorinevanderVlies / @marliekeverweij?

Sounds good. However I do think that the title of the slide is pretty far out of line with the other slides in that section.
How about changing that to: "Plants using coal gases (from steel sector)"?
Furthermore I would like to add a technology specifications to the "?". Now I have to open the merit order table to be able to see the installed capacity.


Many co19 async tests are timing out flakily on dartdevc and dart2js

Up to 5 percent of the time on our dartdevc and dart2js builders is spent running tests that time out.
Almost all of these are tests of async behavior in the co19 and legacy co19_2 test suites.
They are timing out about half the time or less, and take 5 seconds or less to run normally, and time out after a minute when they time out.
I haven't had much success reproducing this locally, running the same configurations and settings as the test runners.
I would like to skip these tests, to speed up the commit queue, since they are not effective in finding any errors.
Even new runtime failures would not show up, because the tests are already marked flaky.
We should also find the source of these failures, and fix it. That is my first priority, to get agreement on skipping these tests.
I notice that the dartdevc testing is reporting most of these tests as "double reporting tests", and this may have to do
with the way the test runner detects that a dartdevc test has an async main method, and the handling of asyncStart and asyncEnd helpers for these tests.  This was worked on recently in CL https://dart-review.googlesource.com/c/sdk/+/265564
Here are some links and tables showing the problem.  I have copied the tables of flakiness data from the flakiness explorer:

This is a current results view that shows the relevant flaky tests: https://dart-current-results.web.app/#/filter=co19_2/LibTest/async,co19/LibTest/async,dart2js-,ddc-&flaky
And here is some information showing the four most used dart web try builders, and the number of seconds they spend running tests that time out:
"builder":                    "timeoutTime" "countTimeouts"  "countTests"  "testTime"
dart2js-hostasserts-linux-unsound  8193,              26,         39850,       179824   5%
ddc-linux-chrome-unsound           1951,              26,         39424,        40647   5%
ddc-linux-chrome                   1035,              14,         20481,        20614   5%
dart2js-linux-chrome                544,               8,         20654,        60251   1%

More of the flakiness dashboard:  Use filters Active = True and Name contains LibTest/async.

The double-reporting issue is due to the fact that dartdevc test running automatically uses the async_helpers package for testing, and hooks it into all async operations using dartdevc hooks addAsyncCallback.
co19 tests use their own async helper tracking, that calls its own asyncStart() and asyncEnd() to track chosen async calls, and ensure that they complete before the test is considered finished.
Both these packages communicate with the browser test infrastructure, and both send the 'unittest-suite-wait-for-done' and 'unittest-suite-done' messages to it.  The infrastructure code is not that smart, and just sends "PASS" the first time it sees the unittest-suite-done message.
So this is strange, and causes warnings, but strangely does not seem to be the cause of any failures.  The double-reporting tests will not be tracked further on this issue, since it doesn't seem to be the cause of the flaky timeouts, which are happening identically on dart2js and dartdevc.

There are non-async tests that are flaky only in when the tests are run on the try-bots (e.g. the "blur" one).
When the tests time out, are they busy, or are they finished, but just in a way that the test harness fails to detect?
Are the thousands of seconds billable cpu or just wallclock delay to getting the test suite done?
Could the tests be sharded so that all the bad ones are in one small shard that can be retried early?
I might be a little less worried if the proposal was to skip just the legacy "_2" tests.

The tests are hanging, or completing In A way that is not detected, not
just slow. As long as the hanging can be reproduced locally, I would like
the work on fixing it to be done while the tests are skipped in the ci,
since they give no useful information on the ci, except that they hang half
the time.  I don't think keeping them running on the ci gives any further
urgency to fixing them, since they have been hanging for years, probably,
without anyone filing an issue.  They are taking 5% on the test time on
those builders, which increases the latency of all builders during peak
times, not just the dart web ones.
On Tue, Sep 5, 2023, 22:50 Stephen Adams @.***> wrote:

I am worried skipping tests when we don't know whether it is the headless
browser, test infra or web implementation runtimes.
There are non-async tests that are flaky only in when the tests are run on
the try-bots (e.g. the "blur" one).
When the tests time out, are they busy, or are they finished, but just in
a way that the test harness fails to detect?
Are the thousands of seconds billable cpu or just wallclock delay to
getting the test suite done?
Could the tests be sharded so that all the bad ones are in one small shard
that can be retried early?
I might be a little less worried if the proposal was to skip just the
legacy "_2" tests.
—
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/53098#issuecomment-1707293583,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABFNVJ7V2C5ILP7WRXXS4MLXY6GC7ANCNFSM6AAAAAA3BRH76U
.
You are receiving this because you authored the thread.Message ID:
@.***>

Overall we are strongly in favor of saving resources and time spent running the web trybots but are nervous about just skipping the tests. We had a team discussion today to brainstorm alternative ideas. Here are some key points that maybe you could comment on:
We are unsure how to even begin investigating these timeouts. In our experience we haven't been able to reproduce the problem locally. If we skipped them how can we work towards running them again?
From our perspective, marking tests as skipped is just one step away from simply deleting the test. We lose all coverage, and the ability to see the recent history using the Results Feed.
Possible alternatives to skipping the tests:

Configure these tests to not retry on timeout.
Configure these tests to have shorter timeouts.
Somehow run this subset of tests less frequently.
Create configurations that runs less frequently that where we can quarantine tests like these until we know how to solve the issue.

@sigmundch @rakudrama @fishythefish
Feel free to comment or edit if I missed anything from our discussion.

I think being able to specify a shorter timeout and/or fewer retries would be preferable. It was noted that running these tests less frequently may be a problem - if something causes the tests to start producing consistent results, it'll take longer for the flakiness to be cleared.

I investigated these timeouts, trying to reproduce them, and I could only reproduce them when the test tab went into the background or was hidden.  I have a CL that may fix all or most of these, https://dart-review.googlesource.com/c/sdk/+/325780. If that fixes them, then further discussion isn't needed, except that
other, more individually timing out tests should be skipped when gardening the rest of the non-co19 tests, and
we may have the same discussion for them.
If this fix does stop the timeouts, then probably some currently-skipped tests or slow tests should be investigated to see if they have been fixed as well.
Addressing the concerns about skipping these tests:
There is no retrying of these tests on timeout.  The only retry that ever happens is in the deflaking step, so once tests are flakey, there are no retries.
They could have shorter timeouts, but they still give no useful information by running.
Running tests less frequently requires a separate configuration, since otherwise they will appear to change from new test to skipped and back. But if we want to run all timing-out skipped tests, to see if some of them start having runtime failures, or start passing quickly, then that could be a long-term project that should apply to all skipped tests on all configurations.
Regarding running them less frequently and flakiness - there has recently been a change that makes flakiness expire after only one week.  So if these ran daily, then only 7 runs with the same result would mark them stable again, and put a new failure (possibly) on the results feed that would need to be approved.  They would also run 5 times then for deflaking, taking time again.
Quarantining these tests until the issue is fixed is exactly what skipping them and filing an issue is.
The skipped tests can be run on try bots by running tryjobs on a CL that unskips them.
I am unclear on what the purpose would be of running these tests, but less frequently, or with less impact.
Exactly what info would be looked as a result of running these, by who, and when? It doesn't seem like it could
help the person working on debugging this problem at all, and it doesn't seem like it would be meaningful in any
other way.
It is extremely unlikely that these tests will fix themselves, but possible that they could start having a runtime error or start timing out consistently.  A consistent timeout would not lead to any more action, since they are already marked as timing out in an active issue.
If the concern is that by skipping them, they will be forgotten, or fixing them will be deprioritized, that seems misguided, because they are already very effectively forgotten and deprioritized now, since they are (mostly) marked flaky.  Active issues, or some other way of tracking work, should be effective, and some mostly-ignorable status that is hidden in deeper links of the results UI does not seem like it should be relied on.

Thanks so much for taking a closer look @whesse! I have also been debugging and trying to repro some of these issues in the lasts several days.
regarding the test behavior
In my investigation I saw some of the tests are not written accounting for how browsers behave. For example, some tests expect that setTimeout will only trigger after the requested period, but browsers sometimes trigger it early. In my local testing in chrome, I used a setInterval of 100, and saw 50% of events firing early, mostly in 96ms and 97ms.
I was expecting tests relying on this to sometimes report runtime failures. In FF one of those tests indeed flaked between Pass/RuntimeError, but in chrome it flaked between Pass/Timeout. This inconsistency between browsers was suspicious and I thought maybe there could be an infrastructure issue in either how the browser driver communicates with the browser iframe, or something to do with async-helper. The issue you just discovered could totally explain this too (btw, that's an amazing discovery!).
regarding skip vs non skip
I found the dashboards with historical data about flakes to be extremely helpful in the investigation. Seeing the distributions of how many times tests timed out vs passed vs failed also helps prioritize the process (e.g. I focused on tests with >50% flakes, instead of 3% flakes). I worry that this kind of data would be unavailable if we mark a test as skipped. We would be able to recover that kind of data by reenabling a skipped test on a CL and testing it in the try bots alone.
That's why we were brainstorming how we can address the current costs without loosing the ability to track that a test was and continues to flake. Our hope is that we could find a way to bound the cost of the flaky tests to be roughly close to the cost of non-flaky tests. Ironically, the suggestion we think will help the most here is to give those tests a tighter time bound (e.g. 20s or less)

I think the flakiness data will remain in the dashboard even if the test is skipped (and it remains in flaky.json in cloud storage), it just won't have new data added to it.
But once the number of timing-out flaky tests is reduced to a more manageable number, adding a timeout that is closer to the passing time would reduce the amount of extra time wasted.
The time spent on timeouts doesn't just delay the results from that builder - in overloaded periods, it compounds, and increases the latency of all builds by a compounded delay (since the total runtime queued load is increased by multiple instances of the tests, persisting until the queue length drops to 0, perhaps in 6 or 8 hours).

By the way, this has inspired me to think about building a flutter app that will download the historical test results for a single configuration, and display for any test the percentage of passes, fails, and timeouts, and the distribution of test runtimes for that test.
There is really no other way to get the distribution of test runtimes for a test, and if we need a program to read JSON data from the web and display it in an interactive graph, there is nothing better to write it in than Flutter.

The fix to disable background throttling seems to have worked: All the flaky co19 web tests have been passing for the last 11 runs, since the fix landed:

I will close this issue, and perhaps open more specific later ones, about skipping some individual tests.

That looks really promising, thanks for finding that Chrome option @whesse! I'm seeing the same thing on DDC configs for most of the flaky tests across all the suites.

I wrote a flutter app to load and display the timing data for tests on a configuration (it only took 4 hours!).  Here are graphs of one of these flaky tests, first chronologically, with now on the left, and second sorted by time:

woohoo! 🎉 that's amazing Bill! So exciting!

@whesse

I notice that the dartdevc testing is reporting most of these tests as "double reporting tests", and this may have to do
with the way the test runner detects that a dartdevc test has an async main method, and the handling of asyncStart and asyncEnd helpers for these tests. This was worked on recently in CL https://dart-review.googlesource.com/c/sdk/+/265564

I did touch that code recently to make the implementation agnostic to the two runtime type system we are using at the moment (stable vs canary) but it was double reporting before that too. It has been for many years and I've never understood why.

@whesse - I have question on a related note:
I was looking at some of the remaining flakes, and came across a couple tests that seem to be timing out during compile-time. On a successful run they take 30s, but sometimes they take over a minute and get interrupted.
See for example pkg/js_ast/test/printer_callback_test.

A recent timeout: https://dart-ci.appspot.com/log/dart2js-linux-chrome/dart2js-linux-chrome/1352/pkg/js_ast/test/printer_callback_test
A recent pass under 32s: https://chromium-swarm.appspot.com/task?id=64cd7cae8f162210

I wonder what could be behind the timing differences. Are the various bots different in architecture/resources or are they homogeneous? Are too many jobs scheduled in parallel that we could be starving some processes in the test runner?


broken

I can't help you with that one. The file's not available from pomf.
I think pomf filenames are 6 characters all lower case though, so it doesn't seem like a valid link. How did you make the sound image?

Putting this down to a bad link.


[Relay] use transform instead of ir_pass for CPS

@vinx13

Can you also update the old interface:

remove https://github.com/dmlc/tvm/blob/fbed2a1672289e10bdf0c42396578aa5104a016f/python/tvm/relay/transform.py#L563
rename un_cps -> UnCPS

@vinx13
un_cps is not a pass - it is only possible on certain kind of function transformed by cps.
I am hesitant to make to_cps a pass, because it change both the program layout (it move control into data, and is very hard to recover) and the type. There is lots of debate on CPS, and I will discuss with @jroesch tomorrow on how to incorporate it into the pass manager.
Can we focus on fixing the obviou thing for this PR?


[all] Add metric for ratio of live Kafka ConsumerThread's

The new metric is of type "ratio" (added in this commit), and named
"consumer-threads-live-ratio". In normal operation it should always be 1.
Anything below 1 (except during startup), is likely a good basis for signalling
an alert.

Current coverage is 45.32% (diff: 0.00%)

Merging #182 into master will decrease coverage by 0.08%

@@             master       #182   diff @@
==========================================
  Files           605        606     +1
  Lines         15674      15703    +29
  Methods           0          0
  Messages          0          0
  Branches       1604       1605     +1
==========================================
  Hits           7118       7118
- Misses         8095       8124    +29
  Partials        461        461

Powered by Codecov. Last update 7bdd8e0...ab59646

Prepared fixes earlier today but am working on getting it tested on a test cluster before pushing.

@udoprog: Have worked on the parts you mentioned. What do you think?
Have tested the whole thing against Kafka with an extra piece of code that kills a ConsumerThread after a while, to simulate what would happen in the case of a message CRC error. The failure of a thread shows up in the metric as expected. Ran this test this morning, and then again now with the added fixes.

@gabrielgerhardsson very nice, just two more comments.

@udoprog: There you go :)


Update markbates/goth library

Fixes #3437

Codecov Report

Merging #3533 into master will decrease coverage by <.01%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3533      +/-   ##
==========================================
- Coverage   35.65%   35.65%   -0.01%
==========================================
  Files         283      283
  Lines       40744    40744
==========================================
- Hits        14529    14526       -3
- Misses      24069    24070       +1
- Partials     2146     2148       +2

Impacted Files
Coverage Δ

modules/process/manager.go
76.81% <0%> (-4.35%)
:arrow_down:

models/repo_indexer.go
48.3% <0%> (ø)
:arrow_up:

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 96c268c...2a4a49d. Read the comment docs.

LGTM


Fix header for config-cheat-sheet

Hopefully this is correct :trollface:

LGTM

whomever LG_TM, SQUASH 😂

LGTM


chore: update Expo example to the latest version

Describe the improvement
Generate a fresh RN Expo example and copy relevant config ant test files. This should be full RN app with all files necessary to run iOS and Android apps.
Suggested implementation steps

Generate a latest RN template app using Expo
Copy relevant config and test files.
Upgrade Reassure dep to latest version
Make sure the Reassure runs locally (until we have CI infra in place #1 ).

done: https://github.com/callstack/reassure-examples/pull/45


test PR with Github API

Please pull this in!

Docs Build status updates of commit 674c5af:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Better way?

Hi. I wonder why don't you just contribute this to corresponding projects to make this just work for users? IMO this meta files should be stored along with projects to be up to date and automatically delivered to users with composer.

Thank you for your feedback. I understand your concern.
I already thought about this. I think it is better distributed along with Symfony plugin. That's why i pull-requested to bundle it: https://github.com/Haehnchen/idea-php-symfony2-plugin/pull/1286
What you suggest is an alternative, but i think it unecessary bloats the framework files with IDE specific stuff which is only related to some users, but not all.
If you use PhpStorm IDE when developing with Symfony, it' very likely (makes much sense) you also have the Symfony plugin installed, so it's best to bundle those metafiles as well. These are just there for IDE related stuff and have no meaning for production code.
I see the solution via Composer just as a workaround.

Sure plugin is better too.


Multiclicks SpanButton

Hello I'm using HomeSpan to control 4  accessories with one button, is there an option to add more than double clicks like 3 clicks?
Thank you

Sorry, HomeSpan only directly supports double-clicking.  However, you could create some custom logic/code that tracked the double-clicks and then waited for a short period to act until it sees if there is another single-click or double-click.  I've not tried this before but by maintaining a state variable that tracks clicks may be doable.

Thanks for your swift response, please can you give me a hint of how I can create  this custom logic


2017 rookie names not correct? "K.Golladay" v. "Kenny Golladay"

I ran the nflgame-update-players and I saw that it was having trouble with all the 2017 rookies:

Could not get profile URL for (00-0033932, K.Golladay)
Could not get profile URL for (00-0033283, T.Bowser)
Could not get profile URL for (00-0033280, C.McCaffrey)

I see this is reflected in the week 1 stats where the names are listed as "First Name Abrev.Last Name" ie like K.Golladay, whereas all other players have their full first and last names. It seems then also the player data is returning as UNK,UNK for these rookies.

         Player  Tar  Rec  RuAtt  RecYds  RuYds  OffYds  PaAtt  \

145  K.Golladay (UNK, UNK)  7.0  4.0    0.0    69.0    0.0    69.0    0.0

Simply re-running nflgame-update-players doesn't seem to fix this issue. I wonder if this will self correct after this week? Or has anyone else found a similar issue or work around?

I'm not seeing this issue with my install.
import nflgame
games = nflgame.games(2017, 1, 'CAR', 'CAR', 'REG')
plays = nflgame.combine_max_stats(games)

christian_mccaffrey = nflgame.find('Christian McCaffrey')[0]

print christian_mccaffrey
print plays.playerid(christian_mccaffrey.playerid).formatted_stats()

Christian McCaffrey (RB, CAR)
fumbles_tot: 1, puntret_yds: 7, fumbles_lost: 1, receiving_yac_yds: 37, puntret_tot: 3, fumbles_forced: 1, receiving_rec: 5, rushing_yds: 45, puntret_fair: 1, receiving_yds: 38, rushing_att: 13, receiving_tar: 7, receiving_tds: 0, fumbles_rcv: 0, receiving_lngtd: 0, puntret_ret: 3, puntret_avg: 2, rushing_tds: 0, rushing_twopta: 0, receiving_twopta: 0, receiving_twoptm: 0, rushing_twoptm: 0, puntret_lngtd: 0, rushing_lngtd: 0, fumbles_yds: 0, receiving_lng: 16, puntret_lng: 4, puntret_tds: 0, fumbles_trcv: 0, rushing_lng: 11

Sorry, didn't realize I was posting to nfldb issues.  Same answer, just different code:
import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2017, week=1, team='CAR', season_type='Regular')
q.player(full_name='Christian McCaffrey')

for player in q.as_aggregate():
    print player.player, player

Christian McCaffrey (CAR, RB) {'fumbles_tot': 1L, 'fumbles_forced': 1L, 'rushing_att': 13L, 'puntret_fair': 1L, 'fumbles_lost': 1L, 'receiving_yac_yds': 37L, 'receiving_rec': 5L, 'rushing_yds': 45L, 'puntret_tot': 3L, 'receiving_yds': 38L, 'puntret_yds': 7L, 'receiving_tar': 7L}

Thanks for the reply, as I was suspecting, this fixed itself without any further intervention. Possibly just I need the ~12 hours after games played to update nfldb/nflgame.


Maproulette "submit" button not working.

Description
When I try to complete a MapRoulette task using the new MapRoulette integration it is not working for me. I can do everything else, but when I clisk submit nothing happens.
Screenshots

Version
2.3.1
What browser are you seeing the problem on? What version are you running?
Chrome v125.0
The OS you're using
mac
Steps to reproduce
go to the link listed and then set the mapRoulette challenge id to 43759
then you should see a couple tasks... click on one and then set to "not an issue" and then click submit.... nothing happens.
The browser URL at the time you encountered the bug
https://rapideditor.org/edit#map=21.64/47.60380/-122.33598&background=Mapbox&datasets=fbRoads,msBuildings&disable_features=boundaries&photo_overlay=streetside
The auto-detected useragent string for your browser (leave blank if you're manually filling this form out)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36

Ah thanks @atiannicelli  - I heard a rumor that MapRoulette cycled their API keys this week and people might need to log out of MapRoulette and back into it, to get things working again.   The code in Rapid probably does not account for the possiblity of the key changing, so we'll see if we can handle it better.

Hi @atiannicelli - I wanted to update you that a pull request has been submitted to address the issue reported here regarding the MapRoulette integration. Even after resting the API it still won’t work until this PR is accepted on MapRoulette PR #1127.

For everyone who is pointed here:

MR 4.5.0 had an upgrade to a library that caused "secrets" to be encrypted in the DB.
MR < 4.5.1 also had a problem where the old API key generated by clicking on Reset in the MR user profile ( https://maproulette.org/user/profile ) would put the old API key in OSM user preferences instead of the new api key. You could work around this by logging out and back into MapRoulette.

There is no programmatic way for us (as MR API consumers) to reset the API key without a current API key.
If you (as a user) as encountered this problem, you can "fix" it by doing the following:

Got to https://maproulette.org/user/profile as the editing user (whatever you are logged in as via Rapid or JOSM)
Scroll to the bottom of the page
Hit Reset
Go back to your editor and try again. If it still fails, you may be experiencing an issue where MR isn't putting the new key in OSM preferences. If you encounter this, additional work may be required.

I have asked on #maproulette-dev if it would be possible to run something like UPDATE users SET api_key = null WHERE api_key NOT LIKE '1414|%'; on the DB so we just have to get users to log in to MR instead of also needing to Reset their API keys.

Hey @atiannicelli , I think #1428 fixed this
Can you confirm that things are working in the current Rapid release on https://rapideditor.org/rapid (v2.3.2)

@bhousel yes, I had to refresh my Maproulete API and then logout of rapid and maproulette and then things started working.


[Question]: Llama index and mixtral 8x7B giving random results or returning garbage value ? What are the optimal recommended settings ?

Question Validation

[X] I have searched both the documentation and discord for an answer.

Question
Hi I am trying to setup document retrivel engine using llama index together with mixtral 8x7b in colab environment.  I have questions.
a ) I am getting garbage values in terms of symbols and characters when doing a query .
b)  Sample reponses such as response = llm.complete("Hello! Can you tell me a poem about cats and dogs?")  result in response is something like this 'Final Response: #! ! " ▅!▅
!  	 ▅!  #!#▅  #  !▅$ " #'
why is it so ? It seems to be working with other local llms .
c) Very slow inference time. Is there a way to improve it ? (in colab environment)
Setting the llm
from llama_index.llms import LlamaCPP
from llama_index.llms.llama_utils import messages_to_prompt, completion_to_prompt
llm = LlamaCPP(
    # You can pass in the URL to a GGML model to download it automatically
    model_url = 'https://huggingface.co/TheBloke/Mixtral-8x7B-Instruct-v0.1-GGUF/resolve/main/mixtral-8x7b-instruct-v0.1.Q2_K.gguf',
    #model_path = '/content/mixtral-8x7b-instruct-v0.1.Q2_K.gguf',
    # optionally, you can set the path to a pre-downloaded model instead of model_url
    #model_path='/content/mistral-7b-instruct-v0.2.Q5_K_S.gguf',
    temperature=0.1,
    max_new_tokens=256,
    # llama2 has a context window of 4096 tokens, but we set it lower to allow for some wiggle room 3900
    context_window=3900,
    # kwargs to pass to __call__()
    generate_kwargs={},
    # kwargs to pass to __init__()
    # set to at least 1 to use GPU
    model_kwargs={"n_gpu_layers": 15},
    #n_gpu_layers = 15 ,
    # transform inputs into Llama2 format
    messages_to_prompt=messages_to_prompt,
    completion_to_prompt=completion_to_prompt,
    verbose=True,
)

Setting up llama cpp python
!CMAKE_ARGS="-DLLAMA_CUBLAS=on" FORCE_CMAKE=1 pip install --upgrade --force-reinstall llama-cpp-python --no-cache-dir
Setting up the embedding
from langchain.embeddings.huggingface import HuggingFaceEmbeddings
#from llama_index import LangchainEmbedding, ServiceContext
embed_model = HuggingFaceEmbeddings(
    model_name="intfloat/multilingual-e5-large"
)

Service context
service_context = ServiceContext.from_defaults(
    llm = llm,
    embed_model= embed_model
)

Query engine
from llama_index.retrievers import VectorIndexRetriever

retriever = VectorIndexRetriever(
    index=index,
    similarity_top_k=2,
)

Query
response = query_engine.query("what are the summary of the documents? ")
Any help in this regard would be appreciated

@timtensor the messages_to_prompt and completion_to_prompt there is specific to llama2.
For mixtral instruct, you need to follow their format. https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1#instruction-format
def completion_to_prompt(completion):
  return f"[INST] {completion} [/INST] "

def messages_to_prompt(messages):
  prompt = "\n".join([str(x) for x in messages])
  return completion_to_prompt(prompt)

llm = LlmaCPP(...., completion_to_prompt=completion_to_prompt, messages_to_prompt=messages_to_prompt)

@logan-markewich thank you for the quick reply. But it should not matter for the query response right ? That should be decoded irrespectively

@timtensor hmm good point (sorry, I jumped the gun, didn't read closely enough)
I'm not 100% sure what's happening there. We are taking the output directly from llama.cpp, so maybe it's an issue in that library?

@timtensor could you try use other  method loading Mixtral-8x7B-Instruct-v0.1? do you have mistral api or using those https://github.com/search?q=repo%3Arun-llama%2Fllama_index Mixtral-8x7B-Instruct-v0.1&type=code

@hatianzhang i dont have mixtral api unfortunately .
I am not sure what could be the issue , i tried with the modifications that you had suggested. I think it it working in background as I get prefix hit message.  Answer questions in a positive, helpful and empathetic way. Answer the following question: " + questionText + " [/INST]"

    response = query_engine.query(queryQuestion)

    return response
def completion_to_prompt(completion):
  return f"[INST] {completion} [/INST] "

def messages_to_prompt(messages):
  prompt = "\n".join([str(x) for x in messages])
  return completion_to_prompt(prompt)

Basically calling as follows
TestQuestions = RunQuestion("summarize the document")
If i understand correctly it should work out of the box with llama cpp and llama index .
Also checking the community , perhaps someone has already solved this issue ?

update : it works fine with llama-cpp-python==0.2.23

@timtensor nice! thanks


Activity page - Industrtial Wastewater processing

Description:
NOT APPROVED BY IRC
Wireframe:
Following #253 we have a full stack example of how to generate an activity emissions form using the API form builder service.The implementation here should be very similar to the GSC activitiy page.
Documentation on the full stack steps necessary to create an activity page are in our docs
Use the excel file (BCIERS Reporting Fields V2 in the SME channel files  - Reporting App directory) provided by IRC to determine what the necessary activity, source type, gas type, methodology, reporting fields & related configurations that need to be added are.
Acceptance Criteria:
Given I am on the Industrial Wastewater processing activity form page
When I first land on the page
Then the activity schema is fetched & displayed
Given the schema has rendered correctly
When I make selections that have dependencies (gas type, methodology)
Then the correct options and fields as defined from the configuration are shown
Development Checklist:

[ ] Any activities, source types, gas types, methodologies or reporting fields needed for the configuration that are not already in the database are added
[ ] The configuration relationships have correctly been added to the database
[ ] The many to many reporting field data (if needed) has correctly been added to the database
[ ] The base schema for the activity & source types have been added to the database
[ ] A routing directory/page has been added to both the industry_user & industry_user_admin flows for the activity
[ ] A parent component (named for the activity) has been added to the components in the activity directory
[ ] The page fetches the correct initial activity schema from the API service on initial load
[ ] A uiSchema exists in the components/activities/uiSchema directory for the activity & source types (will move to the database eventually, but can live here for now)
[ ] Conditional fields render dynamically as data is entered
[ ] On selecting a source type (or if there is only one, on loading the page) The first set of data fields is displayed (defaultEmptySourceTypeState)
[ ] Matches the wireframe

Definition of Ready (Note: If any of these points are not applicable, mark N/A)

[ ] User story is included
[ ] User role and type are identified
[ ] Acceptance criteria are included
[ ] Wireframes are included (if required)
[ ] Design / Solution is accepted by Product Owner
[ ] Dependencies are identified (technical, business, regulatory/policy)
[ ] Story has been estimated (under 13 pts)

Definition of Done (Note: If any of these points are not applicable, mark N/A)

[ ] Acceptance criteria are tested by the CI pipeline
[ ] UI meets accessibility requirements
[ ] Configuration changes are documented, documentation and designs are updated
[ ] Passes code peer-review
[ ] Passes QA of Acceptance Criteria with verification in Dev and Test
[ ] Ticket is ready to be merged to main branch
[ ] Can be demoed in Sprint Review
[ ] Bugs or future work cards are identified and created
[ ] Reviewed and approved by Product Owner

Notes:

Approved by BA Oct 24. Removed Blocked label.


Asset Data: The Tool should prompt at defined intervals for validation and/or updates of dynamic data items, including but not limited to names and contact details of key skills.

Would it be easy to make the intervals user defined?  Prior to the start of every hurricane season for Dominica?  Or every wildfire season for a town in California?


[WIP] [DO NOT MERGE!] Rename from balena to balenaEngine

Note: this pull request was created against the resin-os/balena 17.06-resin default branch, but a new one is required against the 17.12-resin branch.

This pull request was created against the resin-os/balena/17.06-resin branch. It has been replaced with PR #103 against the 17.12-resin branch.


[FLINK-5353] [elasticsearch] User-provided failure handler for ElasticsearchSink

Only the last commit is relevant. This PR is based on #3112 so that the functionality is added for all Elasticsearch versions.
It is also based on the work of @static-max in #2861, but with improvements for a more general approach to solve both FLINK-5353 and FLINK-5122. The PR is more of a preview of the functionality for our Elasticsearch users, as proper testing for the expected behaviours is still pending / Javadoc updates.
With this PR, users can now provide a ActionRequestFailureHandler that controls how to deal with a failed Elasticsearch request.
Example:
private static class ExampleActionRequestFailureHandler implements ActionRequestFailureHandler {
    @Override
    boolean onFailure(ActionRequest action, Throwable failure, RequestIndexer indexer) {
        if (failure instanceOf EsRejectedExecutionException) {
             indexer.add(action);
             return false;
        } else if (failure instanceOf ElasticsearchParseException) {
            // simply drop request without failing sink
            return false;
        } else {
            // for all other failures, fail the sink
            return true;
        }
    }
}

The above example will let the sink re-add requests that failed due to queue capacity saturation and drop requests with malformed documents, without failing the sink. For all other failures, the sink will fail. The handler is provided to the constructor of ElasticsearchSink.
Note that the onFailure method is called only after the internal BulkProcessor finishes all backoff retry attempts for temporary EsRejectedExecutionExceptions (saturated ES node queue capacity).
Alternatives:

Currently, all failures reported in the afterBulk callback will be used to invoke onFailure of the handler. We can perhaps just pass some specific exceptions for the user to decide on how to handle them.

The original ElasticsearchSinkFunction and new ActionRequestFailureHandler interface could perhaps be integrated into one.

@fpompermaier @static-max tagging you so that you're aware of this PR. Will be great to hear feedback from you!

I think that's great!

Looks great!
One note: In your example ExampleActionRequestFailureHandler you have to unwrap the Exception, as it is typical looks like:
RemoteTransportException[[Richard Rider][<IP_ADDRESS>:9301][indices:data/write/bulk[s]]]; nested: RemoteTransportException[[Richard Rider][<IP_ADDRESS>:9301][indices:data/write/bulk[s][p]]]; nested: EsRejectedExecutionException[rejected execution of org.elasticsearch.transport.TransportService$4@e5c47a1 on EsThreadPoolExecutor[bulk, queue capacity = 1, org.elasticsearch.common.util.concurrent.EsThreadPoolExecutor@7e2d5cc5[Running, pool size = 8, active threads = 8, queued tasks = 1, completed tasks = 119]]];
In my implementation I use Apache commons:
ExceptionUtils.indexOfThrowable(throwable, EsRejectedExecutionException.class) >= 0

Thanks for the feedbacks. I'll rebase this PR soon.
@static-max thanks for the tip. I'll keep that in mind when updating the docs for this feature!

Any news on this?

Hi @fpompermaier, sorry I was busy with other stuff over the last week.
I hope to work towards merging this by the end of next week!

Manually merged with 3743e898104d79a9813d444d38fa9f86617bb5ef. Review happened in #3358.

Awesome news! Thanks a lot @tzulitai for the great work!


Refactor the management of rocksdb ColumnFamily

Search before asking

[X] I had searched in the issues and found no similar issues.

Motivation
Currently, kvrocks has multiple Column Families, and some configs are written ad-hoc. So, some issues below would be tricky:

https://github.com/apache/kvrocks/issues/2193
https://github.com/apache/kvrocks/issues/2263

Now I think we need a class for owning the kvrocks cf configs.
Solution
A unified CF manager
Are you willing to submit a PR?

[X] I'm willing to submit a PR!

I'm trying to add a code-level refactor on this but I'm feel sick these days, maybe I'll update in coming few days

For setting the write_buff_size for each column family. There are a simple way that i can think of is to extend config set rocksdb.write_buffer_size num command.
For example, the command of config set rocksdb.write_buffer_size [cf_name] num is used to set the buff_size of the specify cf.
More example:
config set rocksdb.write_buffer_size ALL num
# equivalent to `config set rocksdb.write_buffer_size num`
# settings the buff_size for all of column families

config set rocksdb.write_buffer_size MAJOR num
# for major colunm families include metadata and default

config set rocksdb.write_buffer_size MINOR num
# for minor colunm families except for metadata and default

config set rocksdb.write_buffer_size [metadate | default | zset | pubsub | ... ] num
# for specify column family

That's a good idea. However, here are two things that need to be considered:

how to be compatible with old config files
previously I try to make all config keys unique, since it will make the config part more intuitive and easy to process in the code level, especially for GET and REWRITE (I spent lots of time to rewrite code of the config part). But this design will break it.

About the naming of column family:
AS IS:
0 default
1 metadata
2 zset score
3 pubsub
4 propagate
5 stream
6 search

TO BE:
0 primary subkeys
1 key metadatas
2 secondary subkeys
3 pubsub
4 propagate
5 TBD (I don't know why stream should have a seperate cf)
6 search

Also, we should have a better abstraction of the management of column families.
Currently it's too hard to maintain, and these adhoc logic about column families is written randomly in everywhere.

Since it seems very important, I'll add it into our roadmap. cc @mapleFU @git-hulk

Also, we should have a better abstraction of the management of column families.
Currently it's too hard to maintain, and these adhoc logic about column families is written randomly in everywhere.

Agreed, adding the new column family also will break the forward compatibility, we also need to address them while releasing.


Enhancing UI interface

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

@divyalakshmi0 are you really interested?

@Git21221 yes sir

@divyalakshmi0 have you checkout readme file to learn what does this repo do?


Unit tests for habits part 2 (second)

Need to uncomment and rewrite unit tests for HabitStatisticRepoTest and create new test for HabitAssignDtoMapper (Junit 5)

#1670


[Feature request] Tabs with ajax loaded content

I want a tab with ajax loaded content. Something like this:
<uiv-tabs>
    <uiv-tab title="Ajax loaded tab" url="{url}"></uiv-tab>
</uiv-tabs>

This is not a best practice of Vue.js. I suggest you to have a look at how to handle ajax contents in Vue.js.


Error on adding new member to owners team

{
"err": "fail to insert access: UNIQUE constraint failed: access.user_name, access.repo_name, access.mode",
"ok": false
}
Getting this when I try to add a member to the owners list of an organisation
I have found this is when the user is an ordinary member and already exists. So you need to remove the member and then add them again as an owner to fix this bug.

Close for now but open for continuing discussion.


new migration strategy

fix all issues and add support migrations per module. The idea is to make the migration class supporting migration per module so that each module (Namespace) have it's own versioning sequence.

Hi,
Please Review my changes and comments, the setPath() function is changed to be setNamespace()

I can build a new unit test if needed

Sorry - work has me with 2 deadlines this upcoming week which has left me working every night for the last couple of weeks. After this next week, I'll be back and more active on CI4.
Yes, we'll need to tests updated for this, and the docs as well, please.
I know there are some other issues with Travis at the moment that I'm trying to figure out, so just make sure all of the related tests to this are in place and passing and don't worry about the unrelated errors that Travis shows.

I will read about your testing strategy and do it ... please contact me if you need any help I am now nearly free :)

Hi,
I don't know what is the problem with postgresql as It works with mysql ... please note that I added  new field (namespace) in migrations table:
protected function ensureTable()
{
if ($this->db->tableExists($this->table)) {
return;
}
    $forge = \Config\Database::forge();

    $forge->addField([
        'version' => [
            'type' => 'VARCHAR',
            'constraint' => 255,
            'null' => false
        ],
        'group' => [
            'type' => 'VARCHAR',
            'constraint' => 255,
            'null' => false
        ],
        'namespace' => [
            'type' => 'VARCHAR',
            'constraint' => 255,
            'null' => false
        ],
        'time' => [
            'type' => 'INT',
            'constraint' => 11,
            'null' => false
        ]
    ]);

@baselbj If you click through the errors on Travis you'll get to this page which shows the output. Looks like you've got an uppercase N for Namespace in the tests, but the column name is built lowercase. And MySQL does a lot of its comparisons case-insensitive. Seems that Postrgre doesn't like that.

Looking pretty good. Thanks!

Your welcome i will check feeds now

Hi;
I think we need to check the migration documentation I think some the points I added needs to be fixed. and I cant find the class reference.
and As I am new to this github world I didn't find a good tool to test my documentation update. can I check them from the browser on my local machine ?


CI: Add GHA CI to install, test and lint

Description
This PR adds GHA CI to:

Install dependencies
Test the package
Lint the codebase

@whummer I will do this in a follow up PR 👍


Not getting response from chatbot

Hello All,
After doing configuration with pinecone and adding AI key. I am getting this error from chatbot, can someone please help me here?
(Note: Added Pincone configuration, Added Open AI Key, uploaded text document)
Error:
TypeError: Cannot read properties of undefined (reading 'replace')

Going to need some direct output from the logs on this issue. Can you inspect the logs for the backend server or the docker container if available?

I am running it locally not using docker, i used npx flowise start to run the application, but after asking something to chatbot of flowise getting this error in inspect

I wasn't aware of a flowise integration of AnythingLLM or how to connect the two. Regardless the screenshot failed to attach, can you reupload it?

I wasn't aware of a flowise integration of AnythingLLM or how to connect the two. Regardless the screenshot failed to attach, can you reupload it?

Uploaded, Please check once

This is a source code screenshot from the generic xhr.js file in the JS bundle. I would need the logs for your docker container running your anythingllm instance. No information from your browser is required for now.


inlining and recursive processing

I feel that the code in get_ir_of_code is becoming a re-implementation of Pipeline in compiler.py.
I believe we had this function because we want the result IR to be inlined. There are two places where we need inlining:

before type inference. The primary reason for doing this is that the code to be inlined comes untyped, and will get type inference for free once inlined.
after type inference. The primary reason for doing this is when we need type information before we can be sure which code to inline.

So instead of doing recursive processing on demand, which is similar to invoking the most of the pipeline on a function up to a certain point (like rewrite, or array analysis, or even after parfor), I would suggest we add a post-inference inline pass instead, which is what replace_parallel_functions currently does. This should cut down on the complexity of having to do recursive processing, and simplify things quite a bit. (I actually had already implemented it in a separate branch, which works out great)
Now this is getting awfully similar to what rewrite pass is about, which unfortunately only gives access to things on a per-block basis. But I think a solution to merge inline with rewrite can come in the future.
What do you think? @ehsantn @DrTodd13

I think having a separate typed inline pass can be cleaner, but handling all the use cases of get_ir_of_code and compile_to_numba_ir can be challenging since fine-grained control might be required. For example, HPAT replaces some functions based on conditions such as input values, and this logic can't be passed as parameter to a separate pass easily. We can have a meeting to discuss the specifics.


Vmware has deprecated and removed DSA key - Only include RSA GPG key

as per #67 we need to no longer reference the DSA key for RHEL based OS's for vmware tools installs, this PR removes the references the DSA keys that give the 404 error

I had exactly the same problem.
Can you fix it quickly please.


to save as png format of added object on image editor like free drawing, line drawing programmatically not like right click on mouse and save as png

Version

Development Environment

Current Behavior

// Write example code

Expected Behavior

Please write down the issue in detail and create it again.


Add magit-gitflow suport

Can you add magit-gitflow support, just add (maybe-require-package 'magit-gitflow) to init-git.el, and then (add-hook 'magit-mode-hook 'turn-on-magit-gitflow).
Thanks.

Hi - thanks for getting in touch, but I don't need that package myself, so I'm not going to add it to the config. But you can easily add it in your own fork as described in the README.

OK, thanks.


fix(core): make sure queries initialize correctly

setQueries sets them, so it needs to be set before setResult, where we already access this.queries
closes #6369

I am not sure it is related to this commit, but with the latest version (just updated from 5.8.4), the combine method is now called first with an empty array instead of results, and those are populated after the first run.

looking at the code, the constructor has always called:
this.#setResult([])

and setResult calls combine, so this seems to have always been the case.


Made SocketIO implementation compatible with .NET Standard

System.Runtime.Remoting.Messaging.AsyncResult is not part of .NET Standard 2.0.
My fix is based on the last example here:
https://msdn.microsoft.com/en-us/library/2e08f6yc(v=vs.85).aspx

We'd very much would like to see this merged as well, right now Leanplum is the only SDK preventing us from using .NET Standard 2.0...

Since this part of the SDK is included in the project as a source code it's easy to modify it for local use.

Fixed in 1.7.3


Manage internal hand collisions

As of now the hand has disabled selfCollision, which is necessary due to the structure with mimic joints (and fake links in between) which won't be neglected when considering collisions.
Nonetheless, far apart links should be colliding with the others in order to avoid useless compenetration.
This could probably be fixed with a (clever) update of the link geometries, but needs thorough thinking.
@arocchi @carlosjoserg

This could be solved within Gazebo6, which has a new feature of collide bitmask implemented... @arocchi @carlosjoserg  would it be possible to go forward with Gazebo? Will we have too many compatibility issues?
This will need to be done soon enough anyway I guess...

Looks like a nice feature for what it is required. Pity it is not available as of Gazebo5, which is the official in Jade, and to where we should be migrating everything to soon as well. Mainly because we rely a lot in the gazebo_ros package and there are also nice features in ros control available only in Jade.
I suppose that if we migrate everything to Jade, the use of Gazebo6 will be smoother (hopefully) too.
Should we start a branch as jade-migration? (I'd prefer to keep a master branch with the current supporting system, and in that case we can simply tag the commit with indigo-compatible or something).

@carlosjoserg, @hamalMarino I would like to stay in Indigo at least till the end of the current work we are doing, but I see the need for a migration plan. I would like to leave the details to you @carlosjoserg, and add a few practical points:
the feature Gazebo is exporting now is an interface to the underlying bitmasking which is done internally by ODE and the likes. What we could do is add some specific code in the Load method of gazebo_ros_soft_hand_plugin that does what Gazebo6 does also in previous Gazebo versions, directly in the plugin code. Again, it should not be difficult, and for sure it is trivial in ODE. By programming the feature in this way, SDF will be ready for Gazebo6 starting now, but we will have the same feature backported to the current setup.
This is related to #9, meaning that what we should do is provide an SDF of the hand (eventually, also precompiled) with the Gearbox and Surface elements inserted, by means of some script i guess..
What do you guys think?
I can start working on Gearboxes already tomorrow morning, maybe if we coordinate we could try this approach in parallel, so let's say I could give a stab at Gearboxes tomorrow morning and Wednesday morning we could coordinate to properly enable self-collisions.

The branch cropped-collisions contains one commit only that can be cherry-picked for testing with the collision geometries modified such that flexion joints do not touch.

:+1:

Had a look at them, @carlosjoserg , and they seem good geometries: I will test how it works as soon as we get #9

Now they work decently both in Gazebo4 and Gazebo6 (the latter is solved in the right way, i.e. using collision bitmask), respectively in the branches cropped-collisions and self-collisions-gazebo6
@carlosjoserg @arocchi

:clap: :clap:  :clap:


Connect with Heroku postgres

I am working with Heroku and I use pdox in my app. I'm having trouble connecting to Heroku's postgres database using Pdox, I believe the solution would be to pass the connection Heroku gives me so that Pdox can work, I see how Heroku works:
<?php
# This function reads your DATABASE_URL configuration automatically set by Heroku
# the return value is a string that will work with pg_connect
function pg_connection_string() {
  return "dbname=abcdefg host=****.amazonaws.com port=5432 user=**** password=**** sslmode=require";
}

# Establish db connection
$db = pg_connect(pg_connection_string());
if (!$db) {
    echo "Database connection error."
    exit;
}

$result = pg_query($db, "SELECT statement goes here");

I needed to pass $db to Pdox instead of a $config, which is the best way I could do this:
$dbPdox = new \Buki\Pdox($db);

Hi @noloop ,
I see your problem. Maybe, we can make a such feature. But you should still use PDO for this. Because, PDOx library is using PDO object to connect Database and its all operations.
If you can use PDO object to connect your database, we can make some improvements about that.
It is make sense for you?
Thanks.

Hi @izniburak ,
I can use the PDO yes, see:
$db = (function(){
    $parts = (parse_url(getenv('DATABASE_URL') ?: 'postgresql://username:password@localhost:5432/my-database-name'));
    extract($parts);
    $path = ltrim($path, "/");
    return new PDO("pgsql:host={$host};port={$port};dbname={$path}", $user, $pass);
})();

How would PDOx use this PDO object $db instead of $config?

I try connect so:
<?php
$config = [
	'host' =>  'myaddress.compute-1.amazonaws.com:5432',
	'driver' =>  'pgsql',
	'database' => 'mybdname',
	'username' => 'myusername',
	'password' => 'mypass',
	'charset' => 'utf8',
	'collation' => 'utf8_general_ci',
	'prefix' => ''
];
$db = new \Buki\Pdox($config);

I receiving:

Cannot the connect to Database with PDO. SQLSTATE[08006] [7] could not translate host name "myaddress.compute-1.amazonaws.com:5432" to address: Name or service not know

I try again so, without port:
<?php
$config = [
	'host' =>  'myaddress.compute-1.amazonaws.com',
	'driver' =>  'pgsql',
	'database' => 'mybdname',
	'username' => 'myusername',
	'password' => 'mypass',
	'charset' => 'utf8',
	'collation' => 'utf8_general_ci',
	'prefix' => ''
];
$db = new \Buki\Pdox($config);

And worked now. But there is one bad news for me, postgres ins't case sensitive, all my model code write in camelCase. I have a big work now.

Hi @noloop
So, has the problem been solved?

@izniburak yes, but there is a new problem that has appeared, "AS" is not working in "psql" mode, this should like this? or something is wrong?

@noloop you mean i guess "as" is alias keyword, right? If this keyword is a problem for Postgre, i can make some improvements about that. What do we have to do? Maybe we can remove "as" keyword in the query which will be generated when we use Postgre.

@izniburak Example in a postgres database with a table called "category" with two fields "idcategory" and "namecategory" without camelCase because postgres doesn't case sensitive when I do try:
$rows = $this->conn->select(['idCategory', 'nameCategory'])
                       ->table('Category')
                       ->orderBy('idCategory')
                       ->getAll();

It works even though I select with camelCase, but the $rows array gives me objects with properties whihout camelCase, like this:
foreach($rows as $key => $value) {
  $categories[$value->namecategory] = $value->idcategory ;
}

And if I try to change the names to:
$rows = $this->conn->select(['idCategory AS idCategory', 'nameCategory AS nameCategory'])
                       ->table('Category')
                       ->orderBy('idCategory')
                       ->getAll();

or
$rows = $this->conn->select(['idcategory AS idCategory', 'namecategory AS nameCategory'])
                       ->table('Category')
                       ->orderBy('idCategory')
                       ->getAll();

does not work yet the generated object gives me names without camelCase.

Actually, PDOx returns datas what you specified directly. I mean, if you specified a column as camelCase, it will return as camelCase. I'm try to understand the problem. If I find any issue regarding to this, I will try to fix it.
Thanks.

@izniburak It's not returning camelCase, it's returning without camelcase, because the postgres database doesn't support camelCase, but I'm calling with camelCase and it still works, which shouldn't, so I try to rename it and it doesn't work, still returning me without camelCase . This only happens with pgsql, with mysql everything works as expected.

@noloop do you have any advice for this? If postgre don't have camelCase support, why do you try to use camelCase? I guess i could not understand the problem completely.

@izniburak In postegre I have a table named "category" with a field "namecategory", the problem is that selecting "nameCategory" in the table "Category" works and returns me an array with objects with the property "namecategory", it should not work since I do not have any table in the "Category" post that has a "nameCategory" property.

I'm in my database:
CREATE TABLE "Category" (
    "idCategory" SERIAL,
    "nameCategory" VARCHAR(255) NOT NULL,
    CONSTRAINT "PK_Category"
        PRIMARY KEY ("idCategory"));

When I use PDOX for get all categories:
 $rows = $this->conn->select(['idCategory', 'nameCategory'])
                       ->table('Category')
                       ->orderBy('idCategory')
                       ->getAll();
    var_dump($rows);

I received:
array(4) {
  [0]=>
  object(stdClass)#23 (2) {
    ["idcategory"]=>
    int(1)
    ["namecategory"]=>
    string(7) "Romance"
  }
  [1]=>
  object(stdClass)#24 (2) {
    ["idcategory"]=>
    int(2)
    ["namecategory"]=>
    string(7) "Poesias"
  }
  [2]=>
  object(stdClass)#25 (2) {
    ["idcategory"]=>
    int(3)
    ["namecategory"]=>
    string(6) "Contos"
  }
  [3]=>
  object(stdClass)#26 (2) {
    ["idcategory"]=>
    int(4)
    ["namecategory"]=>
    string(5) "Artes"
  }
}

See the object fields in lower case and not camelCase.

I think, the problem is not related to PDOx. I guess PDO is converting all column to lowercase from camelCase. For now I don't know what can we do for this. I will research.
Thanks.

@izniburak I think the problem is that PDOX is not using quotes to fetch columns from the database, so PDO converts to lowercase as is the default for pgsql when you don't have double quotes.
The solution would be write queries with quotes when using pgsql.

@izniburak I believe that should look like this:
$query = 'SELECT ' . '"'. $this->select . '"' . ' FROM ' . '"'. $this->from. '"';
``
This for all SQL instructions.

@noloop , I see. it may make sense. I will try this on all databases that provided in PDOx. If we get any result, I will try to fix it asap.
Thanks.

@izniburak If you need help, I can test on MySQL and Postgres I have here.

@izniburak Do you work in this? Because my system is dependent of the Pdox, I'm stopped. Case don't you working, I should start work this week.
I'm asking this for don't start work that you may be ending.

Hi @noloop , I'm working on it but last week i did not have any time because of personal works. I will interest this in this week. If you have time, maybe you can open a PR for it.
Thanks.

@noloop I think so. Btw, Can backtick char (`) solve the this problem, you think?