Declare command timeout

Environment information

ape and plugin versions:

$ ape --version
# 0.4.0

$ ape plugins list
# Installed Plugins:
  starknet    0.4.0a0
  solidity    0.4.0
  hardhat     0.4.0
  cairo       0.4.0a0

Python Version:Python 3.9.13
OS: linux

What went wrong?
Please include information like:

When provider.declare() command is used   ServerDisconnectedError: Server disconnected error is received. If I use declare for different contract with lesser LOC,  there is no problem.  Timeout default value should be increased for contracts with high loc.
def declare(name: str) -> int:
    project = ape.project.get_contract(contract)
    return project.provider.declare(project).class_hash

Output:
self = <aiohttp.client_proto.ResponseHandler object at 0x7f30ca3b42e0>

    async def read(self) -> _T:
        if not self._buffer and not self._eof:
            assert not self._waiter
            self._waiter = self._loop.create_future()
            try:
               await self._waiter
               aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

../../.cache/pypoetry/virtualenvs/sithswap-jcoMElJJ-py3.9/lib/python3.9/site-packages/aiohttp/streams.py:616: ServerDisconnectedError
INFO     starknet_stdout_subprocessProviderLogger:providers.py:1064 b'[2022-08-22 11:37:25 +0300] [28700] [INFO] <IP_ADDRESS> - - [22/Aug/2022:11:37:25 +0300] "GET / HTTP/1.1" 404 232 "-" "Python-urllib/3.9"\n'
INFO     starknet_stdout_subprocessProviderLogger:providers.py:1064 b'[2022-08-22 11:37:38 +0300] [28700] [INFO] <IP_ADDRESS> - - [22/Aug/2022:11:37:38 +0300] "GET / HTTP/1.1" 404 232 "-" "Python-urllib/3.9"\n'
INFO     starknet_stdout_subprocessProviderLogger:providers.py:1064 b'[2022-08-22 11:38:10 +0300] [28647] [CRITICAL] WORKER TIMEOUT (pid:28700)\n'
INFO     starknet_stdout_subprocessProviderLogger:providers.py:1054 * Listening on http://<IP_ADDRESS>:8545/ (Press CTRL+C to quit)
===================================================== short test summary info =====================================================
ERROR tests/cairo/test_SithSwapV1Factory.py::test_factory - aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

How can it be fixed?
Fill this in if you have ideas on how the bug could be fixed.

Do you know if there is a way to do this yet in Starknet.py?

I tried to reproduce by generating and using an 8000 line contract in a declare. It seems to work for me. I wonder if there is anything else specific besides LOC that could be affecting this?

I tried the same test in the virtual environment with ape test command and test passed. We use poetry to call ape commands, this issue could be related to our setup. Sorry for taking your time.


No example of how to use optional configurations for Python V2 model

In the 'Optional Configuration' section, it explains the 3 different configurations that can be used in the Python V2 model, but doesn't explain how you would implement them.
It links to a host.json reference page, which also gives no information about how to use and implement these configurations (i.e. where exactly in the host.json file to put them, what values they can take, etc).
This would be very useful to see and would save the developer from multiple attempts before success, giving a better user experience.

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

ID: 4ae29079-5afb-aae0-cf91-05a255f56a0b
Version Independent ID: 9edf22a4-9bc7-e425-895e-ca88a08a01bb
Content: Azure SQL trigger for Functions
Content Source: articles/azure-functions/functions-bindings-azure-sql-trigger.md
Service: azure-functions
GitHub Login: @JetterMcTedder
Microsoft Alias: bspendolini

@lukeosborn-cfg @MayankBargali-MSFT  work in progress...give me a week or 2.

@MayankBargali-MSFT this is done, you can close this.


Declutter global scope

This PR moves some variable definitions into a new function, ode_config, to help further declutter the global scope.

bors r+


[BUG] Create a new image with same url but different name, it would stuck and failed with error

Describe the bug

When we add an image from url and create a VM.
After we create another image with the same url but different name

The image will first in Pending state  for a long time (more than 10 minutes)

And finally failed and display the error message
Failed to process sync file: Get "https://mirror.tspu.ru/opensuse/repositories/Cloud%!A(MISSING)/Images%!A(MISSING)/Leap_15.3/images/openSUSE-Leap-15.3.x86_64-NoCloud.qcow2": context deadline exceeded

If we delete both of the images and recreate them using the same name and url , It will failed with response 503 error

To Reproduce
Steps to reproduce the behavior:

Create an image from url given name opensuse
https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.3/images/openSUSE-Leap-15.3.x86_64-NoCloud.qcow2
And create a VM using image opensuse
Then create another image with the same url but different name suse
Check the image creation state
Delete both image opensuse and suse
Create another image with the same name opensuse and the same url
Check the image creation state

Expected behavior

Can create image using same url but different name correctly.
Support bundle

supportbundle_28daee29-b546-41a9-85e7-a4d2ca5e1c51_2023-07-19T09-51-01Z.zip
Environment

Harvester ISO version: v1.2.0-rc3
Underlying Infrastructure (e.g. Baremetal with Dell PowerEdge R630): Single node on local kvm machine

Additional context
Volume state

Indeed, on the second try in a short interval would also encounter the same error.

Let me wait for longer time and try the create image from url for the check.

In the another try, I can create the opensue image from the same URL with different image name
https://download.opensuse.org/repositories/Cloud:/Images:/Leap_15.3/images/openSUSE-Leap-15.3.x86_64-NoCloud.qcow2
The original case might be I got the different download source from mirror system.

The download failed due to a different mirrored site; please re-open if needed.


feat(ngTouch): Service as well as directive

ngTouch has a great directive for handling swipes. On my project, I need to register a swipe no matter what div it was done on and also would like to publish this swipe to all subscribers. Because of this need I had to retrofit the directive as a service. Would it be beneficial to include a service (that actually interprets the swipe) as well as the directive?

I'm closing this issue since the ngTouch module will be deprecated in AngularJS 1.7.0, and we will not do any more work on it. This is because touch handling is a complex topic, and there are stand-alone libraries that are better equipped to handle all the nuances and edge cases. For example, https://hammerjs.github.io/, which is also used by Angular.


Do not activate on onLanguage:html

Testing https://github.com/microsoft/vscode/issues/158835
I think this activation event is too aggressive and will cause the extension to load a lot of the time when it doesn't end up getting used.

Good point. I originally thought I did that because I wanted the preview icon to appear on the top right corner of the editor when it was on an HTML file, but it seems to do that even without activation event.

Yep, the activation is just about when the activate call in the code runs, all the package.json stuff gets loaded in before activating

for verifier -> use this version of live preview:
ms-vscode.live-server.0.2.14.zip


Your talk, the ghost example

At first, thanks for your talk (on youtube), I learned some nice tricks by watching it and looking at your code.
Unfortunately your ghost example fails for me and I assume it might be related to ansible updates or so.
The task "[wait for mariadb to become ready]" fails for me:
TASK [wait for mariadb to become ready] *********************************************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: u\"hostvars['my-ghost-db']\" is undefined\n\nThe error appears to have been in ' [..] /ansible-docker/examples/ghost/ghost.yml': line 60, column 7, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n    - name: wait for mariadb to become ready\n      ^ here\n"}

I already tried to understand and fix your construct of determining the IP of the mariadb container, but so far without success ;-) maybe you could take a look ...

Hello, thanks for letting me know of your trouble. I've just updated all examples in this repository.
However, you problem is probably related to the fact, that you weren't running the ansible command from the examples directory, where the ansible.cfg file is stored, so the ansible didn't load the configuration for dynamic docker inventory, and thus the failed task couldn't find the my-ghost-db host. I've also added section to the README about this.
Let me know if you still have some troubles.

correct, works now for me as well, thanks. I will see how things go when I write my own configs based on your tricks ... I don't only use it on localhost but with $DOCKER_HOST=tcp://...  so that might give me some new issues (but not necessarily related to your code here).


A few small fixes

Fix ChainSyncer handling of body/receipts/node requests from peers

When handling body/receipts requests for blocks we don't know, we'd
fail with an undhandled HeaderNotFound
Handling of trie Node requests didn't work on trinity because it
used a ChainDB method that was not exposed in trinity's ChainDBProxy

Re-enable PeerPool's periodically reporting of peer stats
It had been accidentally removed.
Make logging less noisy by using a new (LOG_TRACE) level
Peer was logging (with DEBUG level) all received/sent msgs, making it so
noisy that we had to forcibly set its level to INFO on trinity. This
changes it to log those on a different level that is currently never shown
when running trinity
Similaryly, change all debug() logs in evm/vm to use the new level as those
make trinity's log pretty much useless when syncing in regular
(block processing) mode

I didn't know about TraceLogger! Thanks for pointing it out, @cburgdorf. Updated to use it

@pipermerriam even better, since that typo made that ignore useless, I guess it can be removed entirely as it seems we don't need to ignore there.


Adding pause and resume feature

This feature introduces a pause and resume functionality for the clock, allowing users to temporarily halt the timer or stopwatch and then resume it without losing track of the elapsed time. This addition is particularly useful for applications where users may need to take breaks or attend to interruptions without needing to restart the clock.

I would like to work on this issue

Well sorry to inform both of you but this feature is already there so i am closing this issue.


React.AspNet 'IServiceCollection' collection error ASP.NET 5 beta 5

In project.json
  "dependencies": {
    "Microsoft.AspNet.Server.IIS": "1.0.0-beta5",
    "Microsoft.AspNet.Server.WebListener": "1.0.0-beta5",
    "React.AspNet": "1.5.2"
  },

  "frameworks": {
    "dnx451": { }
  },

In the Startup.cs class, it shows the following error only after adding React.AspNet. With just default empty project, it's working fine.
Severity	Code	Description	Project	File	Line
Error	CS0433	The type 'IServiceCollection' exists in both 'Microsoft.Framework.DependencyInjection.Abstractions, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' and 'Microsoft.Framework.DependencyInjection.Interfaces, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null'	AspNet.ReactJS.DNX 4.5.1	J:\vsproj\AspNet.ReactJS\src\AspNet.ReactJS\Startup.cs	14

Can you please try again with React.AspNet 1.5.3? 1.5.2 had a dependency on beta4 rather than beta5.

I didn't get the compilation error. It works fine.


 Currently, the only way to perform such operations is through low level interactions with the Hydra node's API and no easy way for developers of web based applications to implement these.
What
Within this feature we want to take first step in this direction and focus on the interaction with UTxO one owns in an already open Hydra Head.

Extend MeshJS to support interacting with the hydra-node directly to build transactions

This requires an open Hydra head
The SDK needs to be provided with connection info to a hydra-node
Query the UTXO set of a head
Construct and submit transactions into the head (L2 cardano transactions via NewTx)

Extend Nami (or an other straightforward) with this SDK to perform the operations mentioned above.

Create a minimalistic web page, that shows balance in a head and can construct & sign a transaction using a CIP-30 connected wallet.

Update Hydraw to not need the backend component

Out of scope: Integrated experience where the wallet knows about the Hydra head(s).

How

Might want to see whether someone else isn't doing this already
Hacked together prototype for a lucid provider in hydra-doom: https://github.com/cardano-scaling/hydra-doom/blob/main/src/lucid-provider-hydra.ts
Another stab at a websocket connection we took on hydra-poll: https://github.com/cardano-scaling/hydra-poll/tree/main/src/lib/hydra-ws

Open questions

How exactly are we pointing to a hydra-node?
Discover hydra heads / nodes for a head?

@colll78  @Quantumplation


executables duplication

we need to check dependency executables that alias is same and show the conflict and ask for fix/

duplicated #39


Don't include billing contact details in repo

At the moment, we include our actual contact details in the repo for generating statements, we should put dummy details in instead.

Ready for review.

@hodgestar turns out we don't actually need to modify tests because we stub out the contact details in tests.

@justinvdm Woot (on the stubbing)

:+1:


The searcbar does not autofocus on text input on Android device

The searcbar does not autofocus on text input on Android device. The auto focus does not work even when setting true for focusOnLayout. IOS device shows focus on text box even without focusOnLayout prop
<SearchBar
ref={(search) => this.search = search}
//data={items}
//handleResults={this._handleResults}
focusOnLayout= {true}
handleChangeText={(input) => this._handleSearchResults(input)}
onBack={() => this._handleSearchBack()}
//hideBack={true}
//showOnLoad
onBlur={() => this._handleSearchBar()}
onSubmitEditing={() => this._handleSearchSubmit()}
/>

any update on this issue?

Hi, i forked the library and added the prop of autoFocus for myself. You can do that if you want.

Hi,
Thanks for replying back. But I wanted to deploy the app and wanted that
feature. Please if you can merge that part. Will be very thankful to you.
On Mon, Apr 9, 2018 at 11:45 AM, ZeerakHameem<EMAIL_ADDRESS>wrote:

Hi, i forked the library and added the prop of autoFocus for myself. You
can do that if you want.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/localz/react-native-searchbar/issues/54#issuecomment-379644848,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AiW7_VCPKeutmnPwFXnaDgMuztg9Eq7wks5tmvxvgaJpZM4SSD0N
.

I've tested focusOnLayout with React Native 0.55.4 and Android API 27. It's working as expected. In which versions are you seeing this?


[doc] broken link in tf.logging

System information

Doc Link: https://www.tensorflow.org/api_docs/python/tf/logging

Describe the documentation issue

Defined in tensorflow/_api/v1/logging/ _ _ init _ _.py.

The link for _ _ init _ _.py is broken: https://www.tensorflow.org/code/stable/tensorflow/_api/v1/logging/init.py
https://www.tensorflow.org/api_docs/python/tf/logging

what is its original link

@shashvatshahi1998
you can click the links of other functions in the same page and you'll find the expected link.
Then a pullrequest.

So we have to just put the correct link for tf.logging in tensorflow guide, thats the only issue???

There is a file for changing links and I am not getting the link of that sheet where we can edit the link which is on the guide page of tf.logging

Actually tf.logging is removed in new version of TF that is 2.0.0 so that's why the link their is of no use as tensorflow is focussing to change complete documentation for TF2.0. You can also refer to issue #26662

@csukuangfj   Thanks for bringing this to our notice. We will take a look and resolve it. Thanks!

For me, except init.py link (https://www.tensorflow.org/code/stable/tensorflow/_api/v1/logging/init.py) everything else is working. Thanks!

Faced no logging module in tensorflow 2.0, which is obvious. Any update on this?
And if logging is not available in tensorflow 2.0 what is the alternative for logging, pure python logging?


[RFC] Remove Cookie Session Handler in 3.0

From docs: https://github.com/nelmio/NelmioSecurityBundle#cookie-session-handler

You can configure the session handler to use a cookie based storage. There are various reasons to do this, but generally speaking unless you have a very good one you should avoid it.

I think we can remove it in version 3.0, apparently it's only about creating a CookieSessionHandler that the few users using this can implement in their projects (IMHO it doesn't fit in a SecurityBundle).

I'm not sure.. It's hard to tell how used this is, I guess typically people would do this with JWT in a cookie nowadays?
I think it's probably fine to remove, and see how many people complain.. It can always be added back if needed.


Linter should check that the version is increased

As mentioned in our documentation:

The version needs to be increased every time you modify an existing package.

Otherwise, the higest old version will be installed and tested in our CI and the change in the package won't have effect. The linter should complain about this.
This has been an issue recently in several PR that were using the date as version in the format day.month.year or month.day.year instead of using the tool version. We should use the tool version and not the date. If there is no tool version, the version should be 0.0.0.YYYYMMDD, using the 4th segment for the date. For example:

https://github.com/mandiant/VM-Packages/pull/621#discussion_r1318383221
https://github.com/mandiant/VM-Packages/pull/632#discussion_r1311492612

The linter should check that the version follows the correct format (this is done already) and also that the version has been increased.
All this is already documented in our wiki, but if someone feels it needs more detail, please improve the Wiki as well. 😄

One problem to enforce this in the linter is that it will fail if we decrease the version because it is wrong. We have done this a few times by deleting the current packages in myget.


Dollar symbol not being rendered on Android HTC One M9 phone

Description

A plain text dollar symbol ($) is not being rendered inside a TDS React component (Radio). Instead, another symbol (a circle with four strokes on it) is rendered.

Reproduction Steps

Get an HTC One M9 phone (there's on in the QA device cabinet cc Ben Chen)
Log in as a user eligible for payment arrangement
Go to payment arrangement page
Check dollar amounts

Reproduction Percentage (if applicable)

always, also repro'd by @amelcharai in Billing page

Meta

TDS version: v1.0.3
Willing to develop solution: Yes
Has workaround: No
High impact: No

Screenshots

To my understanding issues are normally not associated with a particular device, but platform version / browser version / view port. Are you able to get those and reproduce on a emulator / device with same environment?

@yawaramin

A plain text dollar symbol ($) is not being rendered inside a TDS React component (Radio)

My assumption here is that this oddity is not specific to the Radio component. Does the same thing happen outside of that component?
I'm also assuming that this must have something to do with the web font, and not really specific to any TDS components. Do you see the same behaviour if you take TDS, and React for that matter, out of the equation?
Here is a simple HTML page to test with that only loads the TELUS Web font face:
<!DOCTYPE html>

  <title>Test dollar sign</title>

Here is the dollar sign: $

Thanks Ryan for the simplified test case. I'll retrieve that phone and check on Monday.
@Nintendot thanks Ben, I'll also add those details here on Monday.

Closing due to inactivity. Feel free to add a comment if this is still needed.


HLSL legalization for isomorphic function parameter

It would be great if HLSL legalization handled function parameter passing where the argument is actually isomorphic to the parameter but their types are not the same.
For the following HLSL code,
struct R {
  int a;
  void incr() { ++a; }
};

void decr(inout R b) {
  b.a--;
}

RWStructuredBuffer<R> rwsb;

void main() {
  rwsb[0].incr();
  decr(rwsb[0]);
}

DXC generates the following SPIR-V code for calling rwsb[0].incr(); and decr(rwsb[0]);
               OpMemberDecorate %R 0 Offset 0
...
          %R = OpTypeStruct %int
        %R_0 = OpTypeStruct %int
%_ptr_Function_R_0 = OpTypePointer Function %R_0
%_ptr_Uniform_R = OpTypePointer Uniform %R
       %rwsb = OpVariable %_ptr_Uniform_type_RWStructuredBuffer_R Uniform
...
 %temp_var_R = OpVariable %_ptr_Function_R_0 Function
%param_var_b = OpVariable %_ptr_Function_R_0 Function
         %26 = OpAccessChain %_ptr_Uniform_R %rwsb %int_0 %uint_0
         %27 = OpLoad %R %26
         %28 = OpCompositeExtract %int %27 0
         %29 = OpCompositeConstruct %R_0 %28
               OpStore %temp_var_R %29
         %30 = OpFunctionCall %void %R_incr %temp_var_R
         %32 = OpLoad %R_0 %temp_var_R
         %33 = OpCompositeExtract %int %32 0
         %34 = OpCompositeConstruct %R %33
               OpStore %26 %34
         %35 = OpAccessChain %_ptr_Uniform_R %rwsb %int_0 %uint_0
         %36 = OpLoad %R %35
         %37 = OpCompositeExtract %int %36 0
         %38 = OpCompositeConstruct %R_0 %37
               OpStore %param_var_b %38
         %39 = OpFunctionCall %void %decr %param_var_b
         %41 = OpLoad %R_0 %param_var_b
         %42 = OpCompositeExtract %int %41 0
         %43 = OpCompositeConstruct %R %42
               OpStore %35 %43

After fixing #2430, the reason why we cannot directly pass

%26 = OpAccessChain %_ptr_Uniform_R %rwsb %int_0 %uint_0 to %R_incr
%35 = OpAccessChain %_ptr_Uniform_R %rwsb %int_0 %uint_0 to %decr
because %R and %R_0 are different types.

It would be nice if HLSL legalization checked isomorphism between the parameter type and the argument type and handled it.
We need two steps for this:

[ ] spirv-val allows a function argument that is different from the parameter type but they are isomorphic when --relax-logical-pointer option is enabled.
[ ] spirv-opt HLSL legalization handles it.

test.txt is the full SPIR-V code for the HLSL code.

Why piggy-back the spirv-val behavior on --relax-logical-pointer? Would it be better to create a new option, something like --allow-isomorphic-types?

Thanks for the suggestion Greg.  We were thinking of using relax-logical-pointer because it still falls under the use of pointers.  We are allowing the mismatch of what pointer is expected and what is actually give as long as the types are isomorphic and the decorations of the actual type are a superset of the expected type.
However, we do not plan on allowing a mismatch of non pointer types.

@greg-lunarg If you have a particular reason to separate the two let us know.  We are not tied to a specific implementation.  I can see how the name of the option is not very informative.

For now I will work on extending the fix up storage class pass to also fix up the type.  This is more work because the change in type can propagate through a lot more instructions.

I want to share three examples that need the legalization.
See attachments (*.hlsl.txt contain hlsl code and the corresponding *.spv.txt contain SPIR-V code compiled by each of them)
cs.groupshared.function-param.out.hlsl.txt
cs.groupshared.function-param.out.spv.txt
cs.groupshared.struct-function.hlsl.txt
cs.groupshared.struct-function.spv.txt
fn.param.isomorphism.hlsl.txt
fn.param.isomorphism.spv.txt


AerialBuffer does not update when in global mode while moving between splits

Describe the bug
When you have split buffers, AerialBuffer does not update on change between buffers. Additionally, toggling AerialBuffer while in the split that did not initiate the toggle causes a second Aerial Buffer to appear
System information

OS: linux (Ubuntu 20.04 LTS)
Neovim version: 0.7 (appimage)
AerialInfo:

Aerial Info
-----------
Filetype: lua
Configured backends:
  treesitter (supported) (attached)
  lsp (not supported) [LSP client not attached]
  markdown (not supported) [Filetype is not markdown]
Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct

Aerial config:

local excluded_filetypes_array = {'lsp-installer', 'lspinfo', 'Outline', 'help', 'packer', 'netrw', 'qf', 'dbui', 'Trouble', 'fugitive'}
require('aerial').setup({
    default_bindings = false,
    ignore = { filetypes = excluded_filetypes_array },
    placement_editor_edge = true,
    update_events = "TextChanged,InsertLeave,WinEnter,WinLeave",
    show_guides = true,
})
vim.api.nvim_set_keymap('n',  '<Enter>' , ':AerialToggle! right<CR>',  {noremap = true, silent = true})

To Reproduce
Steps to reproduce the behavior:

Open a file that is supported (I demoed this issue by opening util.lua from this project)
:AerialToggle! right
:vsplit (or :split, whatever your heart desires)
Open a new file in your split, I used the readme from this project

Screenshots to show what this looks like

If possible, provide a minimal file that will trigger the issue:
local install_path = vim.fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
    packer_bootstrap = vim.fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
end
require('packer').startup(function(use)
    use {
        'nvim-treesitter/nvim-treesitter', run = ':TSUpdate | TSInstall lua'
    }
    use 'stevearc/aerial.nvim'
end)
require('aerial').setup({
    default_bindings = false,
    ignore = { filetypes = excluded_filetypes_array },
    placement_editor_edge = true,
    update_events = "TextChanged,InsertLeave,WinEnter,WinLeave",
    show_guides = true,
})
vim.api.nvim_set_keymap('n', '<Enter>', ':AerialToggle! right<CR>', {noremap=true, silent=true})

Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
So there appears to be 2 issues at play here.

The autocommand is caught and handled by Aerial (verified by our trusty print statement which I added right above line 8
in backends/util.lua, however it doesn't actually refresh its buffer with new content
The more fun issue, if you go to the other split and press Enter again (triggering the :AerialToggle! right mapped comment), you get a !

I dont know much about the code base here (super fascinating project by the way!) but I am guessing there is an issue with how Aerial establishes if its buffer is open.
Maybe I am using it wrong?
Potentially Related: #95

After some digging through the code, it appears this is related to how Aerial Buffer numbers are stored.
See lua/aerial/util.lua:115
M.get_buffer_from_var = function(bufnr, varname)
  local status, result_bufnr = pcall(vim.api.nvim_buf_get_var, bufnr, varname)
  if not status or result_bufnr == nil or not vim.api.nvim_buf_is_valid(result_bufnr) then
    return -1
  end
  return result_bufnr
end

Note from :help nvim_buf_get_var

nvim_buf_get_var({buffer}, {name})                        *nvim_buf_get_var()*
                Gets a buffer-scoped (b:) variable.

                Parameters:
                    {buffer}  Buffer handle, or 0 for current buffer
                    {name}    Variable name

                Return:
                    Variable value
                    ```

Accidental closure, github hates me.

The title of your issue mentions "when in global mode", but I don't see the option listed in your config. Have you tried setting close_behavior = 'global'? (The option has evolved since I named it. Probably needs to be renamed soon.) I think that will do what you want.

Turns out reading is hard, that does exactly what I needed. Thanks!

Glad it was an easy fix! 😄


Is it possible to get the batch-support version rs.rs2_project_point_to_pixel() and rs.rs2_deproject_pixel_to_point() in python library

Required Info

Camera Model
D455

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
Linux (Ubuntu 22.04

Kernel Version (Linux Only)
(e.g. 4.14.13)

SDK Version
1.13.15

Language
python }

Segment
{Robot}

Issue Description
Currently in the python library, I find that if I want to consider the distort coefficient and get the projection and deprojection matrix, the easiest way is to call the functions: rs.rs2_project_point_to_pixel() and rs.rs2_deproject_pixel_to_point(). However, I find that it doesn't support the batch input like a numpy list of points or a numpy list of pixels with depth. This will make it very slow to call in the python end for a batch of points. Is there some solution for this? For example, I can directly calculate the projection matrix considering the dist coefficient in some way?
Thanks a lot for all potential help!!!

Hi @Jianghanxiao  A possibility that you could consider is the Keep() instruction, which allows frames to be stored in the computer's memory and then have batch-processed actions performed on all of the frames at the same time after the pipeline has been closed.  Such actions could include application of post-processing filters, depth-color alignment or batch-saving to file.
The main disadvantage of Keep() is that because the frames are stored in the computer's available free memory capacity, it can limit recording sessions to up to only 30 seconds (or 10 seconds on low-end devices such as single board computers).
Examples of Python code for Keep() can be found at https://github.com/IntelRealSense/librealsense/issues/6146

Hi @Jianghanxiao  A possibility that you could consider is the Keep() instruction, which allows frames to be stored in the computer's memory and then have batch-processed actions performed on all of the frames at the same time after the pipeline has been closed.  Such actions could include application of post-processing filters, depth-color alignment or batch-saving to file.
The main disadvantage of Keep() is that because the frames are stored in the computer's available free memory capacity, it can limit recording sessions to up to only 30 seconds (or 10 seconds on low-end devices such as single board computers).
Examples of Python code for Keep() can be found at https://github.com/IntelRealSense/librealsense/issues/6146

Hi, thanks for the quick reply. Maybe my question is not that clear. My current goal is to project some 3d points back to the image coordinate to do some depth check. (Arbitrary 3d points) Therefore, I try finding some efficient way to do this instead of calling the rs2_project_point_to_pixel multiple times in a loop. Im not sure if I fully understand ur answer, but it seems that the answer is about how to keep frames and do post processing.
Hope that this time the question is clear. Thanks a lot for ur help!!

Thanks very much for the further information.  The intention behind suggesting Keep() was the idea of performing calculations on all frames at the same time once they had been collected together instead of performing calculations on each frame in a loop.
If you are performing deprojection of 2D to 3D and then projection back from 3D to 2D then there is likely not a more processing-efficient way of doing that, unfortunately.
The link below describes a different approach that a RealSense user took to getting the 3D world coordinates and then returning to 2D pixel coordinates.
https://community.intel.com/t5/Items-with-no-label/How-to-project-points-to-pixel-Librealsense-SDK-2-0/m-p/479197

Thanks for the answer, I find that opencv provide some projection functions to consider the dist_coef in the meanwhile. I check the results, and it's nearly the same to the results from the projection function from realsense. The advantage is that the opencv version supports the batch input in python.
Here are some example code
# Use the opencv projection
# The width and height are inversed here
pixels = cv2.projectPoints(
    points,
    np.zeros(3),
    np.zeros(3),
    self.intrinsic_matrix,
    self.dist_coef,
)[0][:, 0, :]

return pixels[:, ::-1]

It's great to hear that you achieved a solution.  Thanks very much for the update and for sharing your code!


BaseX to BaseY Calculator

Description 📜
Improved UI & Made Responsive using Bootstrap, Added a copy button to copy the result & Added an About section. Also included image in readme.md
Video link: https://drive.google.com/file/d/1X7T0FEpqdkou495jp9PI9U9MAeOAoy3v/view?usp=sharing
Fixes #77

Checklist ✅

[ ✅] I follow Contributing Guidelines & Code of conduct of this project.
[✅ ] I have performed a self-review of my own code or work.
[✅] I have commented my code, particularly in hard-to-understand areas.
[✅] My changes generates no new warnings.
[✅] I'm GSSOC'22 contributor
[✅] Have you added a working video of your calculator ?

Screenshots / Gif (Optional) 📸
From:

TO:

Please let me know if any changes are required!
last 2 questions:

What to do of the issue I created (this is my first open source contribution)?
Do I need to contact anybody to get the GSSOC2022 points if my changes are accepted?
Thank you.

Please remove your .png file and add a screenshort in README.md

Yeah that image is displayed in the README.md file.
I saw in a youtube tutorial where he did like that. There's anytoher way to do show image in README.md without having the .png here?

Ma'am the changes are done. Please check n tell if any other change is required.
Thank you.

Please let me know if any changes are required! last 2 questions:

What to do of the issue I created (this is my first open source contribution)?
Do I need to contact anybody to get the GSSOC2022 points if my changes are accepted?
Thank you.

If your PR gets merged raised against the issue, then your issue would be closed, nothing to worry about that and as far as your points are concerned it would be updated anyways as PA would mark the merged PRs accordingly to Level 1, 2 and 3 and you would get points following that and you don't have to worry about contacting anybody. Just keep Contributing !

Please let me know if any changes are required! last 2 questions:

What to do of the issue I created (this is my first open source contribution)?
Do I need to contact anybody to get the GSSOC2022 points if my changes are accepted?
Thank you.

If your PR gets merged raised against the issue, then your issue would be closed, nothing to worry about that and as far as your points are concerned it would be updated anyways as PA would mark the merged PRs accordingly to Level 1, 2 and 3 and you would get points following that and you don't have to worry about contacting anybody. Just keep Contributing !

O thx for info🤗

Hey @hk2257853
pulls with ui changes are not allowed !
Please create another unique calculator with great ui!!
Thanks !!

LGMT @hk2257853
Nice Work !!!!!


[#151098169] Use HTTPS when communicating with usasearch

Coverage remained the same at 100.0% when pulling 7562f3888b2acbd3098a08f76131831454405f20 on nathan/usasearch_https into 82d732ab122b29944780129d5b90864a83dc9c9d on master.

Marking this as do-not-merge because it's currently not possible to request the /api/v2/agencies endpoint from search.usa.gov whether over HTTP or HTTPS.
HTTP requests redirect to HTTPS:
[nick@npv-23319-l ~]$ curl -s -v -H 'Host: search.usa.gov' 'http://search.usa.gov/api/v2/agencies/search?query=temporary' 2>&1 | grep Location
< Location: https://search.usa.gov/api/v2/agencies/search?query=temporary
and HTTPS request redirect to HTTP:

[nick@npv-23319-l ~]$ curl -s -v -H 'Host: search.usa.gov' 'https://search.usa.gov/api/v2/agencies/search?query=temporary' 2>&1 | grep Location
< Location: http://search.usa.gov/api/v2/agencies/search?query=temporary

It looks as though the root cause of the problem described above is the folllowing:

HTTP requests from the outside world to the /api/v2/agencies endpoint are being redirected to HTTPS because of Apache-level redirect rules in the search.usa.gov web site
HTTPS request from anywhere to the /api/v2/agencies endpoint are being redirected to HTTP because the search.usa.gov code base does not have ssl_allowed :all or something similar for the /api/v2/agencies endpoint.

Coverage remained the same at 100.0% when pulling 82c73002ab1d82738de64a2a1a4715dd3c76013d on nathan/usasearch_https into a1a61f929c55cdcd2ed32c56f39b94d463b9e859 on master.


cv2.error: OpenCV(4.5.0) /opt/opencv/modules/dnn/src/cuda4dnn/csl/memory.hpp:54: error: (-217:Gpu API call) initialization error in function 'ManagedPtr'

I am using ros2 - galactic docker with jetson nano, and i'm trying to run a simple script that uses OpenCV
ros2 nodes are running fine except when using cv2. what I did so far, is to remove cuda 11-4 and link cuda from jetpack(10-4) to the docker. but when I did this, this error occurs somehow.
import cv2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 96, in <module>
    bootstrap()
  File "/usr/local/lib/python3.8/dist-packages/cv2/__init__.py", line 86, in bootstrap
    import cv2
ImportError: libcublas.so.11: cannot open shared object file: No such file or directory

is someone already resolved this issue? thanks in advance!

these are the flags I am using to run the docker
	--rm \ 	-it \ 	--runtime nvidia \ 	--network host \ 	--gpus all \ 	--privileged \ 	-e DISPLAY \ 	-v /dev/bus/usb/:/dev/bus/usb/ \ 	-v /usr/local/cuda-10.2/:/usr/local/cuda-10.2/ \ 	-v /usr/lib/python3.6/dist-packages/cv2/python-3.6/:/usr/lib/python3.6/dist-packages/cv2/python-3.6/ \

but no to avail. the docker still uses cuda 11-4 and python3.8
but when i remove the cuda 11-4 and python3.8, ROS2 is not working anymore.

Hi @foxydevelby, which container are you running?   Since you are on Nano, it should be one of the JetPack 4 ones for r32.7.1, like dustynv/ros:galactic-desktop-l4t-r32.7.1

but no to avail. the docker still uses cuda 11-4 and python3.8
but when i remove the cuda 11-4 and python3.8, ROS2 is not working anymore.

Hi @foxydevelby, which container are you running? Since you are on Nano, it should be one of the JetPack 4 ones for r32.7.1, like dustynv/ros:galactic-desktop-l4t-r32.7.1

Thanks @dusty-nv! this is the one I am using dustynv/ros:galactic-ros-core-l4t-r35.3.1, let me try that one and let you know after I tested

Hi @dusty-nv, I have successfully installed this image, however I am getting opencv version compatibility issue when running again my simple object detection script
net.setPreferableBackend(cv2.dnn.DNN_BACKEND_CUDA) AttributeError: module 'cv2.dnn' has no attribute 'DNN_BACKEND_CUDA'
can you help me confirm if using opencv really works with the galactic docker image in jetson nano?

Hi @foxydevelby, what does cv2.getBuildInformation() report for you?  This is what it looks like for me in dustynv/ros:galactic-desktop-l4t-r32.7.1
python3 -c 'import cv2; print(cv2.getBuildInformation())'

General configuration for OpenCV 4.5.0 =====================================
  Version control:               4.5.0

  Extra modules:
    Location (extra):            /opt/opencv_contrib/modules
    Version control (extra):     4.5.0

  Platform:
    Timestamp:                   2021-07-19T21:05:54Z
    Host:                        Linux 4.9.201-tegra aarch64
    CMake:                       3.10.2
    CMake generator:             Unix Makefiles
    CMake build tool:            /usr/bin/make
    Configuration:               RELEASE

  CPU/HW features:
    Baseline:                    NEON FP16
      required:                  NEON
      disabled:                  VFPV3

  C/C++:
    Built as dynamic libs?:      YES
    C++ standard:                11
    C++ Compiler:                /usr/bin/c++  (ver 7.5.0)
    C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
    C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
    C Compiler:                  /usr/bin/cc
    C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
    C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
    Linker flags (Release):      -Wl,--gc-sections -Wl,--as-needed
    Linker flags (Debug):        -Wl,--gc-sections -Wl,--as-needed
    ccache:                      NO
    Precompiled headers:         NO
    Extra dependencies:          m pthread cudart_static dl rt nppc nppial nppicc nppicom nppidei nppif nppig nppim nppist nppisu nppitc npps cublas cudnn cufft -L/usr/local/cuda/lib64 -L/usr/lib/aarch64-linux-gnu
    3rdparty dependencies:

  OpenCV modules:
    To be built:                 alphamat aruco bgsegm bioinspired calib3d ccalib core cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev datasets dnn dnn_objdetect dnn_superres dpm face features2d flann freetype fuzzy gapi hfs highgui img_hash imgcodecs imgproc intensity_transform line_descriptor mcc ml objdetect optflow phase_unwrapping photo plot python3 quality rapid reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking video videoio videostab xfeatures2d ximgproc xobjdetect xphoto
    Disabled:                    world
    Disabled by dependency:      -
    Unavailable:                 cnn_3dobj cvv hdf java js julia matlab ovis python2 sfm ts viz
    Applications:                apps
    Documentation:               NO
    Non-free algorithms:         YES

  GUI:
    GTK+:                        YES (ver 3.22.30)
      GThread :                  YES (ver 2.56.4)
      GtkGlExt:                  NO
    OpenGL support:              NO
    VTK support:                 NO

  Media I/O:
    ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
    JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
    WEBP:                        build (ver encoder: 0x020f)
    PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
    TIFF:                        build (ver 42 - 4.0.10)
    JPEG 2000:                   build (ver 2.3.1)
    OpenEXR:                     build (ver 2.3.0)
    HDR:                         YES
    SUNRASTER:                   YES
    PXM:                         YES
    PFM:                         YES

  Video I/O:
    DC1394:                      YES (2.2.5)
    FFMPEG:                      YES
      avcodec:                   YES (57.107.100)
      avformat:                  YES (57.83.100)
      avutil:                    YES (55.78.100)
      swscale:                   YES (4.8.100)
      avresample:                YES (3.7.0)
    GStreamer:                   YES (1.14.5)
    v4l/v4l2:                    YES (linux/videodev2.h)

  Parallel framework:            TBB (ver 2017.0 interface 9107)

  Trace:                         YES (with Intel ITT)

  Other third-party libraries:
    Lapack:                      YES (/usr/lib/aarch64-linux-gnu/liblapack.so /usr/lib/aarch64-linux-gnu/libcblas.so /usr/lib/aarch64-linux-gnu/libatlas.so)
    Eigen:                       YES (ver 3.3.4)
    Custom HAL:                  YES (carotene (ver 0.0.1))
    Protobuf:                    build (3.5.1)

  NVIDIA CUDA:                   YES (ver 10.2, CUFFT CUBLAS FAST_MATH)
    NVIDIA GPU arch:             53 62 72
    NVIDIA PTX archs:

  cuDNN:                         YES (ver 8.0.0)

  Python 3:
    Interpreter:                 /usr/bin/python3 (ver 3.6.9)
    Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.9)
    numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.13.3)
    install path:                lib/python3.6/dist-packages/cv2/python-3.6

  Python (for build):            /usr/bin/python2.7

  Java:
    ant:                         NO
    JNI:                         NO
    Java wrappers:               NO
    Java tests:                  NO

  Install to:                    /usr/local

Here are the flags it was built with:  https://github.com/dusty-nv/jetson-containers/blob/93739890ec4f575c113e0c8cfad76a6e4e1a51d3/packages/opencv/opencv_builder/Dockerfile#L46
It also gets tested that OpenCV GPU is working:  https://github.com/dusty-nv/jetson-containers/blob/master/packages/opencv/test.py

@dusty-nv, here is the report
General configuration for OpenCV 4.1.1 =====================================
Version control:               4.1.1-2-gd5a58aa75
Platform:
Timestamp:                   2019-12-13T17:25:11Z
Host:                        Linux 4.9.140-tegra aarch64
CMake:                       3.10.2
CMake generator:             Unix Makefiles
CMake build tool:            /usr/bin/make
Configuration:               Release
CPU/HW features:
Baseline:                    NEON FP16
required:                  NEON
disabled:                  VFPV3
C/C++:
Built as dynamic libs?:      YES
C++ Compiler:                /usr/bin/c++  (ver 7.4.0)
C++ flags (Release):         -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG  -DNDEBUG
C++ flags (Debug):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -fvisibility-inlines-hidden -g  -O0 -DDEBUG -D_DEBUG
C Compiler:                  /usr/bin/cc
C flags (Release):           -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -O3 -DNDEBUG  -DNDEBUG
C flags (Debug):             -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections    -fvisibility=hidden -g  -O0 -DDEBUG -D_DEBUG
Linker flags (Release):      -Wl,--gc-sections
Linker flags (Debug):        -Wl,--gc-sections
ccache:                      NO
Precompiled headers:         NO
Extra dependencies:          dl m pthread rt
3rdparty dependencies:
OpenCV modules:
To be built:                 calib3d core dnn features2d flann gapi highgui imgcodecs imgproc ml objdetect photo python2 python3 stitching ts video videoio
Disabled:                    world
Disabled by dependency:      -
Unavailable:                 java js
Applications:                tests perf_tests examples apps
Documentation:               NO
Non-free algorithms:         NO
GUI:
GTK+:                        YES (ver 2.24.32)
GThread :                  YES (ver 2.56.4)
GtkGlExt:                  NO
Media I/O:
ZLib:                        /usr/lib/aarch64-linux-gnu/libz.so (ver 1.2.11)
JPEG:                        /usr/lib/aarch64-linux-gnu/libjpeg.so (ver 80)
WEBP:                        build (ver encoder: 0x020e)
PNG:                         /usr/lib/aarch64-linux-gnu/libpng.so (ver 1.6.34)
TIFF:                        /usr/lib/aarch64-linux-gnu/libtiff.so (ver 42 / 4.0.9)
JPEG 2000:                   build (ver 1.900.1)
HDR:                         YES
SUNRASTER:                   YES
PXM:                         YES
PFM:                         YES
Video I/O:
FFMPEG:                      YES
avcodec:                   YES (57.107.100)
avformat:                  YES (57.83.100)
avutil:                    YES (55.78.100)
swscale:                   YES (4.8.100)
avresample:                NO
GStreamer:                   YES (1.14.5)
v4l/v4l2:                    YES (linux/videodev2.h)
Parallel framework:            TBB (ver 2017.0 interface 9107)
Trace:                         YES (with Intel ITT)
Other third-party libraries:
Lapack:                      NO
Eigen:                       YES (ver 3.3.4)
Custom HAL:                  YES (carotene (ver 0.0.1))
Protobuf:                    build (3.5.1)
Python 2:
Interpreter:                 /usr/bin/python2.7 (ver 2.7.15)
Libraries:                   /usr/lib/aarch64-linux-gnu/libpython2.7.so (ver 2.7.15+)
numpy:                       /usr/lib/python2.7/dist-packages/numpy/core/include (ver 1.13.3)
install path:                lib/python2.7/dist-packages/cv2/python-2.7
Python 3:
Interpreter:                 /usr/bin/python3 (ver 3.6.9)
Libraries:                   /usr/lib/aarch64-linux-gnu/libpython3.6m.so (ver 3.6.9)
numpy:                       /usr/lib/python3/dist-packages/numpy/core/include (ver 1.13.3)
install path:                lib/python3.6/dist-packages/cv2/python-3.6
Python (for build):            /usr/bin/python2.7
Java:
ant:                         NO
JNI:                         NO
Java wrappers:               NO
Java tests:                  NO
Install to:                    /usr
I just used the built -in cuda 10.2 and python3.6 from the jetpack,looking at your report, did you build the newer version of opencv with cuda?

@foxydevelby, you aren't using the OpenCV that was built with CUDA - are you sure you are running in dustynv/ros:galactic-desktop-l4t-r32.7.1 ?   If you start a fresh container of this, it should be there.   Do sudo docker pull dustynv/ros:galactic-desktop-l4t-r32.7.1 to pull the latest too.
Maybe you installed something else in the container, which overwrote the OpenCV.  In that case, you can reinstall OpenCV/CUDA like this:
cd /opt && ./opencv_install.sh

thank you @dusty-nv ! re-installing worked!


Need to improve performenc when many items in day view

When component has more than 300 items it start scroll stuck and work slowly.
I think performence can improve by using something like this https://github.com/tangbc/vue-virtual-scroll-list
Live example: https://codesandbox.io/s/live-demo-virtual-list-e1ww1?file=/src/App.vue

@yushko2015 the code-box is failing to load the virtual-list

@yushko2015 the code-box is failing to load the virtual-list

It loads in me without errors.

@yushko2015 it looks like code-sand-box does not like adblock 😅  I'll play around this evening to see what happens with 300+ data items, and get a fiddle or something in place for that. You are welcome to do so too!

Hi @yushko2015,
Can you show me a screenshot of your 300 events displayed in same view?

If the performance is not good when you have 300 events loaded in memory but not all in the view that's one thing - but the virtual scroll list won't help.
And if you display the 300 events at the same time I am not sure you need a calendar.

Thanks @Twoody for support!

Also please give a reproduction link either codesandbox or codepen as @Twoody mentioned that will help measuring the performance!
thanks.

@antoniandre You are right with performance all okay. Problem in my logic. Sorry))

Great @yushko2015,
Performance wise this looks good in spite of all the events shown.
UI-wise, well this is unreadable but I am guessing it's just for the test.
Please close the issue if solved!


merge next into v3

Closes #
Summary

Just a couple merge conflicts between the cellTextOverflow changes in V3 and my updates for the useVisibilityObserver hook.

Change List (commits, features, bugs, etc)

merge conflicts in the TableBody

Acceptance Test (how to verify the PR)

ensure shouldLazyLoad knob and cellTextOverflow types work correctly in stories

Regression Test (how to make sure this PR doesn't break old functionality)

We need to check all the cellTextOverflow stories to make sure those are displayed as expected.

Things to look for during review

[ ] Make sure all references to iot or bx class prefix is using the prefix variable
[ ] (React) All major areas have a data-testid attribute. New test ids should have test written to ensure they are not changed or removed.
[ ] UI should be checked in RTL mode to ensure the proper handling of layout and text.
[ ] All strings should be translatable.
[ ] The code should pass a11y scans (The storybook a11y knob should show no violations). New components should have a11y test written.
[ ] Unit test should be written and should have a coverage of 90% or higher in all areas.
[ ] All components should be passing visual regression test. For new styles or components either a visual regression test should be written for all permutations or the base image updated.
[ ] Changes or new components should either write new or update existing documentation.
[ ] PR should link and close out an existing issue

Do you mean knob shouldLazyRender? I can't find a shouldLazyLoad knob.


Restoring "Include imgui/misc/freetype/ in crate package" from 0.8.x release

In trying to straighten things out for #665 I noticed one of the bugfixes release in 0.8.something wasn't in the main branch - specifically the change for #595
This reapplies this fix to main branch, allowing the "--features freetype" to work when using via crates.io

Continuing the "everything ended up in a bit of a mess" story of 0.8's patch releases, this was fixed slightly differently in main in 9128066f01a36803c04609f288fc04dd2c04641b
However I think this PR is still worth merging as the glob patterns in 9128066f01a36803c04609f288fc04dd2c04641b result in an unnecessarily huge .crate (as it includes copies of all the imgui C++ example backends and docs etc), whereas the this PR only includes the necessary files

In general we do "fork off and do a patch release" we should be sure to merge the changes back to main in some fashion after that's done.


[website][pulsar]: auto generate docs for pulsar subcommand: websocket

Master Issue: #10040
Motivation
Support auto generate HTML page for pulsar client cli tool, for example: https://github.com/apache/pulsar/tree/asf-site/content/tools/pulsar-admin
Modifications
generate docs for pulsar subcommand: websocket
(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)
Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure
Does this pull request potentially affect one of the following parts:
If yes was chosen, please highlight the changes
Dependencies (does it add or upgrade a dependency): (yes / no)
The public API: (yes / no)
The schema: (yes / no / don't know)
The default values of configurations: (yes / no)
The wire protocol: (yes / no)
The rest endpoints: (yes / no)
The admin cli options: (yes / no)
Anything that affects deployment: (yes / no / don't know)
Documentation
Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

/pulsarbot run-failure-checks

I saw that #11365 had been merged, in fact, some PRs need to be merged first, like #11364, #11358, #11327, #11326 @tuteng


Refactor(egen): Corrections from template

This PR consists of the following updates:

Refactors the notebook according to the notebook template (removes boilerplate elements, renames REGION with LOCATION and re-structures the sections).
Adds link for colab enterprise.
Contracts words such as "is not" to "isn't".

REQUIRED: Fill out the below checklists or remove if irrelevant

If you are opening a PR for Official Notebooks under the notebooks/official folder, follow this mandatory checklist:

[x] Use the notebook template as a starting point.
[x] Follow the style and grammar rules outlined in the above notebook template.
[x] Verify the notebook runs successfully in Colab since the automated tests cannot guarantee this even when it passes.
[x] Passes all the required automated checks. You can locally test for formatting and linting with these instructions.
[ ] You have consulted with a tech writer to see if tech writer review is necessary. If so, the notebook has been reviewed by a tech writer, and they have approved it.
[ ] This notebook has been added to the CODEOWNERS file under the Official Notebooks section, pointing to the author or the author's team.
[x] The Jupyter notebook cleans up any artifacts it has created (datasets, ML models, endpoints, etc) so as not to eat up unnecessary resources.

/gcbrun

/gcbrun


Change entity timestamp attribute from Long to Date

private Long timestampCreated;
private Long timestampLastUsed;

Fixed in 5fc86cc34a5f509b9da22727a6aac3be03fc1ed3


🚀 Feature: overwrite theme spacing

🔖 Feature description
When using createUnifiedTheme there is currently no way of setting custom spacing settings. The interface looks like this:
interface UnifiedThemeOptions {
    palette: PaletteOptions & PaletteOptions$1;
    defaultPageTheme?: string;
    pageTheme?: Record<string, PageTheme>;
    fontFamily?: string;
    htmlFontSize?: number;
    components?: ThemeOptions['components'];
    typography?: BackstageTypography;
}

It would be nice to be able to add custom spacing settings as can be done in Mui: https://mui.com/material-ui/customization/spacing/#custom-spacing.
🎤 Context
Custom theme settings.
✌ Possible Implementation
No response
👀 Have you spent some time to check if this feature request has been raised before?

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

Makes sense, if this something you would be open to adding via a Pull Request @dirkjf?

@awanlin, I need to find some time to do it, but I am willing to add this and open a PR for it.

Sounds good, I've assigned this to you, feel free to work on it when you have time, no rush 👍

Hi @dirkjf , do you still able to help us with this issue 🙂 ?

@camilaibs, I will have a look before the end of the week.

@camilaibs, I created an MR: https://github.com/backstage/backstage/pull/25349#issuecomment-2182390540

@dirkjf Just checking in if this is something you'd still like to work on.


Unable to download XML: HTTP Error 404: Not Found (caused by HTTPError())

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2019.09.28
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log

$ youtube-dl --version
2019.09.28

$ youtube-dl https://www.bbc.co.uk/iplayer/episode/m0007znv/ad/china-a-new-world-order-series-1-episode-1
[bbc.co.uk] m0007znv: Downloading video page
[bbc.co.uk] m0007znv: Downloading playlist JSON
[bbc.co.uk] m0007znv: Downloading legacy playlist XML
ERROR: Unable to download XML: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

$ youtube-dl --verbose https://www.bbc.co.uk/iplayer/episode/m0007znv/ad/china-a-new-world-order-series-1-episode-1
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--verbose', u'https://www.bbc.co.uk/iplayer/episode/m0007znv/ad/china-a-new-world-order-series-1-episode-1']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.09.28
[debug] Python version 2.7.15+ (CPython) - Linux-4.15.0-65-generic-x86_64-with-Ubuntu-18.04-bionic
[debug] exe versions: ffmpeg 3.4.6, ffprobe 3.4.6, phantomjs 11000, rtmpdump 2.4
[debug] Proxy map: {}
[bbc.co.uk] m0007znv: Downloading video page
[bbc.co.uk] m0007znv: Downloading playlist JSON
[bbc.co.uk] m0007znv: Downloading legacy playlist XML
ERROR: Unable to download XML: HTTP Error 404: Not Found (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
  File "/usr/local/bin/yt-dl/youtube_dl/extractor/common.py", line 627, in _request_webpage
    return self._downloader.urlopen(url_or_request)
  File "/usr/local/bin/yt-dl/youtube_dl/YoutubeDL.py", line 2237, in urlopen
    return self._opener.open(req, timeout=self._socket_timeout)
  File "/usr/lib/python2.7/urllib2.py", line 435, in open
    response = meth(req, response)
  File "/usr/lib/python2.7/urllib2.py", line 548, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python2.7/urllib2.py", line 473, in error
    return self._call_chain(*args)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 556, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)

Description

WRITE DESCRIPTION HERE
Video in the link above played without any problem inside Firefox. Downloading other programs from the same website was OK earlier today. But it stopped working this afternoon.
Thank you for investigating.

[Update]
This problem only seemed to affect programs that are the "Audio Described" version. Non audio described program of the same series was not affected. This one is OK:
youtube-dl https://www.bbc.co.uk/iplayer/episode/m0008cc7/china-a-new-world-order-series-1-episode-3


[CSL-256] Cosmetic refactoring of kademlia library

@georgeee

Extract all params to single context
See comment on params used in Ethereum, all of them should be configurable
Move logging functions (logInfo, logError, ..) to this context
Add flag to disable DHT features (i.e. endpoints to store/find value)

@gromak
What's the purpose of duplicating issue? :)

@georgeee
@gromak no purpose, I just found old one after creating new

@georgeee
@vincent.hanquez we use our fork of kademlia https://github.com/serokell/kademlia

@vincent.hanquez
Where can I find those: "comment on params used in Ethereum" ?

@shersh
We decided with @martoon  to add -Wall (fixing all warnings on the way) and make all imports qualified to ease kademlia library support (because we obviously will put more work in it than just couple lines).

@georgeee
The parameters chosen for kademlia are a bucket size of 16 (denoted k in Kademlia), concurrency of 3 (denoted alpha in Kademlia), and 8 bits per hop (denoted b in Kademlia) for routing. The eviction check interval is 75 milliseconds, request timeouts are 300ms, and the idle bucket-refresh interval is 3600 seconds. Until encryption is implemented packets have a timestamp property to reduce the window of time for carrying out replay attacks. How the timestamp is handled is up to the receiver and it's recommended that the receiver only accept packets created within the last 3 seconds; timestamps can be ignored for Pong packets. In order to reduce the chance that packets are fragmented the maximum size of a datagram is 1280 bytes, as this is the minimum size of an IPv6 datagram.

@georgeee
Nice idea, guys!

@georgeee
@shersh I wanted to ask you do this ^ and close the issue

@shersh
The only thing I noticed is left regarding cosmetic changes: add k to configuration. Now there are a lot of places where magic constant 7 is used.


Exclude commented lines from search results

Is there the way to exclude commented lines and blocks of code from search results? I believe I can do this by using RegEx search mode and write ideal search criteria by myself but it's not so convinient as pressing the Use Exclude Settings and Ignore Files button.

/duplicate of #11688

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


Improve README

We need have some documentation on the structure of the package as well as some examples on the different leaf tags.

First - Great VAPOR add on..  looks promising..
One thing I found in trying to use this was the setup documentation needs some work.  Here is what I had to setup to get things working.
Config+Setup.swift
import LeafProvider
import FluentProvider
import AdminPanelProvider

extension Config {
    public func setup() throws {
        // allow fuzzy conversions for these types
        // (add your own types here)
        Node.fuzzy = [JSON.self, Node.self]

        try setupProviders()
        try setupPreparations()
    }

    /// Configure providers
    private func setupProviders() throws {
        try addProvider(LeafProvider.Provider.self)
        try addProvider(FluentProvider.Provider.self)
        try addProvider(AdminPanelProvider.Provider.self)
    }

    /// Add all models that should have their
    /// schemas prepared before the app boots
    private func setupPreparations() throws {
        preparations.append(AdminPanelUser.self)
    }

}

Droplet.json
    "//": "Choose which middleware are enabled (and in which order).",
    "//": "error: Catches errors thrown in your application and returns a nice response.",
    "//": "date: Adds the 'Date' header to HTTP requests.",
    "//": "file: Catches 404 errors and checks for files in the Public/ folder",
    "middleware": [
        "error",
        "date",
        "file",
        "sessions"
    ],

    "//": "Choose which commands this application can run",
    "commands": [
                 "prepare",
                 "admin-panel:seeder"
                 ]

Routes.swift
Remove the default route, if using Vapors web template.
Also seeded the user so I could run it from Xcode project (for testing only, the command line version is probably better for cloud solutions)
    func build(_ builder: RouteBuilder) throws {
        /// GET /
//        builder.get { req in
//            return try self.view.make("index")
//        }

        /// GET /hello/...
        builder.resource("hello", HelloController(view))

        // response to requests to /info domain
        // with a description of the request
        builder.get("info") { req in
            return req.description
        }

        let user = try AdminPanelUser(
            name: "Admin",
            title: "Default admin account",
            email<EMAIL_ADDRESS>            password: "admin",
            role: "Super Admin",
            shouldResetPassword: false,
            avatar: nil
        )

        try user.save()

    }

Instructions for adding the FluentProvider as well as running the seeder through Xcode has been added to the README. Feel free to re-open this issue or create a PR if you think more is missing from the README. Thanks!


FeatureSample Testing on Demo

I had downloaded the whole package of FeatureSample and compiled it with no errors into an APK file.
It was 40 mb and I started to run the app. The first page selection is running fine with all the selection of the 43 samples listed but when I try to test each one of them - there is a black screen that follow on - every single one of the declared activity.

Do you have similar problems running the FeatureSample app or is it just me?
I noticed in the Visual Studio that there is obsolete statement of AbsoluteLayout. What should I do with this?
I have disable Cocoa package to be compiled because of missing assemblies references, does this relate to building solution up of the whole package?

Thanks

I don't have a working solution for this because of how it is coded (eg - obsolete class, UrhoSurfacePlaceholder doesn't work) but I previously had made FormsSample demo working - UrhoSurface & Xamarin+Forms.
You can port the (eg. 01_HelloWorld.cs activity - from Core FeatureSample file) into FormsSample project and change its setting of App.cs line StartUrhoApp() (from Show Charts into Show HelloWorld as their super class is Application) and start a demo from there. Obviously it may resemble the original layout but the words display accordingly.
This is just an hack to see how does it work - maybe you can try other harder examples if it does fit into the criteria rather than waiting for the answer.
https://www.bountysource.com/issues/48864595-urhosurface-createsurface-mygame-activity

I have another one working for 27_Urho2DPhysics.
The files can be added to the existing project running on FormsSample.
JoystickLayoutPatches.cs - FeaturesSamples/Core github
Sample.cs - FeaturesSamples/Core
Urho2DPhysics.cs -  FeaturesSamples/Core/27_Urho2DPhysics
Remember to add in Asset/Data files according to the files in github
for:
Asset/Data/Textures/LogoLarge.png
Asset/Data/Textures/UrhoIcon.png
Asset/Data/UI/DefaultStyle.xml
Asset/Data/UI/ScreenJoystick_Samples.xml
Asset/Data/Urho2D/Ball.png
Asset/Data/Urho2D/Box.png
Asset/Data/Fonts/Anonymous Pro.ttf
They load the graphics into the screen.
What does the line for the App.cs look like:

public class UrhoPage : ContentPage
{
UrhoSurface urhoSurface;
//Charts urhoApp;
//HelloWorld hwApp; -- example from last comment.
Urho2dPhysics u2dApp;
Slider selectedBarSlider;
...
async void StartUrhoApp()
{
//urhoApp = await urhoSurface.Show(new ApplicationOptions(assetsFolder: null) { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait });
//hwApp = await urhoSurface.Show(new ApplicationOptions(assetsFolder: "Data") { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait });
u2dApp = await urhoSurface.Show(new ApplicationOptions(assetsFolder: "Data") { Orientation = ApplicationOptions.OrientationType.LandscapeAndPortrait });
}
Happy Demoing!!

More for readers on the topic Xamarin Quickstart demo.
For those who had finished the Quickstart demo from the Xamarin, there is a few clues left hidden in producing the same results as us.
For those who had the emulators not working for them (too slow machines), they can try producing a signed apk file to their Android phone following this part of the story: https://developer.xamarin.com/guides/android/deployment,_testing,and_metrics/publishing_an_application/part_2-_signing_the_android_application_package/
*** Important to know how to *** if you wanted the build the apk file!!
Go to Project's Build tab -> Rebuild solution (*no errors) then Build -> Archive .
This builds the dll files in the folder then View Archive -> Select your Archive file -> Distribute
Make sure it has been signed properly (Ad-hoc - with alias: (eg a name), password: (eg. abcd - remember this as you would do it for every signed apk) ) or otherwise it may suffer "parsing the package" error when the phone tries to do during the installation process. (you are actually port this file to your phone apk storage with your phone set to developer's mode and settings. )
What other things should be aware of: API settings of your phone to the correct version from the manifest file (right-click to properties of your project "Phoneword" (From Solution Explorer). Go to Application tab and select the correct settings.)
NB: There is the application ICON settings that needs to be aware of. https://forums.xamarin.com/discussion/104884/issue-about-application-icon-present-in-hello-android-quickstart-document
** I have spent six hours to get this far and it has been my first Xamarin app ever :)

Similarly making this work would make FormsSample demo work as well by the same lines.
Happy demoing~~~


Support casting to/from DataType::Null in cast kernel

Which issue does this PR close?

Closes #684.
Rationale for this change

Casting from DataType::Null to many other types is not allowed for now, like DataType::Null <-> DataType::Utf8, apache/arrow-datafusion#1188 depends on this casting ability to solve NULL constant issue in function call
What changes are included in this PR?

Allow casting DataType::Null from and to most of types except for DataType::Union and DataType::Decimal, which is not supported in https://github.com/apache/arrow-rs/blob/5dca6f07884745b5839cb91739faefd52f12b02b/arrow/src/array/array.rs#L440
Are there any user-facing changes?
No.

@alamb @Dandandan plz approve the running workflows, thank you.

Codecov Report

Merging #1572 (e53d7a5) into master (5dca6f0) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1572      +/-   ##
==========================================
+ Coverage   82.87%   82.93%   +0.05%
==========================================
  Files         193      193
  Lines       55304    55328      +24
==========================================
+ Hits        45835    45884      +49
+ Misses       9469     9444      -25

Impacted Files
Coverage Δ

arrow/src/compute/kernels/cast.rs
95.78% <100.00%> (+0.04%)
:arrow_up:

parquet_derive/src/parquet_field.rs
65.98% <0.00%> (-0.46%)
:arrow_down:

arrow/src/array/transform/mod.rs
86.46% <0.00%> (-0.12%)
:arrow_down:

parquet/src/encodings/encoding.rs
93.56% <0.00%> (+0.18%)
:arrow_up:

arrow/src/array/array.rs
92.70% <0.00%> (+7.03%)
: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 5dca6f0...e53d7a5. Read the comment docs.

@tustvold
A follow up commit pushed:

more test cases added
check cast_from_and_to_null from macro to function

Please approve the running workflows and have another review, thank you :)

cc @alamb @Dandandan  PTAL, thank you.

@alamb @tustvold Is this pr OK to merge,
Or can you help @ some other committers to take another look?
Thank you

Thanks @yjshen  ❤


Unable to install songbird and Qiime together

Hello.
I've been trying to install songbird in my existing Qiime environment (r2019.7) but doing so results in an error upon trying to use any Qiime functionality (and also cache refresh).
Traceback (most recent call last):
  File "/miniconda3/envs/nash_mice/bin/qiime", line 11, in <module>
    sys.exit(qiime())
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 764, in __call__
    return self.main(*args, **kwargs)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 716, in main
    with self.make_context(prog_name, args, **extra) as ctx:
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 641, in make_context
    self.parse_args(ctx, args)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/click/command.py", line 43, in parse_args
    return super().parse_args(ctx, args)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 1086, in parse_args
    echo(ctx.get_help(), color=ctx.color)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 516, in get_help
    return self.command.get_help(self)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 879, in get_help
    self.format_help(ctx, formatter)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 898, in format_help
    self.format_options(ctx, formatter)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/click/command.py", line 157, in format_options
    for subcommand in self.list_commands(ctx):
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/commands.py", line 93, in list_commands
    plugins = sorted(self._plugin_lookup)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/commands.py", line 77, in _plugin_lookup
    import q2cli.core.cache
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 403, in <module>
    CACHE = DeploymentCache()
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 61, in __init__
    self._state = self._get_cached_state(refresh=refresh)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 107, in _get_cached_state
    self._cache_current_state(current_requirements)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 200, in _cache_current_state
    state = self._get_current_state()
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 238, in _get_current_state
    plugin_manager = qiime2.sdk.PluginManager()
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py", line 44, in __new__
    self._init()
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py", line 59, in _init
    plugin = entry_point.load()
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2433, in load
    self.require(*args, **kwargs)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2456, in require
    items = working_set.resolve(reqs, env, installer, extras=self.extras)
  File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mock>=2.0.0' distribution was not found and is required by tensorflow-estimator

I also tried creating a fresh conda environment installing songbird first and then Qiime, but the issue persists.
For my purposes I created a separate environment for songbird and used the non-qiime CLI, but this is a bit of a hassle.
Running MacOS Mojave 10.14.5

Hmm. I'm assuming that you are running the Readme instructions right?
conda install -c conda-forge songbird
What does the command
which python
give you?
On Wed, Sep 18, 2019, 6:32 PM Gibs<EMAIL_ADDRESS>wrote:

Hello.
I've been trying to install songbird in my existing Qiime environment
(r2019.7) but doing so results in an error upon trying to use any Qiime
functionality (and also cache refresh).
Traceback (most recent call last):
File "/miniconda3/envs/nash_mice/bin/qiime", line 11, in
sys.exit(qiime())
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 716, in main
with self.make_context(prog_name, args, **extra) as ctx:
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 641, in make_context
self.parse_args(ctx, args)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/click/command.py", line 43, in parse_args
return super().parse_args(ctx, args)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 1086, in parse_args
echo(ctx.get_help(), color=ctx.color)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 516, in get_help
return self.command.get_help(self)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 879, in get_help
self.format_help(ctx, formatter)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/click/core.py", line 898, in format_help
self.format_options(ctx, formatter)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/click/command.py", line 157, in format_options
for subcommand in self.list_commands(ctx):
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/commands.py", line 93, in list_commands
plugins = sorted(self._plugin_lookup)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/commands.py", line 77, in _plugin_lookup
import q2cli.core.cache
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 403, in
CACHE = DeploymentCache()
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 61, in init
self._state = self._get_cached_state(refresh=refresh)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 107, in _get_cached_state
self._cache_current_state(current_requirements)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 200, in _cache_current_state
state = self._get_current_state()
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/q2cli/core/cache.py", line 238, in _get_current_state
plugin_manager = qiime2.sdk.PluginManager()
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py", line 44, in new
self._init()
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/qiime2/sdk/plugin_manager.py", line 59, in _init
plugin = entry_point.load()
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/init.py", line 2433, in load
self.require(*args, **kwargs)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/init.py", line 2456, in require
items = working_set.resolve(reqs, env, installer, extras=self.extras)
File "/miniconda3/envs/nash_mice/lib/python3.6/site-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'mock>=2.0.0' distribution was not found and is required by tensorflow-estimator
I also tried creating a fresh conda environment installing songbird first
and then Qiime, but the issue persists.
For my purposes I created a separate environment for songbird and used the
non-qiime CLI, but this is a bit of a hassle.
Running MacOS Mojave 10.14.5
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/biocore/songbird/issues/74?email_source=notifications&email_token=AA75VXLB7N3HHALJCNMZRMTQKKUBNA5CNFSM4IYEMJ22YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HMIQL4Q,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA75VXKPJIFCDYUITONHLFDQKKUBNANCNFSM4IYEMJ2Q
.

Correct, I ran conda install -c conda-forge songbird from my existing qiime environment (named "nash_mice").
Running which python in this environment returns/miniconda3/envs/nash_mice/bin/python
(Version that showed up when running python was 3.6.7)

Ok. I'll need more I information. Can you list the packages your
environment? See how to generate an environment.yml below
https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html
Also try running
conda clean - - all
In your environment. It's possible that your conda env is corruptted
On Wed, Sep 18, 2019, 6:47 PM Gibs<EMAIL_ADDRESS>wrote:

Correct, I ran conda install -c conda-forge songbird from my existing
qiime environment (named "nash_mice").
Running which python in this environment returns
/miniconda3/envs/nash_mice/bin/python
(Version that showed up when running python was 3.6.7)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/biocore/songbird/issues/74?email_source=notifications&email_token=AA75VXMMZVX4AA7PRKJUIHTQKKVZRA5CNFSM4IYEMJ22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7BVRPA#issuecomment-532895932,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA75VXNTX2L6KWGSW4XZ6PDQKKVZRANCNFSM4IYEMJ2Q
.

nash_mice.txt
Ran the clean but the problem remains.

Hi @gibsramen , I am able to reproduce your error.
The workaround for now is to do the following
conda install mock google-pasta
conda install -c conda-forge songbird

Should have caught this before the conda-forge deploy that came out 2 days ago.  Thanks for catching this!

No problem! I can confirm that both the Artifact API and CLI work for me.
Thanks!


restore model fail

Hi, the training is fail during the restoring process.
Train Epoch: 11/100 Step: 940/965 | 0.770s/batch | lr 5.0000e-04 || Mask_Loss 1.4892
Train Epoch: 11/100 Step: 950/965 | 0.769s/batch | lr 5.0000e-04 || Mask_Loss 1.7748
Train Epoch: 11/100 Step: 960/965 | 0.769s/batch | lr 5.0000e-04 || Mask_Loss 1.6740
Train Summary | End of Epoch 11 | Time 742.134s | Train Loss 1.6343
Valid Summary | End of Epoch 11 | Time 25.712s | Valid Loss 1.4752
Loading checkpoint: /home/test/exp_dir/denoiser/clear_voice-data_demand/checkpoints/MossFormer2_SE_48K/last_best_checkpoint
=> Reloaded previous model and optimizer. Continue training ...
reload from last best checkpoint
Traceback (most recent call last):
  File "/home/test/code/enhance/enhance_clearvoice/train/speech_enhancement/train.py", line 139, in <module>
    main(args)
  File "/home/test/code/enhance/enhance_clearvoice/train/speech_enhancement/train.py", line 79, in main
    solver.train()
  File "/home/test/code/enhance/enhance_clearvoice/train/speech_enhancement/solver.py", line 236, in train
    if self.print: print('Learning rate adjusted to: {lr:.6f}'.format(self.optimizer.param_groups[0]["lr"]))
KeyError: 'lr'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 6241) of binary: /home/test/python_env/anaconda3/envs/enh_clearvoice/bin/python
Traceback (most recent call last):
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/launch.py", line 196, in <module>
    main()
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/launch.py", line 192, in main
    launch(args)
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/launch.py", line 177, in launch
    run(args)
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/run.py", line 785, in run
    elastic_launch(
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 134, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/home/test/python_env/anaconda3/envs/enh_clearvoice/lib/python3.10/site-packages/torch/distributed/launcher/api.py", line 250, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError

Thank you for your feedback, we are looking into this case

Hi, we have fixed the issue. Please pull the repo and try again. Thanks.

it's okay, thanks


python311Packages.aioslimproto: 2.2.0 -> 2.2.1

Changelog: https://github.com/home-assistant-libs/aioslimproto/releases/tag/2.2.1
Description of changes

Things done

Built on platform(s)

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

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

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

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

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

[ ] Fits CONTRIBUTING.md.

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

3 packages built:

home-assistant-component-tests.slimproto
python310Packages.aioslimproto
python311Packages.aioslimproto


Implement docker based jupyter executor

Why are these changes needed?
Implements a Docker based jupyter code execution environment.
Example:
with DockerJupyterServer() as jupyter_server:
    agent = ConversableAgent(
        "user_proxy",
        llm_config=False,
        code_execution_config={"executor": JupyterCodeExecutor(jupyter_server=jupyter_server)},
    )

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Codecov Report
Attention: Patch coverage is 0% with 81 lines in your changes are missing coverage. Please review.

Project coverage is 25.53%. Comparing base (8ec1c3e) to head (b2a2493).
Report is 2 commits behind head on main.

Files
Patch %
Lines

autogen/coding/jupyter/docker_jupyter_server.py
0.00%
71 Missing :warning:

autogen/coding/jupyter/jupyter_client.py
0.00%
8 Missing :warning:

autogen/coding/jupyter/__init__.py
0.00%
2 Missing :warning:

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1794       +/-   ##
===========================================
- Coverage   37.05%   25.53%   -11.52%
===========================================
  Files          62       63        +1
  Lines        6499     6575       +76
  Branches     1438     1568      +130
===========================================
- Hits         2408     1679      -729
- Misses       3898     4683      +785
- Partials      193      213       +20

Flag
Coverage Δ

unittests
25.52% <0.00%> (-11.54%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

I think the context manager approach is a great way to emphasis the docker resource being used. Shall we also use this syntax for the Docker Command Line Executor? The docker container can start when we enter the context and stopped when exiting the context. This way we avoid the "many image" problem people are complaining about that every time code executed an image is created. Furthermore, the same container can be shared across multiple agents in the same context, with different configuration of code executors. This also allows the container to be used by custom executors that support different languages.

I believe comments are addressed. Longer form docs are here: https://github.com/microsoft/autogen/pull/1809


Player builder

Provide a web app for getting embed code for podcast episodes.
Start with an RSS feed, lost episodes, then for a given episode provide embed code for the player based on data from the feed and provided or overridden in the builder.

built. additional tickets for enhancing, fixing


Change python_requires version to fix PEP 440 issue

Title
Fix python_requires to use PEP 440 Version Identification
Motivation
This PR changes the python_requires property in the setup.py version to follow the PEP 440 Version Identification, which will be able to install this package using poetry version 1.2.0a2, which validates the PEP 440 as part of the installation process.

Fixes #638

Tests
No new unit tests are required.
Checklist
Before you create the PR, please make sure you have:

[x] Picked a concise, informative and complete title
[x] Clearly explained the motivation behind the PR
[x] Linked to any existing issues that your PR will be solving
[ ] Included tests for any new functionality
[x] Checked that all unit tests pass

Workflow
Please avoid rebasing and force-pushing to the branch of the PR once a review is in progress.
Rebasing can make your commits look a bit cleaner, but it also makes life more difficult from the reviewer, because they are no longer able to distinguish between code that has already been reviewed, and unreviewed code.

Thanks – duplicate of #631.

Merged. Thank you @lucasvieirasilva !!


Updated documentation for Dashboard.

Updated documentation for Dashboard.
Type of Change

[ ] Bug Fix
[x] New Feature
[ ] Breaking Change
[ ] Refactor
[ ] Documentation
[ ] Other (please describe)

Checklist

[ ] I have read the contributing guidelines
[ ] Existing issues have been referenced (where applicable)
[ ] I have verified this change is not present in other open pull requests
[ ] Functionality is documented
[ ] All code style checks pass
[ ] New code contribution is covered by automated tests
[ ] All new and existing tests pass

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

Comparison is base (e4fa6c3) 14.95% compared to head (60635f9) 14.95%.
Report is 2 commits behind head on main.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #469   +/-   ##
=======================================
  Coverage   14.95%   14.95%
=======================================
  Files          49       49
  Lines        2735     2735
=======================================
  Hits          409      409
  Misses       2299     2299
  Partials       27       27

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Require pango on macOS as well as Linux

See #35 and #50.

Should have made this pull request on the upstream repository


HAL-1937 Console.waitNoNotification fails with multiple notifications (Manatoko with local mode)

https://issues.redhat.com/browse/HAL-1937

About to do some more testing...


Housing units affordable to HI households

Description: Units annually priced lower than 30% of 121-165% AMI
Logic:
Source(s): NYC HVS
Year(s):

[ ] 2002
[ ] 2011
[ ] 2017

Geographies:

[ ] PUMA
[ ] Borough
[ ] City

Race and ethnicity breakdown: No
Denominator:
SME: HPD
Questions:
Roadblocks:

related to the questions in the MI indicator. The data for 120% AMI is not present in the HVS data. It should be possible to use the other tier to engineer this variable with e.g. 50 % HUD Income Limits * 2 * 1.2

Changes
Source: ACS PUMS
Years: 2015-19
SME: Pop Div