[Feature]: App Developer can view and set labels/annotations on Tasks

Background
As an App Developer
I want to be able to set labels and annotations on Tasks via the CF Metadata APIs
So that provide my own labels and annotations to the CFTask resource
See the epic issue for additional context on this feature:
https://github.com/cloudfoundry/korifi/issues/1357
Acceptance Criteria
Acceptance Criteria
There are various limitations in place for label/annotation keys and values that we need to validate against. These are described by the Cloud Controller API docs below (but are also the same as their Kubernetes counterparts).
Annotation keys and values: https://v3-apidocs.cloudfoundry.org/version/3.101.0/index.html#labels-and-selectors
Label keys and values: https://v3-apidocs.cloudfoundry.org/version/3.101.0/index.html#labels-and-selectors
In general these APIs should abide by the same design and validations as the Cloud Controller ones:
https://v3-apidocs.cloudfoundry.org/version/3.101.0/index.html#updating-labels-and-annotations

Setting Labels/Annotations on creation
WHEN I make the following request
cf curl -X POST /v3/apps/:appGUID/tasks -d '{
  "command": "rake db:migrate",
  "metadata": {
    "labels": {
      "env": "production",
      "foo.example.com/my-identifier": "91da69a0-5901-4142-bc74-2144297457c3"
    },
    "annotations": {
      "hello": "there",
      "foo.example.com/lorem-ipsum": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
    }
  }
}'

THEN I see the those labels and annotations reported back with the object in the response and I can see them set on the metadata.labels and metadata.annotations sections of the corresponding CFTask resource.
Setting New Labels/Annotations
GIVEN I have a task that does not currently have labels and annotations
WHEN I make the following request
cf curl -X PATCH /v3/tasks/<task-guid> -d '{
  "metadata": {
    "labels": {
      "env": "production",
      "foo.example.com/my-identifier": "91da69a0-5901-4142-bc74-2144297457c3"
    },
    "annotations": {
      "hello": "there",
      "foo.example.com/lorem-ipsum": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
    }
  }
}'

THEN I see the those labels and annotations reported back with the object in the response and I can see them set on the metadata.labels and metadata.annotations sections of the corresponding CFTask resource.

Updating Existing Labels/Annotations
GIVEN I have a task that has existing labels and annotations (assume the same one as the previous example A/C)
WHEN I make the following request
cf curl -X PATCH /v3/tasks/<task-guid> -d '{
  "metadata": {
    "labels": {
      "env": "dev"
    },
    "annotations": {
      "hello": "goodbye",
      "foo.example.com/lorem-ipsum": "UPDATED"
    }
  }
}'

THEN I see the those labels and annotations reported back with the object in the response and I can see them set on the metadata.labels and metadata.annotations sections of the corresponding CFTask resource. In this case, the "env" label and "hello" and "foo.example.com/lorem-ipsum" annotations should have been updated, while the "foo.example.com/my-identifier" was left alone.

Deleting Existing Labels/Annotations
Labels/annotations are removed by specifying null (not the string "null") as the value in the request.
GIVEN I have a task, that has existing labels and annotations
WHEN I make the following request
cf curl -X PATCH /v3/tasks/<task-guid> -d '{
  "metadata": {
    "labels": {
      "env": null
    }
  }
}'

THEN I see the those labels and annotations reported back with the object in the response and I can see them set on the metadata.labels and metadata.annotations sections of the corresponding CFTask resource. In this case, the "env" label is deleted and all of the others remain.

Viewing Existing Labels/Annotations
GIVEN I have a task that has existing labels and annotations
WHEN I make the following request
cf curl -X GET /v3/tasks/<task-guid>

THEN I See the labels/annotations in the response like
{
...
  "metadata": {
    "labels": {
      "env": "production",
      "foo.example.com/my-identifier": "91da69a0-5901-4142-bc74-2144297457c3"
    },
    "annotations": {
      "env": "production",
      "foo.example.com/lorem-ipsum": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
    }
  },
  "links": {
    ...
  }
}

The story originally referred to a POST /v3/tasks endpoint, but the actual endpoint is POST /v3/apps/:appGUID/tasks. I updated the AC accordingly


Add JSON mapping of ship name to character

Please add a JSON file that contains a mapping of ship name to icon. It should look something like this:
{
	"aggressor": "i",
	"alphaclassstarwing": "&",
	"arc170": "c",
	"attackshuttle": "g",
        ...
        "ywing": "y",
	"z95headhunter": "z"
}

I maintain the iOS app DialVision which displays a list of ships and their icons. The app dynamically loads xwing-miniatures-ships.ttf from GitHub to ensure that it will display icons for the latest ships without having to redistribute the app every time the font updates but it needs a JSON file that maps the ship name to each character so it knows what character icon to display for each ship. Currently, I have a fork of this repo and have been manually maintaining a JSON file but it would be great if I didn't have to maintain a fork and manually generate the JSON every time there's an update.
Here's a screenshot from my app of the view I'm talking about:

I'd love to help in any way I can, but I'm not sure what the best approach would be. I'm not totally familiar with your build process, but I'm guessing the solution could involve using JSON as the source and generating the *-map.scss files as part of the Grunt task.

I think this is a great idea. Why not make it a seperate repo, though?

I suppose it could be a separate repo, but ideally it would be an automated process so when an icon is added to the font, the JSON is automatically kept in sync. I’m not familiar with any way to setup an automated process to build files in one repo that’s triggered by updates from another repo. But I’d be interested in looking into it if you know of something.

I think this is a good idea to incorporate into this project; that way the HTML (well, Pug template) would also be generated at the same time, and adding new icon names would only require editing one file and regenerating the assets.
I don't have time at the moment to implement this; pull requests welcome.  Otherwise I'll see what I can do when I free up.

I was looking through the Gruntfile and it looks like the PUG file is currently manually edited to include all the icons?
I'm thinking that we could instead...

Use JSON as the source for the icon names & symbols.
Create Mustache templates to generate _*-map.scss files from the JSON in the Grunt task.
Either update the PUG file to use JSON to generate index.html or migrate the PUG file to a Mustache template that does the same thing. This way the PUG file won't need to be manually edited every time icons are added.

Since PUG can only be used to generate HTML, I think that Mustache is the best option to generate the _*-map.scss files. The only reason to migrate from PUG to Mustache for the index.html file would be to only support one template format rather than two, but I don't feel strongly either way.
I've used Mustache templates once before with Grunt and can play with it. I'll let you know how it goes.

I got the functionality described above using Handlebars templates, which have some additional functionality over Mustache.
Notes:

The _ships-map.scss file now uses escaped characters, which is consistent with the _icons-map.scss file. The ships-map.json file, however, does not use escaped characters which means it should remain easy to manually edit.
I changed the JSON format slightly from what was discussed above so each of the *-map.json files has a root object of either "icons" or "ships". This made it easier to reuse the same template to generate the *-map.scss files.

Open Questions:

The JSON files are currently in the src/json/ folder. Is this the best location for that?

Nice thing about using the JSON maps is it now enables the ability to run tests on the font and icon maps. I created a separate PR #45 to do just that.


[Doc] README updates

Hey! Can i put a proper README for this Repo since it would help people participating in Hacktoberfest know about it.

Hi @maitri-vv ,
Thank you for your suggestion. As the project is still undergoing a lot of changes I am currently not able to put up a proper README. Once the updates are done I will surely do the same.
Best regards,
Shruti


No "hue" attribute for L530 bulb

Issue
I'm currently experiencing an issue with an L530 bulb. When I turn it on or off I get an error in the HA log file about no "hue" attribute.
Software Version
I am running the following versions:
Bulb Firmware: 1.3.0
TP Link Tapo Integration: 3.1.2
HA Core: 2024.4.3
HA Supervisor: 2024.04.0
HA Operating System: 12.2
Error Log
2024-04-19 10:16:26.072 ERROR (MainThread) [homeassistant] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 258, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 414, in _async_refresh
self.async_update_listeners()
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 168, in async_update_listeners
update_callback()
File "/config/custom_components/tapo/entity.py", line 45, in _handle_coordinator_update
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 998, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1119, in _async_write_ha_state
state, attr, capabilities, shadowed_attr = self.__async_calculate_state()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1058, in __async_calculate_state
attr.update(self.state_attributes or {})
^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 1191, in state_attributes
color_mode = self._light_internal_color_mode if _is_on else None
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/light/init.py", line 911, in _light_internal_color_mode
if (color_mode := self.color_mode) is None:
^^^^^^^^^^^^^^^
File "/config/custom_components/tapo/light.py", line 63, in color_mode
if ColorMode.HS in self.supported_color_modes and self.hs_color is not None:
^^^^^^^^^^^^^
File "/config/custom_components/tapo/light.py", line 84, in hs_color
(hue, saturation) = (self.device.hs.hue, self.device.hs.saturation)
^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'hue'

Same here. It's a v1 bulb and it suddenly became irresponsive. Updating to the latest integration version did not solve the problem.

Here too. Both errors show up and at some point the device gets unavailable. Though strangely at least in the beginning it actually toggles it couple of times then stops working.

Same here. I guess it all started after last tapo integration update.
service light/turn_on. 'NoneType' object has no attribute 'hue'

This is probably a duplicate of #746: it has the same NoneType'd self.device.hs object error, and affects the same firmware (1.3.0) and hardware (L530 v1.0).
There's PR #748 which seems to fix the NoneType error, but doesn't fix the erratic behavior of the bulb: the "rate limit exceeded" error, and the color resetting to white when adjusting the brightness.


Update to namespaced GoogleUtilities

Fix #7405
Initially run tests with "test" tags in GoogleUtilities and GoogleAppMeasurement repos before updating their versions.
If tests pass, planning to push to release-7.5 branch and tag a 7.5.1 release just for SPM distro.
See also https://github.com/google/GoogleUtilities/pull/7 and https://github.com/google/GoogleAppMeasurement/pull/3

Planning to ignore the clang-format failures since they're from the GHA clang-format version update after we cut this release branch.

Planning to ignore the clang-format failures since they're from the GHA clang-format version update after we cut this release branch.


Splash Screen Internal Error

Hi, i think http://<IP_ADDRESS>/v1.2/4/shops is not working and It always show internal error message when I start  the splash screen activity. Anyone can help me? Thanks before

Hi, we had problem with our server hosting, so the staging server is sometimes down. The application now works normally.

Thank you ^^

Is your staging server down cause I am now receiving the same internal error message

I have the same error today.. The server IP it's correct ?
Thanks.

Im facing the same issue today dated 11/16/2017


Fixes #1403: Add support for Blob types for insert

What this PR does:
Adds support for binary CQL type ("Blob") for Inserts and selection; requires addition of support for EJSON(-like) value wrapping.
Which issue(s) this PR fixes:
Fixes #1403
Checklist

[ ] Changes manually tested
[x] Automated Tests added/updated
[ ] Documentation added/updated
[x] CLA Signed: DataStax CLA

Just confirming, this isn't expected to work with findOne yet right? I get a [{"message":"Unexpected Binary Extended JSON format {\"$binary\":\"aGVsbG8gd29ybGQ=\"}"}] error when loading a doc with a blob using findOne().

@vkarpov15 Hmmh. It should work (despite title mentioning "insert") -- if not, could you file a new issue and I'll have a look.

@tatu-at-datastax nvm, that error was with stargate-mongoose's EJSON deserializing. Fixed here: https://github.com/stargate/stargate-mongoose/pull/251/commits/003288b9a497b0ca6b7f18b98abc86a0e7d3febd

@vkarpov15 Phew! Good, thank you for the update & glad it works.


When root_dir is not found, cmake-language-server does not work

nvim --version: NVIM v0.5.0-dev+1176-g9481310c2
nvim-lsp version(commit hash): 83d458a0150b3a883454efc0a9ebc4a34162512c
What language server (If the problem is related to a specific language server): cmake-language-server
Can you reproduce this behavior on other language server clients (vscode, languageclient-neovim, coc.nvim, etc.): no
Can you reproduce this behavior on other language servers offered in the nvim-lspconfig repo? (pyls -> pyright): no
Is the problem isolated to a particular language server: yes
Operating system/version: Linux localhost.localdomain 5.10.8-100.fc32.x86_64 #1 SMP Sun Jan 17 19:52:43 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux Fedora 32

How to reproduce the problem from neovim startup

Create a directory so that it and its ancestor directory do not have the following files and directories. git,compile_commands.json,build
nvim CmakeLists.txt

Actual behaviour
No completion
Expected behaviour
completion
Minimal init.vim or init.lua and code sample
runtime! debian.vim

call plug#begin(stdpath('config') . '/plugged')
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/deoplete-lsp'
Plug 'lifepillar/vim-solarized8'
Plug 'godlygeek/tabular'
Plug 'neovim/nvim-lspconfig'
call plug#end()

let g:deoplete#enable_at_startup = 1
lua << EOF
local nvim_lsp = require('lspconfig')
local on_attach = function(client, bufnr)
  local function buf_set_keymap(...) vim.api.nvim_buf_set_keymap(bufnr, ...) end
  local function buf_set_option(...) vim.api.nvim_buf_set_option(bufnr, ...) end

  buf_set_option('omnifunc', 'v:lua.vim.lsp.omnifunc')

  -- Mappings.
  local opts = { noremap=true, silent=true }
  buf_set_keymap('n', 'gD', '<Cmd>lua vim.lsp.buf.declaration()<CR>', opts)
  buf_set_keymap('n', 'gd', '<Cmd>lua vim.lsp.buf.definition()<CR>', opts)
  buf_set_keymap('n', 'K', '<Cmd>lua vim.lsp.buf.hover()<CR>', opts)
  buf_set_keymap('n', 'gi', '<cmd>lua vim.lsp.buf.implementation()<CR>', opts)
  buf_set_keymap('n', '<C-k>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
  buf_set_keymap('n', '<space>wa', '<cmd>lua vim.lsp.buf.add_workspace_folder()<CR>', opts)
  buf_set_keymap('n', '<space>wr', '<cmd>lua vim.lsp.buf.remove_workspace_folder()<CR>', opts)
  buf_set_keymap('n', '<space>wl', '<cmd>lua print(vim.inspect(vim.lsp.buf.list_workspace_folders()))<CR>', opts)
  buf_set_keymap('n', 'gT', '<cmd>lua vim.lsp.buf.type_definition()<CR>', opts)
  buf_set_keymap('n', '<space>r', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
  buf_set_keymap('n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
  buf_set_keymap('n', '<space>e', '<cmd>lua vim.lsp.diagnostic.show_line_diagnostics()<CR>', opts)
  buf_set_keymap('n', '[d', '<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>', opts)
  buf_set_keymap('n', ']d', '<cmd>lua vim.lsp.diagnostic.goto_next()<CR>', opts)
  buf_set_keymap('n', '<space>q', '<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>', opts)

  -- Set some keybinds conditional on server capabilities
  if client.resolved_capabilities.document_formatting then
    buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
  elseif client.resolved_capabilities.document_range_formatting then
    buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
  end

  -- Set autocommands conditional on server_capabilities
  if client.resolved_capabilities.document_highlight then
    vim.api.nvim_exec ([[
      hi link LspReferenceRead Error
      hi link LspReferenceText Error
      hi link LspReferenceWrite Error
      augroup lsp_document_highlight
        autocmd!
        autocmd CursorHold <buffer> lua vim.lsp.buf.document_highlight()
        autocmd CursorMoved <buffer> lua vim.lsp.buf.clear_references()
      augroup END
    ]], false)
  end
end

-- Use a loop to conveniently both setup defined servers
-- and map buffer local keybindings when the language server attaches
local servers = { "clangd", "cmake", "rls" }
for _, lsp in ipairs(servers) do
  nvim_lsp[lsp].setup { on_attach = on_attach }
end
EOF

Health check

Checkhealth result

health#lspconfig#check
Checking language server protocol configuration

INFO: cmake: configuration checked.
ERROR: rls: The given command "rls" is not executable.
INFO: clangd: configuration checked.

LSP log

Log file

[ START ] 2021-03-26T09:57:59+0800 ] LSP logging initiated

I don't understand the issue? If you have nothing to trigger the root directory detection, we have no way to set the root directory (which we have to send to the language server), so we can't start the language server.

I don't understand the issue? If you have nothing to trigger the root directory detection, we have no way to set the root directory (which we have to send to the language server), so we can't start the language server.

Root_dir is not detected, the directory where the current file is located should be used as root_dir. And when I use clangd, there is no such problem, clangd can complete the .c  file

The root directory pattern for cmake-language-server is https://github.com/neovim/nvim-lspconfig/blob/42a13e5ad99b688bc7376fa4d236e924985d04cc/lua/lspconfig/cmake.lua#L8, you must have one of those files in the parent directory of the cmake file you want to find in order to activate the language server.

The root directory pattern for cmake-language-server is
https://github.com/neovim/nvim-lspconfig/blob/42a13e5ad99b688bc7376fa4d236e924985d04cc/lua/lspconfig/cmake.lua#L8
, you must have one of those files in the parent directory of the cmake file you want to find in order to activate the language server.

When a new project is created and the project is not compiled or added to the version library, LSP support cannot be obtained, which does not conform to the logic of a text editor

LSP support expects a root directory, and 95% of projects use git. In practice .git is a safe assumption. If you disagree, it's a one line PR to add a fallback to the current working director ( and you're welcome to file it).

closed by #797


feat: Dynamic theming

Remaining tasks

[x] Changelog
[x] Testing in Shiny Express
[x] More testing in general
[x] API examples (currently shiny/api-examples/theme/app-core.py includes a POC-level tests/example)
[x] Merge pending PRs in shiny/bslib and update scripts/_pkg-sources.R
[ ] https://github.com/posit-dev/py-shinyswatch/pull/39

Introduction
This is a large PR; please read the PR description.
The primary goal of this PR is a low-level interface to customizable Shiny themes via shiny.ui.Theme(). In #1334, we introduced a theme argument for all page functions, e.g. ui.page_sidebar() and express.ui.page_opts(). This can now be combined with shiny.ui.Theme() to create a custom theme for your Shiny app:
from shiny import App, render, ui

app_ui = ui.page_sidebar(
    # app contents...
    title="Theme Example",
    theme=(
        ui.Theme("shiny")
        .add_defaults(
            headings_color="red",
            bar_color="purple",
            select_color_text="green",
            bslib_dashboard_design=False,
        )
        .add_rules(
            """
            strong { color: $primary; }
            .sidebar-title { color: $danger; }
            """
        )
    ),
)

[!NOTE]
Note that this API is aimed at advanced users who are comfortable with Bootstrap's Sass, as well as our own internal usage. With brand.yml, #1226, we intend to provide a higher-level API for theming that is more user-friendly.

Internal Dependency Changes
The biggest internal changes is around how we handle page-level depenendencies. First I've renamed bootstrap_theme_deps() to shiny_page_theme_deps(). This function now:

Returns a complete bundle of dependencies for Bootstrap, and shiny/bslib components like selectize, ionRangeSlider, the datepicker and bslib's components.
Importantly, the styles for all of these base-Shiny components are now included in bootstrap.min.css, which can be thought of as a complete Shiny theme.

The component dependencies are still attached directly to the components that use them, e.g. selectize still adds the selectize dependencies.
In these contexts, the component styles are rendered against a base Boostrap 5 theme. Within Shiny apps, shiny_page_theme_deps() are loaded by the page and appear first. Component dependencies are suppressed unless the component is used outside of a Shiny page, such as in an interactive Quarto document.
This usage explains both the component-specific dependency as well as the use of default Bootstrap styles for these components.

Dependency Sourcing
The dependency sourcing in scripts/htmlDependencies.R has been completely refactored. There are two levels to the change:

First, to bring in the component dependencies from shiny and bslib as before, but this time pre-rendering component-specific styles against a base Bootstrap 5 theme.

Second, to create shiny/www/shared/sass containing the complete set of Sass .scss files to compile Bootstrap 5, as well as all component styles from shiny and bslib, into a single file.
The end result is that we have a set of Sass files in shiny/www/shared/sass/preset/{preset}/ that compile into a single preset.min.css file and include all of the dependencies in shiny_page_theme_deps() in a single stylesheet.
These Sass files draw from source styles in shiny/www/shared/sass/shiny and shiny/www/shared/sass/bslib. We only include Sass stylesheets that are needed, by recursively tracking imports.

I did some very heavy refactoring of the existing scripts/htmlDependencies.R to make this work. The biggest refactor of existing code happened in e7c6189e9e44195a190fc3af4b700f85cd498d08 and at every step I made sure that the existing functionality was preserved by running the script and ensuring that only the source code changed. In general, any commit using refactor: in the commit message is a refactoring commit where only the source files changed.
Initially in this PR, the Sass prep and compilation was a separate step, but it's now integrated into the scripts/htmlDependencies.R script. A big part of this refactoring included moving everything into smaller functions so that the script is easier to read as a workflow of steps.
Getting the individual Sass files for all of the components required changes in shiny and bslib. In both packages, we had component dependency functions that took a theme object and returned a dependency passed through bslib::bs_dependency() or bslib::bs_dependency_defer(), which rendered the Sass into minified CSS. The two PRs below refactored out the Sass rules or files so that we can call those directly to avoid the Sass compilation:

https://github.com/rstudio/shiny/pull/4044
https://github.com/rstudio/bslib/pull/1052

Sass Compilation
For a Theme object, you can use the .to_sass() method to get the Sass code for the theme. This reveals the structure of the Sass code that is generated by the Theme object:
>>> from shiny import ui
>>> shiny_sass = ui.Theme("shiny") \
...     .add_functions("/* user functions here */") \
...     .add_defaults("/* user defaults here */") \
...     .add_mixins("/* user mixins here */") \
...     .add_rules("/* user rules here */") \
...     .to_sass()
>>> print(shiny_sass)
@import "/Users/garrick/work/posit-dev/py-shiny/shiny/www/shared/sass/preset/shiny/_01_functions.scss";
/* user functions here */
/* user defaults here */
@import "/Users/garrick/work/posit-dev/py-shiny/shiny/www/shared/sass/preset/shiny/_02_defaults.scss";
@import "/Users/garrick/work/posit-dev/py-shiny/shiny/www/shared/sass/preset/shiny/_03_mixins.scss";
/* user mixins here */
@import "/Users/garrick/work/posit-dev/py-shiny/shiny/www/shared/sass/preset/shiny/_04_rules.scss";
/* user rules here */

We place user Sass code after the preset theme Sass code, except for defaults which are placed before theme defaults. This follows the logic of sass::sass_layer_file() and the layering order of Quarto. We only accept user Sass code in the theme, however, so we don't handle multiple Sass layers.
To compile a custom theme to CSS, use the .to_css() method. This method caches the compiled CSS in the theme object, so that it only needs to be compiled once. If you use any of the .add_*() methods after calling .to_css(), or if you change {theme}.preset, the CSS will be recompiled.
The theme object is not a Tagifiable object but it does have a .tagify() method so that we can throw an error if the theme is tagified. Tagifying the theme object is a signal that the theme was used in the UI. Instead, as the error recommends, users should pass the theme object to the theme argument of any page_*() function (or shiny.express.page_opts()).
We include pre-compiled versions of the "shiny" and "bootstrap" themes, so no compilation or temporary folders are required for ui.Theme("shiny") or ui.Theme("bootstrap") until they have been customized.
Before this PR, the shiny wheel was 3.38 MB (as reported by make dist); with the new Sass files and two pre-compiled themes it is now 3.75MB. If we included the pre-compiled Bootswatch themes, the wheel would be 4.91 MB.

Here's a slight more involved suggestion to fix/simplify some of the sass.compile() logic
sass-compile.patch


UI problem with Update History

Might be fixed now if you refresh the page, thanks. (If not, try Ctrl-F5 to force a full refresh)

Thx, resolved.


Custom request timeout setting

What I did
Allow custom timeout value for networks.
How I did it

Add a timeout field for each network within network-config.yaml - if not present, the default value is 30 seconds
Set the default timeout for mainnet-fork as 120 seconds.

How to verify it
Run tests.

Codecov Report

Merging #469 into master will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #469   +/-   ##
=======================================
  Coverage   88.23%   88.23%
=======================================
  Files          56       56
  Lines        6071     6071
  Branches     1336     1336
=======================================
  Hits         5357     5357
  Misses        494      494
  Partials      220      220

Impacted Files
Coverage Δ

brownie/_cli/networks.py
77.31% <100.00%> (ø)

brownie/network/main.py
87.17% <100.00%> (ø)

brownie/network/web3.py
97.14% <100.00%> (ø)

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 bc65f98...2870b2d. Read the comment docs.


Trying to run the first example.

Installed python 3.9 and 3.10 trying to run cli_command_parser/tree/main/examples)/action_with_args.py.
I get the following error:
Traceback (most recent call last):
File "./bin/test.py", line 3, in
from cli_command_parser import Command, Action, Positional
File "/Users/gmcavins/work/sboxes/p1-stack-utils/pypackages/3.10/lib/cli_command_parser/init.py", line 7, in
from .config import CommandConfig
File "/Users/gmcavins/work/sboxes/p1-stack-utils/pypackages/3.10/lib/cli_command_parser/config.py", line 21
multiple_action_flags: Bool = True
^
SyntaxError: invalid syntax
I must be doing something wrong, thoughts.

Can you please provide some additional details - how exactly are you invoking it?  Are you running it from bash, cmd, or powershell?  Are you relying on the shebang and running it directly, or are you calling the script as python action_with_args.py?  Are you using a venv?

I figured this issue out. I am trying to use pdm and had it configured incorrectly.
So, this can be closed.  I have moved on to trying to add Parameters. It would be nice if there were more examples.
So, far I like the API.

I got distracted by some other stuff, but would like to / will try to get back to this soon, and will push more examples that I have been working on.  Glad you like it!

A before/after example that is 90%+ done:
Before: https://github.com/dskrypa/music_manager/blob/master/lib/music/cli/plex_manager.py
After: https://github.com/dskrypa/music_manager/blob/master/lib/music/cli/plex_manager_new.py

Documentation has been significantly expanded:
https://dskrypa.github.io/cli_command_parser/index.html


match template workflow changes

https://github.com/ProjectPythiaCookbooks/projectpythiacookbooks.github.io/issues/96#issuecomment-1308765962

Binder link error:
(          README: line    5) broken    https://binder-staging.2i2c.cloud/v2/gh/ProjectPythiaCookbooks/packaging-cookbook/main?labpath=notebooks - 500 Server Error: Internal Server Error for url: https://binder-staging.2i2c.cloud/v2/gh/ProjectPythiaCookbooks/packaging-cookbook/main?labpath=notebooks

Binder link error:
( README: line 5) broken https://binder-staging.2i2c.cloud/v2/gh/ProjectPythiaCookbooks/packaging-cookbook/main?labpath=notebooks - 500 Server Error: Internal Server Error for url: https://binder-staging.2i2c.cloud/v2/gh/ProjectPythiaCookbooks/packaging-cookbook/main?labpath=notebooks
Nightly build is failing and Binder link doesn't work on main, so i think this test failure isn't because of introduced errors in this PR.

Yeah, looks like this one never got fixed in https://github.com/ProjectPythiaCookbooks/projectpythiacookbooks.github.io/issues/85.
We need to make sure the binder link the README is consistent with the one in the _config file. We don't have any automation for that (yet).


(GH-2689) Ensure env_vars is a hash, convert values to JSON

This updates the run_command and run_script plan functions to ensure
the _env_vars option is a hash. It also transforms any hash values in
the env_vars hash to JSON before calling the executor function,
ensuring that the environment variable is not a Ruby-style hash.
!bug

Ensure env_vars is a hash in commands and scripts
(#2689)
Bolt now ensures that the env_vars option passed to commands and
scripts in plans is a hash and will raise a helpful error message
otherwise.

Convert env_vars hash values to JSON
(#2689)
Bolt now converts hash values for an environment variable passed to a
command or script to JSON. Previously, a hash value would be passed
with Ruby-style syntax.

Opted to just convert hash values to JSON, since converting other values results in extra quoting that would likely affect users. For example, the string foo would become the string "foo".

Enforces env_vars being a hash in run_command

[x] YAML plan
[x] Puppet plan

Enforces hash keys being strings

[ ] YAML plan
[ ] Puppet plan

Allows non-string types as values

[x] YAML plan
[x] Puppet plan

Enforces env_vars being a hash in run_script

[x] YAML plan
[x] Puppet plan

[x] Converts hash values to JSON

Only if they're not embedded in other types


Using Streamname stopped working

I can't understand what has happened. I can't use this format
rtmp://example.com[:port]/appname/streamname
I get error connect: application not found: 'appname/streamname'
It used to work fine and the name var was streamname. I have no idea what happened.
I'm using version nginx 1.18.0 and latest rtmp version here.
Any ideas on how to fix this?

how is your rtmp.conf file?
server {
    listen 1935;

    chunk_size 4096;
    ping 15s;
    ping_timeout 30s;

    application appname {
        allow publish <IP_ADDRESS>;
        allow publish <IP_ADDRESS>;
        allow publish <IP_ADDRESS>;
        deny publish all;

        live on;

    }


DefaultConcurrencyAbstractionLayer.StartTimer might cause System.ArgumentOutOfRangeException when calling Task.Delay(TimeSpan delay, CancellationToken cancellationToken)

i'm seeing this message in my logs:
System.ArgumentOutOfRangeException: The value needs to translate in milliseconds to -1 (signifying an infinite timeout), 0 or a positive integer less than or equal to Int32.MaxValue.
Parameter name: delay
at System.Threading.Tasks.Task.Delay(TimeSpan delay, CancellationToken cancellationToken)
at System.Reactive.Concurrency.DefaultConcurrencyAbstractionLayer.StartTimer(Action`1 action, Object state, TimeSpan dueTime)
at System.Reactive.Concurrency.EventLoopScheduler.Run()
at System.Reactive.Concurrency.Thread.Run()
at System.Threading.Tasks.Task.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
i suspect that there exist expired items in the EventLoopScheduler queue and when it calculates the due time in the Run method we get a negative value.

Thanks for reporting this issue; it has now been fixed.


Add supplier id recommend

Added product recommendations to product detail page based on other items with the same supplier ID.

I like this new edition of our website. Everything looks great! Keep up the good work!


[turborepo] cache hits after sending node_module and .turbo folders to trash

What version of Turborepo are you using?
1.9.9
What package manager are you using / does the bug impact?
pnpm
What operating system are you using?
Mac
Describe the Bug
If deleting node_module and .turbo files using MacOS Finder, turbo will somehow match the cache and skip execution of tasks. This is also the case if deleting via VSCode.
If deleting using command line rm -rf node_modules .turbo, everything works as expected.
Expected Behavior
I expect that after deleting the files, the cache is empty and needs to be recreated
To Reproduce
I created a very simple, very empty project with no dependencies or source files:
Files:
.gitignore
CODEOWNERS
package.json
pnpm-lock.yaml
README.md
turbo.json

turbo.json:
{
    "$schema": "https://turbo.build/schema.json",
    "pipeline": {
        "build": {
            "outputs": ["dist/**"]
        },
        "lint": {},
        "test": {}
    }
}

package.json scripts:
  "scripts": {
    "build": "echo 'turbo::build'",
    "test": "echo 'turbo::test'",
    "lint": "echo 'turbo::lint'"
  }

turbo lint test
Cache miss, new cache files are created
rm -rf node_modules .turbo
turbo lint test
Cache miss, new cache files are created
Delete files using Finder (Using MacOS Ventura 13.3.1 (22E261))
turbo lint test
Cache hit!
Empty trash using Finder
Cache hit!

The easiest way to resolve this weird situation is to change the turbo.json file to invalidate the cache and then focus on using rm -rf node_modules .turbo from the command line.
Another note: When the cache hits after deleting the files, since the original logs are deleted, the output is empty:
otjs-libraries (main) ✗ turbo lint test
• Running lint, test
• Remote caching disabled
lint: Skipping cache check for //#lint, outputs have not changed since previous run.
lint: cache hit, replaying output 255ca524bc7cd422
test: Skipping cache check for //#test, outputs have not changed since previous run.
test: cache hit, replaying output ab2c5da517caa23e
test:
lint:
lint: ><EMAIL_ADDRESS>lint /Users/dmistry/Projects/opentable/otjs-libraries/otjs-libraries
lint: > echo 'turbo::lint'
lint:
lint: turbo::lint
test: ><EMAIL_ADDRESS>test /Users/dmistry/Projects/opentable/otjs-libraries/otjs-libraries
test: > echo 'turbo::test'
test:
test: turbo::test

 Tasks:    2 successful, 2 total
Cached:    2 cached, 2 total
  Time:    101ms >>> FULL TURBO

 otjs-libraries (main) ✗ turbo lint test
• Running lint, test
• Remote caching disabled
test: Skipping cache check for //#test, outputs have not changed since previous run.
test: cache hit, replaying output ab2c5da517caa23e
lint: Skipping cache check for //#lint, outputs have not changed since previous run.
lint: cache hit, replaying output 255ca524bc7cd422

 Tasks:    2 successful, 2 total
Cached:    2 cached, 2 total
  Time:    115ms >>> FULL TURBO

Reproduction Repo
No response

While this may seem incorrect, this is actually expected behavior, and we do a lot of work behind the scenes to make sure that's true. Before turbo even checks if it should restore from cache it checks two things (this is slightly simplified):

have the inputs changed?
do the outputs still exist?

If the inputs haven't changed, and the outputs still exist, turbo will output a cache hit with the message:
outputs have not changed since previous run.
This is because turbo knows that your inputs have stayed the same, and the outputs still exist (even though the cache is gone)
To force turbo to get a cache miss:

Remove the local cache
Make sure remote cache is disabled
Remove the outputs for the task in your workspaces (if the task doesn't have outputs, make sure the .turbo directory in your workspace is removed)

Just to focus on the last part - To force turbo to get a cache miss:

local cache is stored in node_modules afaik, this was sent to trash
Remote caching was never turned on but I will look further into this to see if I need to take any extra steps for this.
My tasks have no outputs and the .turbo directory was sent to trash.

I observed same results even after clearing the trash. It kind of feels like a MacOS bug, but I'd like to see if anyone else can reproduce this issue and/or if there is any known reasons for it.

Apologies for the pre-emptive close! That does sounds like something else might be going on, let me take a deeper look

Ok yea this is a weird one! I can reproduce this when deleting the files from my editor, but when using rm on the command line it works as expcted. This is likely an issue with our file watcher that monitors inputs / outputs.

rm -rf node_modules/.cache/turbo/ .turbo/ - works (cache miss)
manually removing the same directories in my editor (vscode) results in a cache hit with missing outputs.

cc @arlyon this looks to be daemon / file watching related, could you help take a look?

I've experienced the same trying to write a build clean script for our monorepo. Thought I was going insane trying to find what else turbo was using in addition to **/node_modules/. turbo

Ok yea this is a weird one! I can reproduce this when deleting the files from my editor, but when using rm on the command line it works as expcted. This is likely an issue with our file watcher that monitors inputs / outputs.

rm -rf node_modules/.cache/turbo/ .turbo/ - works (cache miss)
manually removing the same directories in my editor (vscode) results in a cache hit with missing outputs.

I'm getting the same. I got it cleared when I changed an output in turbo.json to something else, run build and exit straight away, then change back the cache is cleared.
Probably be good to have an option to disable this type of extra layer of cache checks and just read off the .turbo folder cache.

@jamesg1 what version of turbo are you using?
By way of explanation, with a few too many details: macos, when deleting from some applications including VSCode and Finder, treats the delete as a move (presumably to trash?). One implementation of our filewatching didn't have the appropriate flag set on macos to be notified of moves along the path to the directory we were watching. This should not be the case with latest patch (1.10.7 as of now), but if it is, please flag it.
For other turbo options that may help with what you're trying to accomplish:

--no-daemon will run without the daemon and associated filewatching-based perf optimizations
--force will always execute your tasks, regardless of cache or filewatching status
turbo daemon stop will stop the daemon, which will effectively "reset" filewatching. You'll want to include this if you're implementing a cache-cleaning script

Lastly, if you are implementing a cache-cleaning script, would you mind describing what you are trying to accomplish with it? If it's something that seems like Turborepo should help with, we may be able to make it easier and/or implement one that stays up-to-date.

@gsoltis currently on 1.9.9. Will upgrade and give it a go, thanks for giving that daemon option. I got caching working fine on my CI pipeline and did originally just had force enabled until caching was complete on my CI pipeline.

@dipunm did you try the latest turborepo version there was a fix for the issue.

Seeing similar here. I've ran rm -rf node_modules **/.turbo **/node_modules, then pnpm i and I'm still getting cache hits when I run scripts. Is there anywhere else that could be coming from?

Hey folks, we have released the rust version with v12 which came with a number of fixes. If this is still an issue with that version, feel free to open another issue, since the underlying code has been completely replaced.
Cheers!


Update DocSearch v3 implementation

This updates the DocSearch v3 integration to the latest version:

Support for typing query when the search button is focused
Improved accessibility

The DocSearch integration on this website uses two instances: one for mobile, one for desktop. This resulted in a double modal being shown when hitting Ctrl + K, and then users has to click twice on the overlay to close it. I solved this by checking that no other DocSearch instance is showing before opening a new one. We might want to do this check in DocSearch itself in the future.

Thanks!


[Bug] Generated json content has newline, breaking curl

Overview

Insomnia Version: 5.6.3
Operating System:  Mac OS X
Summary:  Multiline JSON break the "generate code" functionality

How To Reproduce

Create a POST query with JSON payload
Make the JSON payload multilines
Right click and generate curl
The data will have newlines, which isn't valid json --data '{\n"deviceId":"20000055"}

Insomnia uses httpsnippet to generate code snippets. I opened an issue for this specific issue a while ago but have not gotten a response yet. I should probably just submit a PR, as it should be a pretty easy fix... https://github.com/Mashape/httpsnippet/issues/96
If you're interested in contributing the fix, let me know. Otherwise, I'll try to get to it when I can.

probably isn't worth fixing at the httpsnippet level because that project seems rather inactive?
how about just removing newlines before passing it as an argument to httpsnippet, within insomnia?

I'd like to avoid altering request content without the user knowing. Even though removing newlines would not break JSON, it would go against the user's expectations. Also, there are whitespace-dependent content-types where stripping newlines could change the meaning.
Since snippet generation is a fairly major feature of Insomnia, it's probably worth maintaining a custom fork if a pull-request is not accepted.

@gschier makes sense. End of the day, I understand there are tradeoffs. Hope you can find the easiest / cleanest solution

@simplesteph I've made a custom fork so everything should be working as expected in the next release.


ci: Change peaceiris/actions-hugo action to a step-security maintained version

Description
This pull request changes the following:
Change peaceiris/actions-hugo action to a step-security maintained version
Related Issues

Closes #887

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Can I use heatmap in jvectormap

Now I want to use heatmap in jvectormap, but the document is not mention

@haormj heatmap.js does not support jvectormap and there are no plans to support it so far. However you can write a plugin to support it and use heatmap.js as a layer on top of jvectormap. If you have any questions, don't hesitate to ask

Please reopen if this is something you're interested in


"This extension has a Pre-Release version available" link is confusing

Testing #138068

When I click this it triggers a reload of the lower half of the extension details page (I presume if there were a difference there in the pre-release version it'd show up here), but things like the version number don't change, and the link doesn't go away. I get that in some cases the README for the pre-release version might have relevant info, but I feel like in many cases this will cause more confusion than benefit.

Also, no obvious way to get back to seeing the information for the Release version.

@gjsjohnmurray There is an action in the dropdown of gear icon to Show the Pre-Release version.

I like the idea from @weinand  in #138264 - This needs some UX exploration and study. Hence postponed that to next release.
For this release, I fixed the current flow

Removed the Pre-Release version link in favor of Show Pre-Release / Release version actions in gear icon.
Fixed extension editor to show the asked version


Support non-gp3 volumes in AMI image builds

The upstream image-builder AMI packer.json has a throughput field by default in the block device mappings section but this field is valid only for gp3 volumes type. Hence, when specifying any non-gp3 volume in the AMI config for image-builder, the image build fails throwing an error that throughput is not valid for non-gp3 volume types. This occurs even if we override throughput to null or "" via Packer var-files. The only solution is to remove the throughput field from the Packer config. This PR adds logic to conditionally remove or add back the throughput field depending on the volume type.
This approach is used in upstream image-builder as well and was confirmed by one of their maintainers. Refer to kubernetes-sigs/image-builder#1102 for the original issue I raised regarding this.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/cherrypick release-0.14

/approve


Update README.md

Some of these words are not widely used and are strange to developers

Hello! Thank you for opening your first PR to Astro’s Docs! 🎉
Here’s what will happen next:

Our GitHub bots will run to check your changes.
If they spot any broken links you will see some error messages on this PR.
Don’t hesitate to ask any questions if you’re not sure what these mean!

In a few minutes, you’ll be able to see a preview of your changes on Vercel 🥳

One or more of our maintainers will take a look and may ask you to make changes.
We try to be responsive, but don’t worry if this takes a few days.


Is Tensile adapted to RDNA2 ?

Hello,
As you may know RDNA2 has a 128MB L3 cache which is an important difference with the GCN/CDNA architecture, it allows to use efficiently a memory subsystem with a smaller bus width (although it has a throughput higher than a Vega 10) with 8 Samsung GDDR6 chips (8x32x16Gbps). Are tensile or MISA adapted to a microarchitecture where caching (ie spatial/temporal locality) is central to achieve peak performance ?
Do you think RDNA2 could be as good or even better than a GCN/CDNA architecture for GEMM by conserving as longly as possible blocks in the L3 cache ? As we have 128 MB / 160 wavefronts ~= 800 KB per wavefront (160 wavefronts = 80 CU * 2 concurrent 32-lane wavefronts  per CU). It is not far away from the L2 cache we found on CPU (Ryzen 5xxx series: 512 KB L2 cache).

Yes Tensile has support for RDNA2, assigning this to @TonyYHsieh for further support

@v01dXYZ Do you still need assistance with this ticket? If not, please close the ticket. Thanks!


Working with Socket.io and Redis

This version of laravel-echo-server it's working with socket.io and redis? Because i'm not receive data from CLI/CMD.
Channel: project_database_private_channel
Event: App\Events\event
How i get the data of event parameter in JS or listen events correctly?
please any example using socket.io and redis with laravel-echo-server?

Resolved setting the property keyPrefix on databaseConfig.


Expose ownership and permissions permission in ContainerSasPermissions

Is your feature request related to a problem? Please describe.
The ContainerSasPermissions class doesn't expose a way to set the ownership or permissions permission:
https://github.com/Azure/azure-sdk-for-python/blob/a71376d5d0942c08f431178c40ec230d851f54a0/sdk/storage/azure-storage-blob/azure/storage/blob/_models.py#L929-L950
As a workaround, I have to provide the string repesentation directly to the generate_sas_container function:
generate_container_sas(permission="op")

Describe the solution you'd like
I want to use the ContainerSasPermissions class:
generate_container_sas(permission=ContainerSasPermissions(ownership=True, permissions=True))

@janjagusch thanks for the request, we'll take a look and get back to you as soon as possible!

Hi @janjagusch, ownership and permission are specific to HNS (Datalake) accounts and therefore are not supported in the Blob SDK. Instead, you would want to use our Datalake SDK (azure-storage-file-datalake) and generate_file_system_sas where you can specify a FileSystemSasPermissions which has manage_ownership and manage_access_control keywords that correspond to the o and p SAS parameters.

Hi @janjagusch, ownership and permission are specific to HNS (Datalake) accounts and therefore are not supported in the Blob SDK. Instead, you would want to use our Datalake SDK (azure-storage-file-datalake) and generate_file_system_sas where you can specify a FileSystemSasPermissions which has manage_ownership and manage_access_control keywords that correspond to the o and p SAS parameters.

Thanks, @jalauzon-msft.


No Realsense device found

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
D435i

Firmware Version
<IP_ADDRESS>

Operating System & Version
Ubunut Bionic

Kernel Version (Linux Only)
4.15.0-88-generic

Platform
amd64

SDK Version                            v2.33.1

Language
ROS/ROS2

Segment
Robot

Issue Description
<Describe your issue / question / feature request / etc..>
Sometimes, when I restart the ROS node (note that I am wiritng an issue here as the problem is probably not with ROS wrapper but with the Realsense itself) the Realsense gets disconnected and I get warnings like:
"No Realsense device was found!"
Here are the few logs I could find from dmesg:
[    2.598006] uvcvideo: Unknown video format 00000032-0000-0010-8000-00aa00389b71
[    2.598084] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 435i (8086:0b3a)
[    2.598676] uvcvideo: Unable to create debugfs 2-3 directory.
[    2.598715] uvcvideo 2-3:1.0: Entity type for entity Intel(R) RealSense(TM) Depth Ca was not initialized!
[    2.598717] uvcvideo 2-3:1.0: Entity type for entity Processing 2 was not initialized!
[    2.598719] uvcvideo 2-3:1.0: Entity type for entity Camera 1 was not initialized!
[    2.598792] input: Intel(R) RealSense(TM) Depth Ca as /devices/pci0000:00/0000:00:08.1/0000:05:00.3/usb2/2-3/2-3:1.0/input/input4
[    2.598951] uvcvideo: Unknown video format 36315752-1a66-a242-9065-d01814a8ef8a
[    2.598957] uvcvideo: Found UVC 1.50 device Intel(R) RealSense(TM) Depth Camera 435i (8086:0b3a)
[    2.599219] uvcvideo: Unable to create debugfs 2-3 directory.
[    2.599262] uvcvideo 2-3:1.3: Entity type for entity Processing 7 was not initialized!
[    2.599264] uvcvideo 2-3:1.3: Entity type for entity Extension 8 was not initialized!
[    2.599267] uvcvideo 2-3:1.3: Entity type for entity Camera 6 was not initialized!

[  398.528140] traps: nodelet[1608] general protection ip:7fbe250d1dd0 sp:7fbdd27faf68 error:0 in libroscpp.so[7fbe2500e000+193000]
[  454.547480] usb 2-3: Process 2216 (nodelet) called USBDEVFS_CLEAR_HALT for active endpoint 0x82
[  456.578751] usb 2-3: Process 2216 (nodelet) called USBDEVFS_CLEAR_HALT for active endpoint 0x82
[  457.910255] usb 2-3: Process 2216 (nodelet) called USBDEVFS_CLEAR_HALT for active endpoint 0x82
[  476.377933] nodelet[2220]: segfault at 0 ip<PHONE_NUMBER>000000 sp 00007f116f7fc758 error 14 in nodelet[556a1a409000+f000]
[  629.576946] traps: nodelet[2890] general protection ip:7f0e96e05dd0 sp:7f0e8da4df68 error:0 in libroscpp.so[7f0e96d42000+193000]

[  736.913242] xhci_hcd 0000:05:00.3: Timeout while waiting for setup device command
[  742.289126] xhci_hcd 0000:05:00.3: Timeout while waiting for setup device command
[  742.497109] usb 2-3: device not accepting address 3, error -62
[  742.937306] usb 2-3: Device not responding to setup address.
[  743.153176] usb 2-3: Device not responding to setup address.
[  743.361093] usb 2-3: device not accepting address 3, error -71
[  743.801174] usb 2-3: Device not responding to setup address.
[  744.017173] usb 2-3: Device not responding to setup address.
[  744.225082] usb 2-3: device not accepting address 3, error -71
[  744.665855] usb 2-3: Device not responding to setup address.
[  744.881727] usb 2-3: Device not responding to setup address.
[  745.089363] usb 2-3: device not accepting address 3, error -71
[  745.173407] usb 2-3: USB disconnect, device number 3
[  745.585656] usb 2-3: Device not responding to setup address.
[  745.801167] usb 2-3: Device not responding to setup address.
[  746.009393] usb 2-3: device not accepting address 4, error -71
[  746.449709] usb 2-3: Device not responding to setup address.
[  746.665707] usb 2-3: Device not responding to setup address.
[  746.873284] usb 2-3: device not accepting address 5, error -71
[  746.901335] usb usb2-port3: attempt power cycle
[  747.837703] usb 2-3: Device not responding to setup address.
[  748.053193] usb 2-3: Device not responding to setup address.
[  748.261277] usb 2-3: device not accepting address 6, error -71
[  748.701705] usb 2-3: Device not responding to setup address.
[  748.917786] usb 2-3: Device not responding to setup address.
[  749.125250] usb 2-3: device not accepting address 7, error -71
[  749.153039] usb usb2-port3: unable to enumerate USB device

@abylikhsanov hello,
The error messages indicate that USB controller has issues to recognize and enumerate the device during the power-up/enumeration stage .

[  744.881727] usb 2-3: Device not responding to setup address.
[  745.089363] usb 2-3: device not accepting address 3, error -71

Unfortunately most of those cases require user intervention:

HW setup: switching USB port, replacing/tightening USB cables.
SW Setup: restart PC/cold boot.  You can also experiment with rtcwake to temporally switch the system in deep sleep and check whether this could be enough to reset/troubleshoot USB controller.

It looks like we encountered the same issue in #6112

@abylikhsanov Did you get chance to try what ev-mp suggested? Looking forward to your update. Thanks!

@abylikhsanov Any update from your side? Thanks!

@abylikhsanov Could you please update if you still need support on this?Thanks!

@abylikhsanov Is the issue resolved? Looking forward to your update. Thanks!

I to this date observe this issue with D435i connected to Jetson Nano running JetPack 4.3

@dosvidos Did you try to use the custom CMAKE flags to see if it helps? Please refer to the discussion in https://github.com/IntelRealSense/librealsense/issues/6112#issuecomment-613149240

Building librealsense 2.33.1 with FORCE_RSUSB_BACKEND CMAKE flag set to TRUE doesn't help in my case

@dosvidos  Since your issue is not totally same as this issue, could you please create another new one to track? Thanks!

@dosvidos Please also check if https://github.com/IntelRealSense/librealsense/issues/6293#issuecomment-619531747 can resolve your issue. Thanks!

@dosvidos , in case you observe the same kernel log warnings then the above troubleshooting should apply as well.

[  746.665707] usb 2-3: Device not responding to setup address.
[  746.873284] usb 2-3: device not accepting address 5, error -71

Otherwise - please follow @RealSenseCustomerSupport  suggestion and open a dedicated ticket.


MMRchange over session?

Just started using this, it seems like the MMRchange field is only showing the MMR change for the most recent game. I'd like to see how my MMR has changed over the whole session. Is this possible?
I'm using mode "GameMode" and theme "Default", by the way.

Yes, check the Wiki.
A bug is however present on certain values, there will be an update by the end of the week.
Consider using the Discord to ask your questions.


Improvement: "CacheRefresh" event

We are looking for a way to be notified when the Eureka client has refresh its local cache. This could help to quickly react on changes in the list of discovered instances, like adapt balancing/routing behaviour.
The DiscoveryClient doesn't expose any public/protected method that could be easily overridden to implement such behaviour. However, we were wondering if the DiscoveryClient could be enhanced to publish a CacheRefresh event on the eventBus every time it refreshes its cache?

@brenuart this would be a useful feature. A simple hook point for this would be to publish this event after every successful execution of the CacheRefreshThread, however this may return some false positives as not every refresh will actually have updates to the local cache. To publish this event only for real changes  may involved some careful hooks to a few different methods (starting point would be the CacheRefreshThread).
Would you be interested in making a pull for this feature?

Some remarks:
(1) First question is what kind of event do we need ?
A CacheRefreshedEvent would simply tell the world the cache is refreshed and up-to-date. It doesn't say something has changed. We could leave the change detection to a separate component that would perform the diff and eventually send another event with the change information.
A CacheUpdateEvent on the other hand would be sent only if there is a change. But I wonder is if it is useful at all if it doesn't hold information about what has actually changed:

new instance discovered (which one)?
instance gone (which one)?
instance status changed
etc

It start getting complicated. So my advice would be to go for the simplest CacheRefreshedEvent and possibly build a separate listener that would track changes. People interested in the actual delta could use it.
(2) Event or listener?
The second question is whether we should plug into the eventBus or go for a simple listener. In the later case, interested parties would register with the DiscoveryClient to get the info.
Drawback of the listener pattern: requires component to unregister
(3) Starting hook
According to me, it is probably better to hook into the fetchRegistry() method instead of the CacheRefreshThread. The fetchRegistry() method is where the actual work is done and can/could be invoked from many different places. Currently only at startup and then at regular intervals by the CacheRefreshThread.
Your opinion?

@qiangdavidliu ping?

@brenuart sorry was busy with other work.
I believe you and I essentially have the same agreement in both of our comments, that is there is two ways to go about this.
The simpler way is to emit events on the cacheRefresh, which gives false positives as not all cache refreshes actually updates data. This is pretty straight forward to add.
The more complex and better way to generate events for real refresh that actually did work is to hook into the various update methods themselves. As the update actions involves deltas and retries the instrumentation point may not be as straight forward.
W.r.t. to the message publishing, using the existing eventBus is nice as a different event (StatusChangeEvent) is already published there. However I have no strong dislikes of a listener, provided that it can be added nicely to the current interface and does not add too much clutter.
Since we don't have a requirement for this feature internally, I leave it to you to decide which route is best for your use case.


Can't enter insert mode after close session.

Hello,
If I open dapui window and then close it, I'm not able to enter insert mode (It will back to normal mode automatically). This happens after I upgrade to neovim 0.9.0, and I tested with the same config on neovim 0.8.3, everything is fine. Is this plugin not yet available for version 0.9.0?

Actually, the nightly neovim works fine as well... So I upgrade to NVIM v0.10.0-dev-53+g5ccec143d.

can this be reopened? i have the same issue, but i want to stick to stable neovim 0.9

i found out that this has nothing to do with nvim-dap-ui, most likely it's nvim-dap issue
anyways, i downgraded to 0.83 for now

this issue is apparently going to be fixed in the upcoming nvim 0.9.1
https://github.com/neovim/neovim/issues/22924

can confirm, upgrading to dev version (  brew install --HEAD neovim ) helps

Upgrading to dev (NVIM v0.10.0-dev-361+ge3e6fadfd) solved it on my end as well.

Closing as this is not a nvim-dap-ui issue

This started to happen again...I'm on v0.11.0-dev (nightly).
Even after closing dapui I cannot go back to editing my code since normal mode operations are intercepted by dap (or dap-ui, I'm not sure which).


Allow relative path in FileLoader

Hi,
I made a change in FileLoader.cs to allow loading of csv files from relative path.
For instance, I have a test suite that copies the folder containing the csv files in bin directory. With this change someone could do:
IDataLoader loader = new Effort.DataLoaders.CsvDataLoader("csvs_folder_in_bin_without_c_bla_bla_bla");

Hello @psicus78 ,
Thank you for the pull, we will look at it very soon.
Best Regards,
Jonathan

Hello @psicus78 ,
The v1.3.9 has been released.
My developer started with your pull and made a slight change to handle the case that the string starts with \.
Let me know if everything works as expected.
Best Regards,
Jonathan


Add safari options to template

This PR adds two options for configuring iOS' Safari save-to-desktop feature, implemented in the template via an optional safari property on the existing options object.

@doches Thanks to @holyfirexx's #62 implementing my #51, you can now inject custom HTML, which you may be able to use for you custom Safari <meta> tags.

Yes, I think I agree.  Thanks for pointing that out, Anders .  I think the injected snippets should cover this.  Closing for now.  Reopen if you see another need.


New TileMap Editor: deleting the last layer crashes Godot

Godot version
4.0 alpha1
System information
mac book pro 2017
Issue description
The video demonstrates the problem.
Create new tilemap layer, try to remove that last layer, godot crashes.  Was able to reproduce it multiple times.
Steps to reproduce
Create new tilemap layer, try to remove that last layer, godot crashes.
Minimal reproduction project
No response

here's a video showing it
https://youtu.be/xW3FwroldDA

cc @groud

Please provide a minimal reproduction project, I cannot reproduce this on my side:
https://user-images.githubusercontent.com/6093119/152830950-8e734abf-942f-4244-8b17-b8850b09ac3d.mp4

Also can't reproduce. Comment with MRP if it still happens in alpha 7+.


Added core php files and made code more modular

now what's next !

Let's start working on insert, delete, update for models in core Cj_Model

Ok
On 13-Oct-2017 12:41 AM, "Chaitya Shah"<EMAIL_ADDRESS>wrote:

Merged #1 https://github.com/Chaitya62/CJ-MVC/pull/1.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Chaitya62/CJ-MVC/pull/1#event-1290935071, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AXnbrprlSWGlkrB_qhjIkNYmjE-hiwX0ks5srmRxgaJpZM4P3V9f
.

--
http://www.somaiya.edu http://www.somaiya.edu/kjsmc
http://www.nareshwadi.org http://www.somaiya.edu
http://www.helpachild.in http://nareshwadi.org


Namespacing?

Would be good to have this namespaced for easy inclusion with other apps using namespaces (Symfony2 apps specifically).

Agreed but it's already in the global namespace and modifying would be a breaking backward compatibility change.
Will be done in the next major version.

On 1 Dec 2015, at 17:25, Matt Marshall<EMAIL_ADDRESS>wrote:
Would be good to have this namespaced for easy inclusion with other apps using namespaces (Symfony2 apps specifically).
—
Reply to this email directly or view it on GitHub.

Fair! Cheers for swift response


SceneSpawner: add unload() and unload_sync()

This allows you to unload scenes.
Refs: https://github.com/bevyengine/bevy/issues/255
I've been struggling to get an example up that isn't just rewriting the breakout game to use scenes, maybe someone can help me make something simpler to properly verify this.

@cart Addressed and updated.


The "more specific route" priority rule is not honored

I have a controller that supports 2 versions (Latest and Obsolete), and this controller contains these routes:

sites/{siteId} with [MapToApiVersion(ApiVersions.Latest)]
sites/contracts with no version qualifier (should be available for both Latest and Obsolete).
If I call sites/contracts with version Latest (from header) I expect this route to be called, but it is actually sites/{siteId}.
I know I can disambiguate with siteId:int but I don't see any reason why the "more specific route" wouldn't apply here.

My config (as is, in case I made some mistake):
Basically all the controllers support Latest and Obsolete versions, and [Obsolete] methods are mapped to the Obsolete version.
services.AddApiVersioning(options =>
{
	options.AssumeDefaultVersionWhenUnspecified = true;
	ApiVersion obsoleteVersion = ApiVersion.Parse(ApiVersions.Obsolete);
	options.DefaultApiVersion = obsoleteVersion;
	options.ApiVersionReader = new HeaderApiVersionReader("X-Api-Version");

	// configure every ApiController that supports versioning
	ApiVersion[] supportedVersions = new[] { obsoleteVersion, ApiVersion.Parse(ApiVersions.Latest) };
	foreach (Type controller in Assembly.GetExecutingAssembly().GetTypes()
		.Where(_ => _.GetCustomAttribute<ApiControllerAttribute>(true) != null && _.GetCustomAttribute<ApiVersionNeutralAttribute>(true) == null))
	{
		IControllerConventionBuilder controllerConventions = options.Conventions.Controller(controller);

		// set the supported versions
		controllerConventions.HasApiVersions(supportedVersions);

		// assign the obsolete version to the obsolete methods
		foreach (MethodInfo method in controller.GetMethods()
			.Where(_ => _.GetCustomAttribute<ObsoleteAttribute>(true) != null))
		{
			controllerConventions.Action(method).MapToApiVersion(obsoleteVersion);
		}
	}
});

And the controller:
[Route("api/prouser/sites")]
public class SiteController : ProUserControllerBase
{
...

[HttpGet("{siteId}")]
[MapToApiVersion(ApiVersions.Latest)]
public async Task<SiteDto> GetSite([FromRoute] SiteId siteId)
...

[HttpGet("contracts")]
public async Task<IEnumerable<ContractsDto>> GetContracts()

Note that setting Latest as the default version (options.DefaultApiVersion = ApiVersion.Parse(ApiVersions.Latest);) produces the same result.

I get the basic gist of what's happening, but it's a bit difficult to debug in my head. Do you have the world's simplest repro that demonstrates the problem? I maybe to be able to help figure out where things when awry.
Sidebar
I would recommend you use a custom convention. That would remove all the nasty Reflection stuff.  It might look something like:
public sealed class MyConvention : IControllerConvention
{
    private readonly IReadOnlyList<ApiVersion> supportedVersions;
    private readonly ApiVersion obsoleteVersion;

    public MyConvention(IReadOnlyList<ApiVersion> supportedVersions, ApiVersion obsoleteVersion)
    {
        this.supportedVersions = supportedVersions;
        this.obsoleteVersion = obsoleteVersion;
    }

    public bool Apply(IControllerConventionBuilder controller, ControllerModel controllerModel)
    {
        controller.HasApiVersions(supportedVersions);

        var actions = controller.Actions;

        for (var i = 0; i < actions.Count; i++)
        {
            var action = actions[i];

            if (action.Attributes.OfType<ObsoleteAttribute>().Any())
            {
                controller.Action(action.ActionMethod).MapToApiVersion(obsoleteVersion);
            }
        }
    }
}

Hello,
here is a reproducer: ApiVersionMoreSpecificRoute.zip
Thx for the tip on the custom convention. Note that in my case I had to ensure the controller didn't have the ApiVersionNeutral attribute:
public bool Apply(IControllerConventionBuilder controller, ControllerModel controllerModel)
{
	if (!controllerModel.Attributes.OfType<ApiVersionNeutralAttribute>().Any())
	{
		// set the supported versions
		controller.HasApiVersions(_supportedVersions);

		// assign the obsolete version to the obsolete methods
		foreach (ActionModel action in controllerModel.Actions)
		{
			if (action.Attributes.OfType<ObsoleteAttribute>().Any())
			{
				controller.Action(action.ActionMethod).MapToApiVersion(_obsoleteVersion);
			}
		}

		return true;
	}

	return false;
}

I'll take a look at your repro.
Your approach should work here; however, API versioning looks for IApiVersionNeutral and IApiVersionProvider. Using attributes just happens to be one of the ways these can be applied. :)

Thank you for the repro. This is indeed strange. This does have the appearance of a bug, but I'm not sure why it is happening - or rather why it hasn't been discovered before. This a common scenario. There is even an acceptance test for this exact scenario. There is some combination here that is different from that test case. Ultimately, this is happening because sites/contacts has implicitly mapped versions which have a lower priority to the explicitly mapped version of sites/{siteId}, despite sites/contacts have a higher score (e.g. better route match). I believe this may be a flaw in the matching logic where an implicitly mapped version (e.g. from the parent - i.e. controller) can be ranked higher than an explicitly mapped version if the score is higher. Currently, there is no specially handling for scores - only valid/invalid plug the implicit/explicit versions.
There are 2 possible immediate workarounds:

Put a route constraint a la {siteId:int}; however, that might not always make sense
Explicitly map the versions to ~/sites/contracts. This can be done with [MapToApiVersion] or a convention

You should only have to do it for this case. It could apply to any other case where the route templates can overlap.

Thanks.
I will use solution 1 as it seems it makes sense here anyway.


Fail to launch lldb on linux

Which OS: Antergos
Which LLDB version (lldb -version): 5.0.0
Which VSCode version (Help/About): 1.19.0
What is the problem and how did you get there:
When using below configuration launching it does not work. It outputs 2 messages
LLDB self-test has faled!
Since this is the first time you are starting LLDB, I'm going to run some quick diagnostics

{
	"type": "lldb",
	"request": "launch",
	"name": "Launch",
	"program": "/home/jonathan/Documents/repos/engine/Engine/Binaries/linux/Engine",
	"args": [],
	"cwd": "/home/jonathan/Documents/repos/engine/Game/Binaries/linux"
},

What's in the Output window after self-test?

--- Checking version ---
--- Done ---

I have the same problem as @jonathansty

If you try to debug a binary lldb cannot find the lldb-server, because the debugger looks for /usr/bin/lldb-server. You can fix this problem by creating a symlink.

I do not have lldb-server-3.8 present. I do have lldb-server however.

Hmm, not sure why self-test does not print any errors, but try running lldb -v on the command line.  You might have a versioned binary only, like lldb-4.0.  If you find the name of your lldb binary, you can configure it via lldb.executable setting.

Actually... found a bug in my diagnostics code.   Please try 0.7.3.

@vadimcn works for me. Thanks and what a great response time!

@vadimcn works for me too. Thanks!


add: shubham13k

Description
[Include a brief description of the changes you've made]
Related Issues
[Include any related issues or pull requests that this PR addresses or is related to. Use GitHub's shorthand syntax to link to them, like #1234.]
Changes Proposed
[Describe the changes you've made in detail. Be specific and include any relevant code snippets.]
Checklist

[ ] I have read and followed the Contribution Guidelines.
[ ] All new and existing tests passed.
[ ] I have updated the documentation to reflect the changes I've made.
[ ] My code follows the code style of this project.
[ ] The title of my pull request is a short description of the requested changes.

Screenshots
Note to reviewers

@shubham13k Thank you so much for your contribution! Your efforts are greatly appreciated and will go a long way in improving our project. Please feel free to share it with others and help us grow even further!


<EMAIL_ADDRESS>:: SdkVersion 26 too old，can you publish a new version

node_modules/react-native-network-info/android/build.gradle
android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"

hi,  SdkVersion is too old。can you publish a new version of npm?

What version are you looking for?  Would 28 work?
android {
    compileSdkVersion 28
    buildToolsVersion "28.0.3"

yes！28 is ok. thank you！
------------------ 原始邮件 ------------------
发件人: "Corey<EMAIL_ADDRESS>发送时间: 2019年5月17日(星期五) 晚上9:08
收件人<EMAIL_ADDRESS>抄送<EMAIL_ADDRESS><EMAIL_ADDRESS>主题: Re: [pusherman/react-native-network-info]<EMAIL_ADDRESS>:: SdkVersion 26 too old，can you publish a new version (#92)
What version are you looking for?  Would 28 work?
android {     compileSdkVersion 28     buildToolsVersion "28.0.3"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

hi，please publish a new version on npm
thank you


wip - test

:+1: There are no linter violations.

Total linter violations in pull request: 2
Serious: 0
Warnings: 2

:+1: There are no linter violations.

Total linter violations in pull request: 2
Serious: 0
Warnings: 2

:+1: There are no linter violations.

Total linter violations in pull request: 2
Serious: 0
Warnings: 2


FinRL_PaperTrading_Demo Numpy Array Transformation Failure

Running into issues with the FinRL_PaperTrading_Demo.ipynb tutorial, replicated both locally and on the Google Colab.
---------------------------------------------------------------------------

ValueError                                Traceback (most recent call last)

[<ipython-input-16-2bc3c6d9ee26>](https://localhost:8080/#) in <module>()
----> 1 price_array, tech_array, turbulence_array = DP.df_to_array(data, if_vix='True')

2 frames

<__array_function__ internals> in hstack(*args, **kwargs)

[/usr/local/lib/python3.7/dist-packages/numpy/core/shape_base.py](https://localhost:8080/#) in hstack(tup)
    343         return _nx.concatenate(arrs, 0)
    344     else:
--> 345         return _nx.concatenate(arrs, 1)
    346
    347

<__array_function__ internals> in concatenate(*args, **kwargs)

ValueError: all the input array dimensions for the concatenation axis must match exactly, but along dimension 0, the array at index 0 has size 2190 and the array at index 1 has size 2186

The number of rows for each unique ticker don't match, hence the concatenation will fail.  Is there some data cleaning step missing from this tutorial that needs to be added?

I have the exact same issue. It seems like DP.clean_data(data) does not ensure that each ticker has the same number of rows. This leads to DP.df_to_array() failing with the above error. I use the following code to inspect the size of the dataset of each of the tickers, and then manually root out the ones that deviate from the most-often-occurring size:
for tic in data.tic.unique():
length = data[data.tic == tic][["close"]].values.shape
print(tic, length)
I tried to use a portion of AlpacaProcessor's get_latest_data() to replace this function - yes, I found that the 'clean data' portion of this method does give datasets with the same number of rows. However, it was cumbersome and eventually I got another error related to add_vix().
This is bothersome and we need the DP.clean_data(data) method to ensure that each ticker's dataset has the same number of rows.
Thanks for looking into this
Kobus