Access to XMLHttpRequest at 'https://api.mywebsite.com' from origin 'https://mywebsite.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I am getting this No 'Access-Control-Allow-Origin' header error, and I can not seem to understand the reasoning behind that.
Here is how I am initialising CORS in my nodeJS backend :
const cors = require('cors');
app.use(cors());
app.options('*', cors());
I am sending this header in my request on my angular application :{headers: {"x-access-token": this.authService.getToken()}}
It is worth noting that all GETrequests are working perfectly fine, as well as some POST workung fine as well, yet I am still facing this problem.
any recommendations ?

If you are sending a custom header, you may need to configure allowedHeaders. If you can post all the request headers for the response that is missing the Access-Control-Allow-Origin header, we can see what the browser is asking for.

Closing due to no further follow up.


Make ASYNC the default allocator for 22.06

Signed-off-by: Alessandro Bellina<EMAIL_ADDRESS>Re-enable ASYNC in 22.06 for 11.5.0 and above.

build


Add davrods link to iRODS deletion request list items

It would be useful to verify the contents of collections this way. Not sure why I didn't think of this before. This should be a Davrods link opening in a separate browser tab, pointing to the path of the file/collection to be deleted.
Spec

In IrodsDataRequestListView, add Davrods link button for each item
Add as button next to the path clipboard copy button

Only display if IRODS_WEBDAV_ENABLED is true
Icon should be mdi:open-in-new
Add "Open collection/file in WebDAV" as title with bootstrap tooltip

Link to davrods and the path of the file/collection being deleted

Hint: remember to build URL with IRODS_WEBDAV_URL
Remember to add target="_blank" to open in new tab

Test for existence in TestIrodsDataRequestListView UI tests

Done by @gromdimon.


Controls issue through web application

Board type:
ESP32 S3
Install method:
- Auto install

Hi , the install is ok , after the led display the ip ... it s possible to go to pianolux.local
but on this web display all controls are not working, you can change  animation or light color... you can change anything on the page, nothing happens on the led. it s like the controls are not saved or applied
i can send midi via rtp midi on the ip of the pianolux and at one moment "the ip led display disappear" and it start to work and lighting the led in front of my key i press, but i don t have any control on colors or display time through the web application.
and another issue just to mention :when i try to use synthesia to midi out via rtp midi, the light reacts to noteOn, but lot of time noteOff doesn t stop the led(perhaps latency).

Board type:
ESP32 S3
Install method:
- Auto install

Hi , the install is ok , after the led display the ip ... it s possible to go to pianolux.local
but on this web display all controls are not working, you can change animation or light color... you can change anything on the page, nothing happens on the led. it s like the controls are not saved or applied
i can send midi via rtp midi on the ip of the pianolux and at one moment "the ip led display disappear" and it start to work and lighting the led in front of my key i press, but i don t have any control on colors or display time through the web application.
and another issue just to mention :when i try to use synthesia to midi out via rtp midi, the light reacts to noteOn, but lot of time noteOff doesn t stop the led(perhaps latency).

I think the bluetooth feature I added is causing the board to not work properly. I removed bluetooth from esp32 I will remove it for s3 as well and update the auto install firmware. When you see this reply it should be updated. Do auto install again and report if you still have unresponsive interface. To verify that you are using latest auto install website check last modified label if you see the date matching todays date its latest version of the website with updated firmware in which I removed ble for now.
Please report after you install new firmware if it has any issues like before.
Thanks

Hi , yes thank you , it s working now, controls are working  on the page , and fx led works also to move the led after a3 and the one after and latency seems also a bit less (i have to test a bit more),  perfect. i will try to buy a power for leds because i think sometimes the esp is rebooting time to time but it works
great job

Hi , yes thank you , it s working now, controls are working on the page , and fx led works also to move the led after a3 and the one after and latency seems also a bit less (i have to test a bit more), perfect. i will try to buy a power for leds because i think sometimes the esp is rebooting time to time but it works great job

If you have usb midi device you can connect it directly to s3 usb otg port(dual port board) if you have single usb port try diy usb otg to jumper pins adapter and use 19 20 5v and gnd pins to create usb connection, if you use wifi midi router network mostly likely is causing delays, I recommend you to try AP mode(short pin 16 to gnd and reset the board) for skipping router and use esp32 network instead which should help you with latency. But since you have s3 I recommend usb connection bc s3 supports it,


Time to answer quiz

The time depends on when the student start... but it should have a limit to avoid a student that starts too late.

Removed, a few seconds is not significant and if more time is given it may be used for cheating in the case it is solved at home.


Migrate the project to gradle build system

Note: you need to create a libraries/libonionkit/ directory - libonionkit should also be gradlified and the good you probably want to push the released aar to a public maven repo.

@fgei @sreilly is this still applicable?


Basic Development dependencies in readme

Some things I've stumbled on and thought it might be good to document.

I think we should actually remove the VSCode workspace settings from the repo. I think it's not a good practice. We could however include a .vscode/extensions.json with recommended project extensions.
https://code.visualstudio.com/docs/editor/extension-marketplace#_workspace-recommended-extensions

I agree with @joaosreis –– also, let's place any development-related changes in the CONTRIBUTING.md's environment setup, not the readme.

These dependencies are already documented there. Re. the vscode extensions, we could have a .vscode/extensions.json with a recommendations field. Created #39 to track it, but it's not a priority. Closing for now.

These dependencies are already documented there. Re. the vscode extensions, we could have a .vscode/extensions.json with a recommendations field. Created #39 to track it, but it's not a priority. Closing for now.

I missed that, thanks.


Add vertex light support

This will help address #357
There is also pixel light support with #383
Experimental support for vertex lights. Vertex lights are point lights which are set to Not Important or in some cases Automatic.

Night Time
About
Attenuation
The attenuation formula was taken from here. The UNITY_LIGHT_ATTENUATION doesn't work for vertex lights. The Shade4PointLights, as discussed in the thread, didn't give good results.
Shader Parameters
I've added some shader parameters so others for flexibility for the time being. Not sure if they will be merged. They are mostly there to separate the parameters for the primary direction light.
Notes
ShadeVertexLightsFull cannot be used since it is for Legacy Vertex Lit.
Issues
Tiling Artefacts

Tiling artefacts occur depending on the attenuation, lights overlapping and camera orientation. The frame debugger shows lighting values being filled. It could be the attenuation calculation or a limitation in vertex lighting. Further investigation required.
Underwater

I have come across this issue when trying to integrate a weather asset with cloud shadows. It is much worse at night. Not including lights might be the best solution. Or at least having it behind a toggle.
Missing

Directional Light style reflections

Really solid work. Code looks all good to me.
I tried it out and seems to work well from initial experiments.
Could you push the tiling fail case? You could check in main.unity temporarily and we could revert it later, if that makes sense.

Thanks. Done

It may be because the light is set to Auto and unity is deciding to make it a pixel light. If i set the red light to be "Not Important" the issue goes away.. ?

I thought that too. I am in the same test case now and I have to set them (or at least the red one) to Important for the issue to go away.

I just went through the frame debugger and VERTEXLIGHT_ON was active for those tiles.
Metal is a bit strange with lighting. I will have to test on Windows tomorrow. Hopefully, I can get the same as yours.

I get the same for Windows as for Mac. The issue is that the red colour is severely diminished:
Lights marked as Important

Lights marked as Not Important

Also, if I change one of the green lights to a blue colour, the red colour is passed through correctly.
This could be a bug in Unity.

Thanks for the above, and trying to wrap my head around things.
I think that Unity will move lights between vertex and pixel depending on number of lights, importance, maybe intensity(?). And there is a limit of 4 lights per vertex (and the directional light seems to impact the result for me - when i turn it off the result changes - so it's counted in the 4?).
If all that is true the story that my brain has constructed is that it is moving lights between vertex and pixel based on these factors, but this branch only has vertex, not pixel, so lights disappear. But I'm not 100% sure if that is consistent with what we're seeing / with the above?

Worth noting as well that since verts can be displaced quite far horizontally, the render bounds are quite a lot larger than the tile appears and it may be overlapping more lights than it would seem

Thanks. Displacement tip is useful. After disabling attenuation:

I have gone over the following again:
https://docs.unity3d.com/Manual/RenderTech-ForwardRendering.html

but this branch only has vertex, not pixel, so lights disappear

It is hard to say. The only thing I think I can do to confirm is to merge the pixel and vertex branch together, and max out the lights to see what happens. Not too difficult.

But I'm not 100% sure if that is consistent with what we're seeing / with the above?

From what I have been experiencing, it hasn't been consistent with the manual. I didn't think Important lights would even render without pixel light support in the shader. I thought that Unity was populating the shader data with pixel light calculations. I have also seen the issue with lower amounts of lights. Lastly, when comparing Important and Not Important in the Frame  Debugger, the light positions, world light and spherical harmonics are the same; the only thing changed is the light colours. I would think if the light disappears, then the light positions shouldn't include the same set of lights:
Important

Not Important

I might have to make some reproducible cases with planes and a trimmed down shader. I'll let this sit in my mind for a bit.

I will make a forum post or file a bug since the issue is unrelated to Crest.

Finally got around to it: https://forum.unity.com/threads/vertex-lights-behaving-strangely.822300/

Update from Unity (12/03/2020):

We successfully reproduced this issue and have sent it for resolution with our developers.

Removing draft status. It could probably use more work which I can look into another time.
Unity has given a conclusion:

This particular case has been investigated thoroughly and we have decided, to not address this fix for the time being. Our developers found out that using stock URP shader works as expected, so you could use that as a workaround.

We could implement it here and then recommend URP if anyone wants nice lighting.


Dynamic Choices tag: create tags from variable lists

Hello,
Thanks for the great tool!
Usage example
I relate the feature to a specific example to make it a bit less abstract.
I would like to build a labeling tool with the following data structure:

unique keys (e.g. jounal ISSN)
values which are ambiguous (e.g. journal names with typos, abbreviations, etc)

Specifically, I have the keys and the candidate values for each key.
The labeling task would be the following:

iteratively go through unique keys and display candidate values
label each candidate value as belonging to the key or not (True or False)

Current solution
The current solution is based on <Choices>

<View>
  <Choices name="journals" toName="issn" choice="multiple">
    <Choice alias="id-1" value="Nature Journal"></Choice>
    <Choice alias="id-2" value="Nature, periodical"></Choice>
   ...
    <Choice alias="id-n" value="..."></Choice>
  </Choices>
  <Text name="issn" value="1476-4687 (Nature)"></Text>
</View>

What is important here: the number of choices (candidate values) varies from one key to another (in [1, n])
Now, as stated by @deppp: The current limitation is that: the Choices tag is static, so you need to specify all the classes beforehand
Future
In the future, that would be nice to be able to create <Choices> tags from variable lists
Thanks!

Hi, @cverluise ! Dynamic choice tag is not supported yet, but this is a great feature, we will definitely implement it.
Considering your particular task, I suggest trying the following config:
label_config.xml:
<View>
    <Text name="key" value="$text"/>
    <Ranker name="values" toName="key" ranked="true" sortedHighlightColor="orange"/>
</View>

Then composing labeling tasks data.json:
[{
  "data": {"text": "unique ISSN"},
  "predictions": [{
    "result": [{
      "from_name": "list",
      "to_name": "list",
      "type": "ranker",
      "value": {
        "items": ["ambiguous journal title 1", "ambiguous journal title 2", "ambiguous journal title 3"],
        "selected": [false, false, false]
      }
    }]
  }]
}]

Starting with
label-studio start --init --label-config=label_config.xml --input-path=data.json

should give you exactly what you want

Excellent, thanks @niklub !
I'll dig into that direction and let you know how it works.
Thanks again to the development community for great support on both Slack and GitHub.
Cheers!

Hello,
I tried both locally and on the online app but it  loads forever when try to start labelling.  This might be more appropriate.
Thanks!

Working 🎉 . Thanks a lot!

Thank's for pointing to this, we'll create <Ranker> doc as soon as it becomes stable

Thank's for pointing to this, we'll create <Ranker> doc as soon as it becomes stable

hi @niklub, Thanks for the great new feature ranker, but the example about ranker does not work on Preview or  Playground.


Activate heap profiler on the frontend node

after https://github.com/risingwavelabs/risingwave/issues/14740 finishes

This isn't related to the operator it self. I believe it can be achieved by setting extra envs and tuning some of the configurations.


This is just impossible

this is the simples example I can think and it is just impossible it just dosen't work
public class HourViewCell : ViewCell
{
public static readonly BindableProperty HoursProperty =
BindableProperty.Create("Hours", typeof(Hours), typeof(HourViewCell), "");
    public Hours Hours
    {
        get { return (Hours)GetValue(HoursProperty); }
        set { SetValue(HoursProperty, value); }
    }

    public HourViewCell()
    {

    Label durationLabel = new Label
        {
            BackgroundColor = Color.White,
            Text = Hours.Duration
        };

        StackLayout viewCellLayout = new StackLayout();
        viewCellLayout.Children.Add(durationLabel);

        View = viewCellLayout;
    }
 }

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

ID: b054a909-6f7f-0b32-5059-eb5c8a9b366b
Version Independent ID: 723af07b-8f4e-ebe3-a520-99cdcf5efc5a
Content: Bindable Properties - Xamarin
Content Source: docs/xamarin-forms/xaml/bindable-properties.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @ChrisMcdonald
Unfortunately we cannot respond to support questions here; these issues are for tracking documentation feedback. Other channels you can use to seek help include Developer Community, the Xamarin Forums, and Stack Overflow.


Neogit leaves empty buffer every time it's open

Description
Every time I open Neogit it creates new empty buffer.
Just opened file "test.txt":

Opened and closed Neogit:

Opened and closed Neogit for the second time:

Bug reproduces with "minimal.lua" config
P.S. Sorry for bad English :sweat_smile:
Neovim version
NVIM v0.8.1
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by builduser
Operating system and version
Arch Linux
Steps to reproduce

nvim -nu minimal.lua
check :buffers
open Neogit :Neogit
check :buffers again, note that second buffer appears
close Neogit q
check :buffers again, note that second buffer did not disappeared

Expected behavior
No additional buffers created
Actual behavior
Empty additional buffers created every time I open Neogit
Minimal config
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = "/tmp/nvim/site/pack"
local install_path = package_root .. "/packer/start/packer.nvim"
local function load_plugins()
  require("packer").startup({
    {
      "wbthomason/packer.nvim",
      {
        "TimUntersberger/neogit",
        requires = {
          { "nvim-lua/plenary.nvim" },
          { "sindrets/diffview.nvim" },
        },
        config = function()
          print("loaded neogit")
          require("neogit").setup()
        end,
      },
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. "/plugin/packer_compiled.lua",
      display = { non_interactive = true },
    },
  })
end
if vim.fn.isdirectory(install_path) == 0 then
  print("Installing neogit and dependencies.")
  vim.fn.system({ "git", "clone", "--depth=1", "https://github.com/wbthomason/packer.nvim", install_path })
end
load_plugins()
require("packer").sync()

Any update on this?

I checked every kind of Neogit. Only tab kind creates and leaves empty buffer

I think I located the problem. It is in file lua/neogit/lib/buffer.lua, line 142. api.nvim_set_current_buf do not replaces current buffer, but creates new one. Event is current buffer is empty buffer. Guess it is neovim bug rather than neogit

Tried replicate with nvim --clean. No additional buffer created. Strange...

Hmm.. Guess I did something wrong while testing.
I tried emulate creating new buffer in new tab like Neogit dose, only by hand:
nvim -nu minimal.lua test.txt
:tabnew
:lua vim.api.nvim_set_current_buf(vim.api.nvim_create_buf(false, false))

And it created second empty buffer (first one created by :tabnew. But it didn't reproduced with nvim --clean.
And now I can't reproduce it by hand nor with clean neovim, nor with minial.lua config.
The actual bug still reproduces

I also face similar issue

I have the same issue

I also have this issue. Any suggested config fix?

I guess you can hack in some autocmd that will after closing neogit buffer try to find any empty buffers and deletes them.
P.S. Looks like maintainers don't really care about this issue :(

Hi, sorry for the late reply. It should now hopefully be solved.
It was the blank buffer which neovim creates when opening a new tabbage, with a blank buffer, which was just ignored. It should be fixed now.

Can confirm that issue is fixed. Thank you! ❤


Rename docker-compose.yml to docker-compose-example.yml

This is used as a block, which means it doesn't need a docker-compose file. The docker-compose file is useful as an example, but when it deploys it deploys from the docker-compose.yml file, which prevents the block from pulling effectively.
See: https://github.com/balena-labs-projects/xserver/issues/23

LGTM


Mac install issue.

On Mac OS Sonoma:
❯ rm -rf ~/.config/nvim

~
❯ git clone https://github.com/Zproger/GenesisNvim.git ~/.config/nvim
Cloning into '~/.config/nvim'...
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 27 (delta 10), reused 0 (delta 0), pack-reused 0
Receiving objects: 100% (27/27), 723.66 KiB | 695.00 KiB/s, done.
Resolving deltas: 100% (10/10), done.

When trying to run:
❯ nvim -c "MasonInstall pyright ruff-lsp mypy"
Error detected while processing command line:
E492: Not an editor command: MasonInstall pyright ruff-lsp mypy
Press ENTER or type command to continue

nvim version:
❯ nvim --version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1713773202
Run "nvim -V1 -v" for more info

а норм, что сейчас нету конфига в репке?

а норм, что сейчас нету конфига в репке?

yep, he said on 1k likes

Hm. It was announced in telegram channel...
I didn't expect empty repo :)

The repository has been updated and the error has been fixed.


FYI: SwiftGen 0.7.1 generated UIColor.Name type causes linker errors when WMO is enabled

Updated to SwiftGen 0.7.1 today and started seeing build failures from our app's Release config (which has WMO enabled). Using 0.6 last week the source for the UIColor extension was different and didn't cause this issue.
I'm not expecting a fix as this certainly looks like a compiler issue, but thought I'd log the issue for others to find in case they run across it.
Here is an example project where these errors can be observed.
https://github.com/phatblat/SwiftGenWMO
Undefined symbols for architecture x86_64:
  "direct type metadata for ext.SwiftGenWMO.__ObjC.UIColor.Name", referenced from:
      _globalinit_33_9DB38CA9AF8247CBBD097F938D9B20B4_func0 in ViewController.o
      generic specialization <ext.SwiftGenWMO.__ObjC.UIColor.Name with ext.SwiftGenWMO.__ObjC.UIColor.Name : Swift.Hashable in SwiftGenWMO, Swift.UInt32> of static Swift._VariantDictionaryStorage.maybeGetFromCocoaStorage <A, B where A: Swift.Hashable> (Swift._VariantDictionaryStorage<A, B>.Type)(Swift._CocoaDictionaryStorage, forKey : A) -> B? in ViewController.o
      function signature specialization <Arg[1] = Dead> of generic specialization <(ext.SwiftGenWMO.__ObjC.UIColor.Name, Swift.UInt32)> of static Swift.Array._allocateBufferUninitialized <A> ([A].Type)(Swift.Int) -> Swift._ArrayBuffer<A> in ViewController.o
      function signature specialization <Arg[0] = Owned To Guaranteed, Arg[1] = Dead> of generic specialization <ext.SwiftGenWMO.__ObjC.UIColor.Name with ext.SwiftGenWMO.__ObjC.UIColor.Name : Swift.Hashable in SwiftGenWMO, Swift.UInt32> of static Swift._NativeDictionaryStorage.fromArray <A, B where A: Swift.Hashable> (Swift._NativeDictionaryStorage<A, B>.Type)([(A, B)]) -> Swift._NativeDictionaryStorage<A, B> in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

This has been filed as rdar://23472326

Note: this issue is only present in the new default colors template. Switching to the rawValue template was sufficient to work around it in our Release builds.
swiftgen colors \
    --template rawValue \
    --output ${PROJECT_NAME}/Resources/SwiftGen/UIColor+Name.swift \
    ${PROJECT_NAME}/Resources/Colors.txt

Ah, interesting, thanks for logging.

FYI I tested your sample project in the radar and it still fails with Xcode 7.1.1 (7B1005). You might want to update your radar.

Done. This issue is also present in Xcode 7.2 beta 3 (7C62)

For reference: https://twitter.com/jckarter/status/668500028269326340
For the Colors I found another workaround (using a switch instead of a dictionary) I'll commit that soon, but for storyboard I'm not sure that'll work

nice!

@phatblat Is the bug really fixed? I got a coworker telling me that they just encountered that bug (even after ef7fdd435b9b084b6f4b084eabb65900698bb07a trying to fix it)… and they're using Xcode 7.3

I can't reproduce this issue in an app using SwiftGen by switching from the rawValue template back to default. Interestingly, I also can't reproduce this issue in my example project for the radar in any version of Xcode from 7.3 back to 7.1. Not sure what's going on here since it was so easy to reproduce before.

Ah, I have a run script in the example project that is running SwiftGen and changing the UIColor+Name.swift file
I get the same linker error now in Xcode 7.3 in the example project as long as I don't let SwiftGen 0.8 run to update that file. Using v0.8 and the default color template does not cause any issues.


Sign modal needs loader

Newly created sign modal needs a loader during metamask (or any other) sign process.
Originally posted by @antho1404 in https://github.com/liteflow-labs/starter-kit/pull/549#discussion_r1473784235

@ismailToyran related PR is merged. Can you close this issue if work is done please?


CloudwatchLogs - implement validation for old/new messages

Closes #3979
Implements validation for:

log events not in chronological order
log events that are too old (> 2 weeks ago)
log events that are too recent (> 2 hours in the future)

Tests were validated against AWS

Codecov Report

Merging #4565 (1f0551c) into master (701465d) will increase coverage by 0.09%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #4565      +/-   ##
==========================================
+ Coverage   95.06%   95.16%   +0.09%
==========================================
  Files         515      515
  Lines       58712    58746      +34
==========================================
+ Hits        55816    55907      +91
+ Misses       2896     2839      -57

Flag
Coverage Δ

servertests
47.89% <12.00%> (-0.02%)
:arrow_down:

test_responses
32.39% <12.00%> (-0.02%)
:arrow_down:

unittests
95.07% <100.00%> (+0.09%)
:arrow_up:

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

Impacted Files
Coverage Δ

moto/batch/models.py
88.64% <100.00%> (+0.01%)
:arrow_up:

moto/events/models.py
94.67% <100.00%> (ø)

moto/logs/models.py
95.16% <100.00%> (+0.16%)
:arrow_up:

moto/logs/responses.py
95.28% <100.00%> (+0.04%)
:arrow_up:

moto/awslambda/models.py
92.89% <0.00%> (-0.12%)
:arrow_down:

moto/s3/models.py
94.49% <0.00%> (ø)

moto/dynamodb2/exceptions.py
100.00% <0.00%> (ø)

moto/dynamodb2/models/__init__.py
95.91% <0.00%> (+0.01%)
:arrow_up:

moto/iot/models.py
91.83% <0.00%> (+0.08%)
:arrow_up:

moto/ec2/utils.py
91.95% <0.00%> (+0.48%)
:arrow_up:

... and 2 more

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 701465d...1f0551c. Read the comment docs.


Create assets for the rabbit

Acceptance Criteria

Create assets for the wounded rabbit character
Assets should allow showing various states of injury, from not very injured at all to on its last legs

This is done!


add tailwindcss forms option

Topic
tailwindcss
Description
We get an option to add the typography plugin, can we also have one for tailwindcss forms??
Describe the solution you'd like
would love to have tailwindcss forms option

Hey, thanks for the suggestion. You are doing a totally valid assumption here, and I was kinda surprised to find out we had one integration but not the other.
We are currently discussing on what svelte-add is and what it should be. So we will definitely consider that, thanks for bringing this to my attention!

Is any of that discussion happening publicly? I am keen to see/contribute.

Not at this point sadly. But since the adder definition is not ging to change (much), your changes should be pretty straigt forward to apply after our changes. We will hit you up once we get there


recipe/CEN-9907 coordinate converter

Recipe cooked.

Done! I have added the scale by 100 I forgot. :)

it looks like the os and json imports are unused, let's get rid of them.

also this repo has a pre-commit config to strip metadata out of jupyter notebooks. Can you install and run pre-commit?

and lastly you might want to update the example in the last cell:
wkt_string = 'POLYGON ((0 50, 0 100, 100 100, 100 50, 0 50))'

Done! Please review.


Document SSL_R_UNEXPECTED_EOF_WHILE_READING

Also document that it is ok to use this for control flow decisions.

Setting tests: deferred as it would be IMO nice to have a testcase for this reason code if it is officially documented as part of the API. But IMO this is a little bit more work than this simple doc PR so it should be properly planned.

Can you clarify why you mean with control flow decisions?

Can you clarify why you mean with control flow decisions?

The ERR_GET_REASON man page has this note on it:

Applications should not make control flow decisions based on specific error
codes. Error codes are subject to change at any time (even in patch releases of
OpenSSL). A particular error code can only be considered meaningful for control
flow decisions if it is explicitly documented as such. New failure codes may
still appear at any time.

So, this makes SSL_R_UNEXPECTED_EOF_WHILE_READING explicitly documented as such according to the above note, i.e. it would be reasonable for an application to do something like this:
if (ERR_GET_REASON(errcode) == SSL_R_UNEXPECTED_EOF_WHILE_READING) {
    /* Do something */
} else {
    /* Do something else */
}

Maybe we should have a link to that other manpage.

Maybe we should have a link to that other manpage.

I have added that.
@t8m, @tom-cosgrove-arm - please reconfirm.

This pull request is ready to merge

Merged to the master and 3.2 branches. Needs a separate PR for 3.1 and 3.0.

@mattcaswell will you do that 3.1 PR?

@mattcaswell will you do that 3.1 PR?

#23327


The size of an image is determined by the page width not by the size of the image on the page

Description
When an image is shown in the storefront and the size of the browser window is large, the original image is loaded. Even if the image is only displayed with small dimensions. The image should, however, be picked based on the image size not the window width.
This obviously leads to considerable performance issues in the storefront.
With a large image view:

The displayed image:

With a small image view:

The displayed image:

Possible Solution
I am not fully certain, how the CSS should be here. It seems that with the correct sizes attributes a browser can do a better job of picking which size of image to load.
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images
https://css-tricks.com/responsive-images-css/

I'm not able to reproduce this issue but maybe I am missing something. These are the steps I've taken so far:

Upload an image to an existing product
Set image as cover and save product
Visit category page that has the changed product

Is there anything I missed or I can do to reproduce the issue?

@johannesdachsel I followed your exact approach and achieved the same results. This makes me think that the initial bug occurred in an earlier version of Shopware 6.
The sizes query for the image in question is as follows:
(min-width: 1200px) 280px, (min-width: 992px) 350px, (min-width: 768px) 390px, (min-width: 576px) 315px, (min-width: 0px) 500px, 100vw
This means, that the largest possible thumbnail size for the image is (assuming thumbnail generation has not been altered) 800x800 px - which is used when the min-width of 576px is not reached.
In order to achieve even better thumbnail sizes, I think one would have to generate the thumbnails according to bootstrap's breakpoints and approximate the most sensible sizes based on the grid layout. The responsiveness function of picture and srcset only takes the screen-width into account. If one wanted to account for the actually displayed size of the image, this could (imo) only be achieved using lazy loading - which is not greay for above the fold content.
In my opinion, this issue can be closed, since the original bug is no longer reproducible and the rendered image sizes are okay.
What do you think @johannesdachsel and @shyim?

@tobiasberge Can you look here

@shyim It should be fixed with https://github.com/shopware/platform/commit/b54cb382a6fc68e788b32ed81d4926b26437f929
With this change the original images should never be used as soon as thumbnails are generated. The only exception is the image zoom on the detail page. I cannot reproduce it on current trunk, in the listing I get the 400x400 image on 3440px resolution for the product box image.


Windows binary MODULE_NOT_FOUND

From scrid2000 on Discord:
D:\DnD\Dungeon Revealer>"D:\DnD\Dungeon Revealer\dungeon-revealer-windows.exe"
node:internal/modules/cjs/loader:930
  throw err;
  ^

Error: Cannot find module 'C:\Users\SCrid\AppData\Local\Temp\caxa\applications\dungeon-revealer-windows\3bn3q6shhl\0\server-build\index.js'
←[90m    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:927:15)←[39m
←[90m    at Function.Module._load (node:internal/modules/cjs/loader:772:27)←[39m
←[90m    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12)←[39m
←[90m    at node:internal/main/run_main_module:17:47←[39m {
  code: ←[32m'MODULE_NOT_FOUND'←[39m,
  requireStack: []
}

It seems that Windows is periodically deleting individual files from the temporary directory.
The current workaround is to delete the C:\Users\user\AppData\Local\Temp\caxa\applications\dungeon-revealer-windows folder and rerun the binary.

Yes, i can confirm that problem! Happens to me as well!

It is happening to me as well. I am receiving the error:
C:\Users\dnd\dungeonrevealer\dungeon-revealer-windows-v1.16.0> .\dungeon-revealer-windows.exe
2021/11/06 09:40:42 caxa stub: Failed to run command: exec: "C:\\Users\\dnd\\AppData\\Local\\Temp/caxa/applications/dungeon-revealer-windows\\3bn3q6shhl/0/node_modules/.bin/node": file does not exist

The workaround @maxb2 is using works for this issue as well.

Unfortunately, it's an upstream bug. We can't do much about it without caxa being fixed first.

I had this same issue on Mac, posting my process here in case someone like me has this issue later on Mac:

I'm not a developer/not familiar with debugging these kinds of things but was able to fix it by doing much the same thing suggested by @maxb2, going into my temporary folder "open $TMPDIR" in Terminal on Mac and then deleting this folder:

Submitted a PR upstream to fix this: https://github.com/leafac/caxa/pull/60


Update to work with the latest rust nightly (rustc 1.6.0-nightly (1727dee16 2015-11-26))

Equivalent to #136

Great, thank you!


Yarp failing to intercept/receive requests when deployed as Docker Container.

Describe the bug
Yarp is unable to intercept/receive requests when the service is deployed as a docker container.
I have Yarp and a ASP.NET Application running locally and working fine (using dotnet run), yarp listens on localhost:5000 and forwards the request to the destination (application) on localhost:5001.
Yarp application is configured to intercept the request, inspect the Api Key header, validate the Api Key and then retrieve Azure AD Access Token and append it to the requests Authentication header as a Bearer token.
But when I try to deploy the Yarp and ASP.NET application together as Docker containers, the YARP container just doesn't receive any requests, but the ASP.NET application does.
I am not sure what I am doing wrong, I have tried every which way in regards to port mapping for Docker Networking, are there any configuration pre-requisites to get YARP working in a Docker Container? It's concerning that it's not working because I will need to deploy this to a Kubernetes cluster to sit between the client and backend service.
When the containers are up and I send a GET request to the web api on http://localhost:5001/api/addresses, it returns data. But when I perform the same request to YARP on http://localhost:5000/api/addresses, expecting it to forward the request, I get Error: socket hang up.
The configured Destination Address for YARP in the Cluster portion of the config points to the container name and internal port so the yarp container can communicate with the other container within the Docker network.
I have already tried re-configuring the address to be localhost:5000 instead of the container name and internal port.
Any advice would be appreciated, I've exhausted all troubleshooting ideas. :( If anyone has any examples of running YARP as a Docker container please send them through!
@Tratcher
To reproduce
Currently unable to push my code to a public repo because it's for work. But please read my configuration below which should give you a good idea.
Appsettings.docker.json
Appsettings used for docker environment
{
  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "Microsoft": "Debug",
      "Microsoft.Hosting.Lifetime": "Information"
    }
  },
  "Urls": "http://localhost:5000",
  "AllowedHosts": "*"
}

launchSettings.json
{
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:11109",
      "sslPort": 44316
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "Dh.Proxy.Condamine": {
      "commandName": "Project",
      "dotnetRunMessages": "true",
      "launchBrowser": false,
      "applicationUrl": "http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

Route & Cluster configuration
private static RouteConfig[] ConfigureRoutes()
{
    var routes = new[]
    {
        new RouteConfig()
        {
            RouteId = "addressesapi",
            ClusterId = "addressesapi",
            Match = new RouteMatch
            {
                Path = "/api/addresses"
            }
        }
    };
    return routes;
}

private static ClusterConfig[] ConfigureClusters()
{
    var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
    var isDevelopment = environment == Environments.Development;
    var clusters = new[]
    {
        new ClusterConfig()
        {
            ClusterId = "addressesapi",
            Destinations = new Dictionary<string, DestinationConfig>(StringComparer.OrdinalIgnoreCase)
            {
                { "addressesapi_backend1", new DestinationConfig()
                    {
                        Address = isDevelopment ? "http://localhost:5001" : "http://addressesapi:80"
                    }
                }
            }
        }
    };
    return clusters;
}

Docker Compose
version: "3.4"
services:
  demoaddressapi:
    #cannot scale a service beyond 1 container refer to https://docs.docker.com/compose/compose-file/#container_name
    container_name: addressesapi
    build:
      context: .
      dockerfile: DemoAddressApi/Dockerfile
    ports:
      - "5001:80"
    environment:
      - ASPNETCORE_ENVIRONMENT=Docker

  authproxy:
    build:
      context: .
      dockerfile: Dh.Proxy.Condamine/Dockerfile.dev
    container_name: "dhproxycondamine"
    ports:
      - "5000:80"
    environment:
      ASPNETCORE_ENVIRONMENT: "Docker"
      AzureAd:TenantId: "123"
      AzureAd:ClientId: "123"
      AzureAd:ClientSecret: "123"
      AzureAd:ApiKey: "123"

networks:
  default:
    name: auth-proxy-network
    driver: bridge

NOTE: I have already tried using the port mapping 5000:5000
Dockerfile
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 80 443
ENV ASPNETCORE_ENVIRONMENT=Docker \
    ASPNETCORE_URLS=http://+:80

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["Dh.Proxy.Condamine/Dh.Proxy.Condamine.csproj", "Dh.Proxy.Condamine/"]
RUN dotnet restore "Dh.Proxy.Condamine/Dh.Proxy.Condamine.csproj"
COPY . .
WORKDIR "/src/Dh.Proxy.Condamine"
RUN dotnet build "Dh.Proxy.Condamine.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "Dh.Proxy.Condamine.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Dh.Proxy.Condamine.dll"]

Docker containers ls output
CONTAINER ID   IMAGE                                                      COMMAND                  CREATED             STATUS                    PORTS                           NAMES
52637bf9c0ea   dhproxycondamine_authproxy                                 "dotnet Dh.Proxy.Con…"   4 minutes ago       Up 4 minutes              443/tcp, <IP_ADDRESS>:5000->80/tcp   dhproxycondamine
12a143aa9321   dhproxycondamine_demoaddressapi                            "dotnet DemoAddressA…"   About an hour ago   Up 4 minutes              443/tcp, <IP_ADDRESS>:5001->80/tcp   addressesapi

Docker Network logs
This shows that the containers are in the same network within Docker
% docker network inspect auth-proxy-network
[
    {
        "Name": "auth-proxy-network",
        "Id": "1a81f736646eba159fc98262dde2b0aa8507d32788edc783e146505b5727c71f",
        "Created": "2022-01-14T07:37:59.018618852Z",
        "Scope": "local",
        "Driver": "bridge",
        "EnableIPv6": false,
        "IPAM": {
            "Driver": "default",
            "Options": null,
            "Config": [
                {
                    "Subnet": "<IP_ADDRESS>/16",
                    "Gateway": "<IP_ADDRESS>"
                }
            ]
        },
        "Internal": false,
        "Attachable": true,
        "Ingress": false,
        "ConfigFrom": {
            "Network": ""
        },
        "ConfigOnly": false,
        "Containers": {
            "12a143aa93212e6bdeff1fdf477b988393a35b0e0c305722a928d1f6c610ce4d": {
                "Name": "addressesapi",
                "EndpointID": "cb08c4d8091492f290b110317556cfe459cab583419171a617e83a05daf35290",
                "MacAddress": "02:42:ac:18:00:02",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            },
            "52637bf9c0ea0d0e0f45a83b62a14b50af174500eaae4d89ae02b380479e1299": {
                "Name": "dhproxycondamine",
                "EndpointID": "a1ddeccd8c750b8ba9feee510f7b81ae8ced3e500082d8ada13f28be9b045b3b",
                "MacAddress": "02:42:ac:18:00:03",
                "IPv4Address": "<IP_ADDRESS>/16",
                "IPv6Address": ""
            }
        },
        "Options": {},
        "Labels": {
            "com.docker.compose.network": "auth-proxy-network",
            "com.docker.compose.project": "dhproxycondamine",
            "com.docker.compose.version": "1.29.0"
        }
    }
]

YARP Proxy Container ENV VARS
% docker exec -it dhproxycondamine /bin/sh
# ls
Dh.Proxy.Condamine	      Dh.Proxy.Condamine.dll  Dh.Proxy.Condamine.runtimeconfig.json  Yarp.ReverseProxy.dll	   appsettings.docker.json  web.config
Dh.Proxy.Condamine.deps.json  Dh.Proxy.Condamine.pdb  Microsoft.Identity.Client.dll	     appsettings.Development.json  appsettings.json
# printenv
HOSTNAME=52637bf9c0ea
HOME=/root
DOTNET_RUNNING_IN_CONTAINER=true
DOTNET_VERSION=5.0.13
ASPNETCORE_ENVIRONMENT=Docker
TERM=xterm
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
ASPNETCORE_URLS=http://+:80
PWD=/app
ASPNET_VERSION=5.0.13

@amroczeK You need to use the network bridge that you created and not localhost. Instead of using the address "http://localhost:xxxx" you need to use the one in docker "http://auth-proxy-network:xxxx" in the YARP configuration(cluster configuration) so that your docker containers can talk to each other.
the address localhost works inside the docker container but imagine it like an isolated vm. Based from your setup, you have 2 vms that each of them has their own localhost network. Whatever exists in vm1 port 5000 doesn't exist in vm2 port 5000(and vice versa). You need to expose them via a custom network so they can call each other. You may refer to the links below on how to do so.
Here is an article that you can refer to:
https://docs.docker.com/compose/networking/
https://blog.devgenius.io/api-calls-between-docker-instances-24124f5bf010

https://docs.docker.com/compose/networking/

Thanks that makes sense, I will give this a go tomorrow.

I have closed the issue. I resolved it by making the following changes to my Dockerfile, docker-compose.yml and Cluster Config.
Dockerfile
Had to expose 5000 and set it for ASPNETCORE_URLS
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
WORKDIR /app
EXPOSE 5000
ENV ASPNETCORE_ENVIRONMENT=Docker \
    ASPNETCORE_URLS=http://+:5000

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /src
COPY ["DemoAddressApi/DemoAddressApi.csproj", "DemoAddressApi/"]
RUN dotnet restore "DemoAddressApi/DemoAddressApi.csproj"
COPY . .
WORKDIR "/src/DemoAddressApi"
RUN dotnet build "DemoAddressApi.csproj" -c Release -o /app/build

FROM build AS publish
RUN dotnet publish "DemoAddressApi.csproj" -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "DemoAddressApi.dll"]

docker-compose.yml
Changed the port mapping for YARP from 5000:80 to 5000:5000 and attached a named bridge network to both containers instead of using the default which they'd be on anyway.
version: "3.4"
services:
  addressesapi:
    container_name: addressesapi
    build:
      context: .
      dockerfile: DemoAddressApi/Dockerfile
    ports:
      - "5001:80"
    networks:
      - proxybackend
    environment:
      - ASPNETCORE_ENVIRONMENT=Docker

  authproxy:
    build:
      context: .
      dockerfile: Dh.Proxy.Condamine/Dockerfile.dev
    container_name: "dhproxycondamine"
    ports:
      - "5000:5000"
    networks:
      - proxybackend
    environment:
      ASPNETCORE_ENVIRONMENT: "Docker"
      AzureAd:TenantId: "b5b264f0-4f5a-436b-8d38-06b46c6dca8f"
      AzureAd:ClientId: "abf72232-1939-4313-815e-761e5c71fe2b"
      AzureAd:ClientSecret: "lIT7Q~UC5HPf04xgLuKJs_K.y~1plPbBF1w_-"
      AzureAd:ApiKey: "1234567890"

networks:
  proxybackend:
    name: proxybackend
    driver: bridge

Cluster config
Set the address to be the name of the container it YARP can communicate with on the port that the container listens on.
private static ClusterConfig[] ConfigureClusters()
        {
            var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
            var isDevelopment = environment == Environments.Development;
            var clusters = new[]
            {
                new ClusterConfig()
                {
                    ClusterId = "addressesapi",
                    Destinations = new Dictionary<string, DestinationConfig>(StringComparer.OrdinalIgnoreCase)
                    {
                        { "addressesapi_backend1", new DestinationConfig()
                            {
                                Address = isDevelopment ? "http://localhost:5001" : "http://addressesapi:5001"
                            }
                        }
                    }
                }
            };
            return clusters;
        }

@amroczeK - I have removed your previous comment history  as it was being flagged :-)


If using mongoURL, the webpage doesn't show the correct connection url string.

https://github.com/sclorg/nodejs-ex/pull/245


Removing auto-focusing in layout.

It looks jarring (particularly in mobile), and doesn't seem to be
mandated by the spec.
@surma PTAL!

LGTM

This was something added specifically to improve a11y within the drawer.

Perhaps we can simply update the tabIndex somehow, to make sure that if the user does hit tab, it'll go to the first item in the open drawer? Preselecting it for them doesn't seem correct, and I haven't seen any instances of that behaviour in any Material Design apps, be it native or web.
We could also simply leave this to developer choice, as they can add the tab indices to match the behaviour I described above.


Upon bad patterns, no error is emitted

When I ran some ffmpeg commands with your lib, I saw that the end result wasn't what I expected. So I copied the command and ran it directly in the console:
$ ffmpeg -f image2 -thread_queue_size 64 -framerate 15.5 -i /home/michael-heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-7174-bfd1c6c0-8ec7-8d223fc2b668/frames/%d.webp -y -an -vcodec libvpx -filter:v drawtext=fontfile=/home/michael-heuberger/binarykitchen/code/videomail.io/src/assets/fonts/Varela-Regular.ttf:text=www.videomail.io:fontsize=80:fontcolor=white:x=(main_w/2-text_w/2):y=50:shadowcolor=black:shadowx=2:shadowy=2 -vf scale=trunc(iw/2)*2:trunc(ih/2)*2 -crf 12 -deadline realtime -cpu-used 4 -pix_fmt yuv420p -loglevel warning -movflags +faststart /home/michael-heuberger/binarykitchen/code/videomail.io/var/local/tmp/clients/videomail.io/11e6-7174-bfd1c6c0-8ec7-8d223fc2b668/videomail_preview.webm
zsh: bad pattern: drawtext=fontfile=/home/michael-heuberger/binarykitchen/code/videomail.io/src/assets/fonts/Varela-Regular.ttf:text=www.videomail.io:fontsize=80:fontcolor=white:x=(main_w/2-text_w/2):y=50:shadowcolor=black:shadowx=2:shadowy=2

Oh, I can see "zsh: bad pattern"! Why wasn't this error emitted in the error event?
PS the filter I applied was
    command.videoFilters({
        filter: 'drawtext',
        options: {
            fontfile:       path.join(settings.server.paths.fonts, 'Varela-Regular.ttf'),
            text:           'www.videomail.io',
            fontsize:       80,
            fontcolor:      'white',
            x:              '(main_w/2-text_w/2)',
            y:              50,
            shadowcolor:    'black',
            shadowx:        2,
            shadowy:        2
        }
    })

Because this error doesn't happen when running the command. Your error comes from zsh, ie. your command line shell, which is not used when running processes from nodejs.

@njoyard i am sorry, i dont understand. i have copied the command fluent-ffmpeg has generated to the command line. and i expect it to work there. that's why i wonder if fluent-ffmpeg has generated a wrong command?
when i remove the above videoFilters, copy-paste the produced command, then it works fine in the command line.

The command line generated from the start event is just an indication of what fluent-ffmpeg is running. It is formed by joining all command-line arguments with a space between them. It is not guaranteed to be a valid shell command line (though it may be valid in some simple cases).
If you want to run this command from your shell, you have to ensure that each argument is properly escaped, ie. that there are no characters that have a special meaning for your shell that are left unescaped. The most common example is the space character (used to separate arguments by most shells), but there are other characters (eg. parentheses in bash) that may need escaping.
Fluent-ffmpeg does not do this by itself for the following reasons:

this is just an indicator of what we are running
fluent-ffmpeg does not need escaping arguments as they are passed as separate strings to child_process.spawn
there are as many escaping rules for command line arguments as there are shells; fluent-ffmpeg does not know which shell you will be using and its specific escaping rules

@njoyard ah, i see now - this explains very well. maybe worth to document the start event in README.md a bit more in regards to this space encoding stuff?
and do you know a trick (off-topic) how one could convert the command line generated from the start event into a fully valid, executable command for bash / zsh?

I don't know zsh at all, but I think adding double-quotes around your filter line would help.
Feel free to submit a pull request for README changes ;)

yes, double quoting that worked
but now i see no watermark - weird. am i forgetting a parameter or are ttf fonts not supported?

i think further down in the code i have this line .outputOptions('-vf', 'scale=trunc(iw/2)*2:trunc(ih/2)*2')
will this override any video filters i have declared before this line? @njoyard

It shouldn't, ffmpeg supports multiple -vf arguments.
(you should use .videoFilter('scale=trunc(iw/2)*2:trunc(ih/2)*2') instead)

thanks, all good now - learned my lesson. having command.videoFilters({ ... }, { ... }) did the trick

thanks, all good now - learned my lesson. having command.videoFilters({ ... }, { ... }) did the trick


How to render both RGB and depth at the same time?

Question
Hi, I am trying to setup an experiment where the agent receives both rgb_array and depth_array as input. However with the new rendering API, I can only set the rendering mode like this: gym.make('FrankaKitchen-v1', tasks_to_complete=['microwave', 'kettle'], render_mode='rgb_array')
Is there a way to switch rendering modes dynamically? Thanks.

That behavior is not supported by the Gymnasium API.
but you can hack it in
>>> import gymnasium
>>> env = gymnasium.make('Ant-v5')
>>> env = gymnasium.make('Ant-v5', render_mode="rgb_array")
>>> env.reset()
>>> env.render()
>>> env.unwrapped.render_mode = "depth_array"
>>> env.render()

This works for Gymansium/MuJoCo keep in mind FrankaKitchen uses a different render method
and this will likely not work on non-robotic environments

Good question, there is no way solution sadly.
Like @Kallinteris-Andreas says, the easiest solution is probably to create two environments which you pass the different render modes and provide the reset seed and step actions


Local build fails on mac

A day is spent trying to understand WTF.
dw-core module build fails with test failure.
DefaultServerFactoryTest.testGracefulShutdown() somehow affects SimpleServerFactoryTest.testBuild().
Both maven and idea cases produce the same.
If I switch order of those tests, they are green.
testBuild fails trying to execute the task, essentially, because of query parameters collection of the request is not parsed (for the unknown reason):
assertThat(httpRequest("POST", "http://localhost:" + port + "/secret/tasks/hello?name=test_user"))
     .isEqualTo("Hello, test_user!");

Debugging of that reveals... strange stuff (see attached image):

(Here, _metaData field of org.eclipse.jetty.server.Request is not null, however, the local variable assigned is null, and the parsing of the task request is failed)
This occurs almost in any case, so the issue is... well, floating.
Anybody, any ideas how to fix or resolve that?:)
Java version is: 1.8.0_92-b14

Thanks for the additional info, this is currently a known issue. Closing as a dupe of #1699


stage1: configuration and defaults

Now that we have multiple stage1 options we need to figure out a few usability concerns:
Default Configuration

[ ] How does a user specify what the default stage1 image is used? Is there a configuration file?
[ ] What happens when rkt upgrades from v0.8.1 to v0.9.0? Do we let them use the old stage1?

Upgrade Process on CoreOS Users

[ ] Which stage1 do we ship in CoreOS ?
[ ] How do we deliver a new stage1? In the rootfs? Does it need to be downloaded?

Upgrade Process for Other Users

[ ] Do we ship all stage1's in the releases? If not how do we ship a default trust database?

How does a user specify what the default stage1 image is used?

This is currently decided at a build-time. There is a --with-stage1=<flavor> configure flag which tells which stage1 flavor to build (this will change when we allow building several stage1 images in one go) and a --with-stage1-image-path configure flag which tells rkt where to find the stage1 image (rkt usually will try to use this path and if it fails for whatever reason, it will in some cases try to use the file with the same name in the same directory as the rkt binary).
At runtime, there is a --stage1-image rkt flag which can be used to point rkt to the image on disk or remote. Not sure if it accepts hashes.

Is there a configuration file?

No.
Not yet, that is.

What happens when rkt upgrades from v0.8.1 to v0.9.0?

Stage1 image version is also bumped to v0.9.0 and rkt is going to use that one.

Do we let them use the old stage1?

As I said - not sure if the --stage1-image rkt flag accept hashes, so I don't know.

Which stage1 do we ship in CoreOS ?

Dunno, a coreos or host one I think…

How do we deliver a new stage1?

Dunno.

In the rootfs?

Dunno.

Does it need to be downloaded?

It may, but we provide kvm and coreos flavors in rkt tarball, so CoreOS could use those.

Do we ship all stage1's in the releases?

If you are asking about rkt tarball releases - we ship only coreos and kvm flavors of stage1. We probably should add 'host' flavor to it. Not sure about 'src' flavor.

If not how do we ship a default trust database?

ENOPARSE.
====
In general, the current situation is a bit messy.
There are three values related to the default stage1 image:

name
version
location

Technically, we can get the name and version from given location, but that's dead-slow - the stage1 location may be a remote (https://), needs an unpacking if a relatively large file. Even if that takes several seconds - it is too long.
I suppose that all of them should be configurable at build time through configure flags and at run time in configuration file and rkt flag.
At build time, we could have following configure flags (some of them may already exist):

--with-default-stage1-name - would accept a value like "example.com/my-own-stage1"

mostly useful for none flavor, that is - for 3rd party stage1 images

--with-default-stage1-version - would accept a value like "1.2.3"

mostly useful for none flavor, that is - for 3rd party stage1 images

--with-default-stage1-location - location of default stage1 image path

mostly useful for packagers
should we limit these paths to absolute paths on disk (like /usr/libexec/rkt/stage1.aci)?
are http://, https://, docker:// or file:// scheme acceptable?
what's the default?

--with-stage1-flavors - a list of stage1 flavors to build (values like coreos,host,kvm would be accepted)

what defaults would we want? coreos,kvm? All of them?
special flavor none tells us not to build any stage1 one

--with-default-stage1-flavor - which flavor from the ones listed in --with-stage1-flavors should be the default ones.

conflicts with --with-default-stage1-{name,version}
conflicts with --with-stage1-flavors=none
default value - probably the first flavor from --with-stage1-flavors.

About configuration file:
{
  "rktKind": "stage1",
  "rktVersion": "v1",
  "name": "example.com/my-own-stage1",
  "version": "1.2.3",
  "location": "/usr/libexec/rkt/my-own-stage1.aci"
}

If name field is specified then version field must be specified too. name-version fields pair is optional, location field is optional too.
`location" could be:

an absolute path
file://
http://
https://
docker:// (?)

There is also a --stage1-image rkt flag which could be used to tell which stage1 image to use, the value of the flag could be:

http://
https://
file://
an absolute path
a relative path
a sha512 sum

Precedence:

--stage1-image rkt flag

if not found - bail out

name and version from configuration file (to search for stage1 in CAS)

if provided - ignore name and version from configure flags
if provided and not found in CAS, try the next point

location from configuration file

if provided and not found, bail out

if not ignored - name and version from configure flags (to search for stage1 in CAS)

if provided and not found, try the next point

location from configure flags

if provided and not found, bail out

bail out

Which stage1 do we ship in CoreOS ?

CoreOS currently uses the coreos flavor (see the plus sign in the IUSE). There was a discussion about whether to use coreos or host: https://github.com/coreos/coreos-overlay/pull/1364#discussion_r34641739

Related: https://github.com/coreos/rkt/issues/471

@krnowak mentioned that this ideally depends on https://github.com/coreos/rkt/pull/1763.

We need to sort this out to have rkt stable across upgrades (e.g. in CoreOS Linux).

@krnowak what is the status of this?

Filed a PR for this - #1977. Most of the above was implemented with some more extras (like default stage1 images directory). Replaced the --stage1-image with a set of flags.

I was talking to @joshix about this recently, and was curious about the contract between the stage1 and the rkt CLI invocation being used.
Currently rkt run allows you to specify port forwards, different networks, etc. However, not all of these configurations may apply to varying stage1's, such as the new fly stage1. It could be surprising to realize that if you change the underlying stage1 your existing rkt run command no longer works due to an unimplemented feature.
I was looking around, and I was glad to see that rkt fly is still planned to be added as it's own command, which then configures the command for the fly-stage1.aci, which means that command can have it's own set of flags which make sense for the fly stage1. So I think that will make this not as big of an issue, but I'm curious if there should be some way to actually define what a stage1 can do in the image in the future.
I was looking at https://github.com/coreos/rkt/pull/2035/files#diff-c2e93b5d997618cfe14f6ea88f78f0d3R367 and maybe part of the configuration of a stage1 defines the features it can provide, and eventually you can validate that at the CLI level, and commands could reject flags that your stage1 can't provide. For example, the fly1 stage1 configuration could list volumes as a feature it supports, but perhaps not port forwarding.


Unable to launch camera from lockscreen by double-tapping power button on Pixel Pro 6

I have enabled lockscreen camera and quick camera access via:
Settings -> Security -> Screen lock camera access
Settings -> System -> Gestures -> Quickly open camera
Double-tapping the power button successfully opens the camera when the device is unlocked, though there is a significant lag and it looks as though the device locks, unlocks, and then opens the camera app. When the device is locked, double-tapping the power button prompts for the password and I am unable to access the camera.

Do you have multiple camera apps installed?

I have Google Camera installed in a work profile managed with Shelter -- since it is in Shelter it cannot be set as the default app for double-tap launch. I reset the default app links and just to be sure I am preventing Google Camera from opening links at all, but GrapheneOS Camera still will not launch from the lockscreen. Is there any way that I can access the camera from the lockscreen other than with the double-tap?

Is there any way that I can access the camera from the lockscreen other than with the double-tap?

No, since the swipe feature for that is no longer enabled in AOSP. We don't plan to enable it, and I'm not sure if it's even still around.

Is there any way that I can access the camera from the lockscreen other than with the double-tap?

No, since the swipe feature for that is no longer enabled in AOSP. We don't plan to enable it, and I'm not sure if it's even still around.

 Would you be able to direct me to more information on resetting app link associations "in a very specific way?" Thanks for your help!

I don't have a link to specific information about it. It's an AOSP bug introduced in Android 12 which impacts the stock OS too. It's having multiple camera apps which triggers it. You should try doing it a few different ways in a different order like trying to set the lockscreen intent default first before the non-lockscreen one. We don't have the exact instructions on working around it.

Alright, thank you for your response. I will update here if I find a reliable procedure

I'm also encountering this issue, and I have Open Camera and nothing else. The Graphene Camera app is Disabled, because I don't see a way to uninstall it completely on the main profile (although it can be uninstalled from the work profile). I've done the suggested fixes, including resetting the camera default app link associations. Is there any other factor that might be affecting this?

The Graphene Camera app is Disabled

Only system camera apps can provide the system media capture intents since Android 11 so disabling this is broken and will break apps using those. We'll have to prevent doing this.

Is there any other factor that might be affecting this?

A bug in Open Camera.

Only system camera apps can provide the system media capture intents

In what way? I haven't noticed any capture-related features no working.

A bug in Open Camera

That's a nice thought. Unfortunately it's true regardless of what camera app is installed, including Gcam, and even if it is the only one enabled.

In what way? I haven't noticed any capture-related features no working.

I explained. You can research if you want to know more. It was a widely announced and covered Android 11 change.

That's a nice thought. Unfortunately it's true regardless of what camera app is installed, including Gcam, and even if it is the only one enabled.

Nope.


Unable to strip information

Running $ cargo +nightly build -Z strip=symbols on Windows I get this error message:
error: unknown `-Z` flag specified: strip

I just updated my nightly toolchain still the same error. Any idea what this may be happening?

This doesn't work on Linux either.  I think this command as suggested by https://github.com/johnthagen/min-sized-rust/tree/6ade516e47d53ec373dcadbc819a0735d3aa3184#strip-symbols-from-binary was someone's untested imagination.

Thanks for the report will investigate. Original suggestion for this was: https://github.com/johnthagen/min-sized-rust/issues/15#issuecomment-643393491

Fixed in 8cab50bad225de583a8b1871a28a447be536475f.
Thank you for the report @Joe23232.


[R] handling of various blob representations

There are several ways to handle "blob" data in a data.frame:
str(tbl1 <- data.frame(id = 1L, a = blob::as_blob(as.raw(0:10))))
#> 'data.frame':	1 obs. of  2 variables:
#>  $ id: int 1
#>  $ a : blob [1:1]
#>   ..$ : raw  00 01 02 03 ...
#>   ..@ ptype: raw
str(tbl2 <- data.frame(id = 1L, a = I(list(as.raw(0:10)))))
#> 'data.frame':	1 obs. of  2 variables:
#>  $ id: int 1
#>  $ a :List of 1
#>   ..$ : raw  00 01 02 03 ...
#>   ..- attr(*, "class")= chr "AsIs"
str(tbl3 <- tibble::tibble(id = 1L, a = list(as.raw(0:10))))
#> tibble [1 × 2] (S3: tbl_df/tbl/data.frame)
#>  $ id: int 1
#>  $ a :List of 1
#>   ..$ : raw [1:11] 00 01 02 03 ...

of which only the first currently is accepted by nanoarrow. In DBI this is handled by

stripping the AsIs class: https://github.com/r-dbi/DBI/blob/main/R/dbiDataType_AsIs.R
handling lists that contain only raw vectors (and erroring otherwise): https://github.com/r-dbi/DBI/blob/main/R/dbiDataType_list.R

For now I'm doing this in adbi by implementing the generic for the two types i need (https://github.com/r-dbi/adbi/blob/main/R/nanoarrow.R).
Not sure how you feel about this. If you think this could also live in nanoarrow, I'm happy to submit a PR.
One problem with this is that it might pose a conflict with arbitrary nested types such as
str(tibble::tibble(id = 1L, a = list(list(a = 1, b = 2))))
#> tibble [1 × 2] (S3: tbl_df/tbl/data.frame)
#>  $ id: int 1
#>  $ a :List of 1
#>   ..$ :List of 2
#>   .. ..$ a: num 1
#>   .. ..$ b: num 2

But then again, this could (and I believe currently is) handled via vctrs_list_of. Maybe bare lists are only allowed to contain raw vectors and this is some sort of "legacy" interface?
@krlmlr maybe DBI should change here to fix the root cause? Then again with that there's always backwards compatibility to worry about there.

Thanks. I don't understand "root cause". In what way do you propose that DBI should change?
I don't mind changing DBItest here and testing only a vctrs_list_of for list input.

@krlmlr Yeah, sorry, that's what I meant: Currently, being able to handle AsIs is enforced, for example in roundtrip_raw (this might also be the only example). If that test were to change, we could propose vctrs_list_of as the (more generic) alternative to blob::as_blob().

@paleolimbot the following does the trick for me:
infer_nanoarrow_schema.AsIs <- function(x, ...) {
  # unfortunately NextMethod() goes directly to `default`
  class(x) <- class(x)[-1]
  infer_nanoarrow_schema(x)
}

infer_nanoarrow_schema.list <- function(x, ...) {

  is_raw <- vapply(x, is.raw, logical(1))

  if (!all(is_raw)) {
    stop("Only lists of raw vectors are currently supported", call. = FALSE)
  }

  if (length(x) > 0 && sum(lengths(x)) > .Machine$integer.max) {
    nanoarrow::na_large_binary()
  } else {
    nanoarrow::na_binary()
  }
}

where the list implementation would be simple in nanoarrow, as it's a copy of the blob implementation.


training.py consume more resource

Hi, After successful installation and process. When I try to execute the training.py, my system gets hang and I could not do any action unless force shutdown. Please assist for successful execution of mimic2.

Below the status after completion of training.py. This training did inside the docker.
2018-08-27 15:40:09.343384: W tensorflow/core/framework/allocator.cc:101] Allocation of 18124800 exceeds 10% of system memory.
2018-08-27 15:40:09.826597: W tensorflow/core/framework/allocator.cc:101] Allocation of 77332480 exceeds 10% of system memory.
2018-08-27 15:40:10.362115: W tensorflow/core/framework/allocator.cc:101] Allocation of 16142400 exceeds 10% of system memory.
2018-08-27 15:40:10.542931: W tensorflow/core/framework/allocator.cc:101] Allocation of 16142400 exceeds 10% of system memory.
2018-08-27 15:40:10.666453: W tensorflow/core/framework/allocator.cc:101] Allocation of 17369600 exceeds 10% of system memory.
2018-08-27 15:40:10.673025: W tensorflow/core/framework/allocator.cc:101] Allocation of 17936000 exceeds 10% of system memory.
2018-08-27 15:40:10.676968: W tensorflow/core/framework/allocator.cc:101] Allocation of 18691200 exceeds 10% of system memory.
2018-08-27 15:40:10.704691: W tensorflow/core/framework/allocator.cc:101] Allocation of 17369600 exceeds 10% of system memory.
2018-08-27 15:40:10.718342: W tensorflow/core/framework/allocator.cc:101] Allocation of 17936000 exceeds 10% of system memory.
2018-08-27 15:40:10.733771: W tensorflow/core/framework/allocator.cc:101] Allocation of 19635200 exceeds 10% of system memory.
2018-08-27 15:40:10.738065: W tensorflow/core/framework/allocator.cc:101] Allocation of 18691200 exceeds 10% of system memory.
2018-08-27 15:40:10.829940: W tensorflow/core/framework/allocator.cc:101] Allocation of 19163200 exceeds 10% of system memory.
2018-08-27 15:40:14.460210: W tensorflow/core/framework/allocator.cc:101] Allocation of 17301504 exceeds 10% of system memory.
2018-08-27 15:40:14.596566: W tensorflow/core/framework/allocator.cc:101] Allocation of 34603008 exceeds 10% of system memory.
Step 1       [102.949 sec/step, loss=0.96979, avg_loss=0.96979]
2018-08-27 15:40:29.697392: W tensorflow/core/framework/allocator.cc:101] Allocation of 101680000 exceeds 10% of system memory.
2018-08-27 15:40:31.111335: W tensorflow/core/framework/allocator.cc:101] Allocation of 43778048 exceeds 10% of system memory.
2018-08-27 15:40:31.122356: W tensorflow/core/framework/allocator.cc:101] Allocation of 43778048 exceeds 10% of system memory.
Killed

@Vino-git you may need to change the batch size to something lower. It's currently set at 32 and that may be taking up to much memory.

sed -i 's/batch_size=32/batch_size=16/g' hparams.py
The above fixed this for me.


[Select] onChange - accessing data-* attributes

Consider following code:
<Select
    value=""
    data-test="Select"
    onChange={event => console.log(event.target.dataset)}
>
    <MenuItem
        value=""
        data-test="MenuItem"
    >
        Item
    </MenuItem>
</Select>

I would expect that there should be in console {test:'Select'} (or at least {test:'MenuItem'}), e.g. same way normal [Input] works. But unfortunately in console is always undefined.

@Mangatt We are trying to simulate a native select. The implementation is challenging. The onChange event comes from a menu item:
https://github.com/mui-org/material-ui/blob/4bf97b52113f104174f0cd850bfc2a8fc73c2d99/packages/material-ui/src/Select/SelectInput.js#L242
You can access the menu item element with the second argument of the handler. Have a look at the API documentation.

Digging more into the issue, this line is breaking the expected behavior:
https://github.com/mui-org/material-ui/blob/a207808404a703d1ea2b03ac510343be6404b166/packages/material-ui/src/Select/SelectInput.js#L102?


What roles are required?

You provide the statement at the top of the article:
A role that allows you to create users in your tenant directory, like the Global Administrator role or any of the limited administrator directory roles.
Unfortunately the roles are not listed neither is there a link to a page that gives all the details of this.
It would be very beneficial to have this...

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

ID: 9b3c7993-0036-507f-f3eb-40845fa312c8
Version Independent ID: 59f8fd79-2104-fed4-0b47-250a61b0138b
Content: Quickstart: Add guest users in the Azure portal - Azure AD
Content Source: articles/active-directory/external-identities/b2b-quickstart-add-guest-users-portal.md
Service: active-directory
Sub-service: b2b
GitHub Login: @msmimart
Microsoft Alias: mimart

@rfinneyWork Thanks for the feedback. We will engage the content development team for further investigation, they will verify and perform necessary changes in the document as needed.
@msmimart  Can you have a look at this ?

Thanks for your dedication to our documentation. Unfortunately, at this time we have been unable to review your issue in a timely manner and we sincerely apologize for the delayed response. The requested updates have not been made since the creation of this issue, and the timeline for resolution may vary based on resourcing, so we’ve created an internal work item to incorporate your suggestions. We are closing this issue for now, but feel free to comment here as necessary. #please-close


Building polybar for arch linux, xcbgen autodetection fails

I have tried to install polybar with the following: yay -S polybar{-git} and it failed all the time with this error:
CMake Error at lib/xpp/CMakeLists.txt:55 (message):
  Missing required python module: xcbgen

So I pulled the sources and tried to see what's was going on, because a simple check showed that xcbgen is available for python 3.7 (I have a clean arch install):
$ ls /usr/lib/python3.7/site-packages/ |grep xcb
drwxr-xr-x 3 root root 4,0K  1 nov.  09:14 xcbgen/

So when looking at the cmake file I added a debug line message(STATUS "status: " ${_xcbgen_status) and it showed this:
-- Searching for xcbgen with python2
-- status: 1
-- Searching for xcbgen with python2.7
-- status: 1
-- Searching for xcbgen with python3
-- status: Child aborted
-- Searching for xcbgen with python
-- status: Child aborted

And when ran manually in a terminal:
$ python3 -c "import re,xcbgen;print(re.compile('/xcbgen/__init__.py.*').sub('',xcbgen.__file__))" && echo $?
/usr/lib/python3.7/site-packages
0

So I replaced the lib detection with this in cmake.txt set(PYTHON_XCBGEN "/usr/lib/python3.7/site-packages" CACHE STRING "Location of python module: xcbgen ") and build was successful.
My question is why detection fails ? Ideally I would like to being able to install polybar with yay

Does this only happen when you try to install with yay? Or does it also happen when you compile from source manually?
It's very strange that the command python3 -c "import re,xcbgen;print(re.compile('/xcbgen/__init__.py.*').sub('',xcbgen.__file__))" fails in cmake but succeeds in the shell.
Could you go into lib/xpp/CMakeLists.txt and remove the ERROR_QUIET from the execute_process call. This should print out the stderr the failing command prints out.

@giulioprovasi Are you still getting this error?


Detox.init() hangs on latest version of detox

Description
I've updated detox version from 15.1.4 to 16.7.2 and after this update it looks like the app does not launch properly.
the weird thing here is that i see splash screen stuck and when i try to reopen the app (manually from simulator) it launches properly

[X] I have tested this issue on the latest Detox release and it still reproduces

Environment (please complete the following information):

Detox: 16.7.2
React Native: 0.64
Node:
Device: iPad Pro
Xcode: 11.5.1
iOS: 12.1
macOS:

Logs
detox[27734] DEBUG: [exec.js/SPAWN_CMD, #6] [pid=27801] /usr/bin/xcrun simctl spawn EB07FF5A-D2CC-4AEF-834C-8F35018B824E log stream --level debug --style compact --predicate "processImagePath beginsWith \"/Users/orlevy/Library/Developer/CoreSimulator/Devices/EB07FF5A-D2CC-4AEF-834C-8F35018B824E/data/Containers/Bundle/Application/0DE7C40D-9896-4689-BF2C-C6657884ECA0/TapingoKiosk.app\""
detox[27734] DEBUG: [exec.js/EXEC_CMD, #7] SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/orlevy/Library/Detox/ios/299e5391b26cd7803f6779ebc468aa8df1bce60b/Detox.framework/Detox" /usr/bin/xcrun simctl launch EB07FF5A-D2CC-4AEF-834C-8F35018B824E com.tapingo.kiosk --args -detoxServer "ws://localhost:56093" -detoxSessionId "891e88e3-d4f8-89ed-23f8-176d0d477d0b"
detox[27734] DEBUG: [exec.js/EXEC_TRY, #7] Launching com.tapingo.kiosk...
detox[27734] TRACE: [exec.js/EXEC_SUCCESS, #7] com.tapingo.kiosk: 27815

detox[27734] DEBUG: [exec.js/EXEC_CMD, #8] /usr/bin/xcrun simctl get_app_container EB07FF5A-D2CC-4AEF-834C-8F35018B824E com.tapingo.kiosk
detox[27734] TRACE: [exec.js/EXEC_SUCCESS, #8] /Users/orlevy/Library/Developer/CoreSimulator/Devices/EB07FF5A-D2CC-4AEF-834C-8F35018B824E/data/Containers/Bundle/Application/0DE7C40D-9896-4689-BF2C-C6657884ECA0/TapingoKiosk.app

detox[27734] INFO:  [AppleSimUtils.js] com.tapingo.kiosk launched. To watch simulator logs, run:
        /usr/bin/xcrun simctl spawn EB07FF5A-D2CC-4AEF-834C-8F35018B824E log stream --level debug --style compact --predicate 'process == "TapingoKiosk"'
detox[27815] TRACE: [ArtifactsManager.js/LIFECYCLE] artifactsManager.onLaunchApp({ bundleId: 'com.tapingo.kiosk',
  deviceId: 'EB07FF5A-D2CC-4AEF-834C-8F35018B824E',
  launchArgs:
   { detoxServer: 'ws://localhost:56093',
     detoxSessionId: '891e88e3-d4f8-89ed-23f8-176d0d477d0b' },
  pid: 27815 })
detox[27734] TRACE: [AsyncWebSocket.js/WEBSOCKET_SEND] {"type":"isReady","params":{},"messageId":-1000}
detox[27734] TRACE: [DetoxServer.js/MESSAGE] role=tester action=isReady (sessionId=891e88e3-d4f8-89ed-23f8-176d0d477d0b)
detox[27734] DEBUG: [DetoxServer.js/CANNOT_FORWARD] role=testee not connected, cannot fw action (sessionId=891e88e3-d4f8-89ed-23f8-176d0d477d0b)```

iOS simulator version should be iOS 12.2 or higher as per breaking changes in v16 of detox - try running the iOS 13.x simulators

Also, we found that hangs caused when switching to Detox 16 only happen on certain computers, although we couldn't pinpoint the exact cause yet, it seems like reinstalling Xcode solves this.

Update your simulator as mentioned above.

the issue is occurring for me on Xcode 13.3


Fix Iris 2 errors part 3 of 4 (NetCDF deprecation warnings)

As an Improver developer I want to upgrade to Iris 2 so that I can stay up to date and take advantage of exciting new technologies such as Dask.
Epic: #215
Related issues:

Part 1: #474
Part 2: #475
Part 4: #477
Implementation of Iris 2: #478

Part 3 is to deal with all the IrisDeprecation warnings in the BATS tests. These occur in each help-string test and are:
IrisDeprecation: setting the 'Future' property 'netcdf_promote' is deprecated and will be removed in a future release.
IrisDeprecation: setting the 'Future' property 'netcdf_no_unlimited' is deprecated and will be removed in a future release.

Acceptance criteria:

Update all referenced unit tests to work with Iris 2.
If the updated code is backward-compatible with Iris 1.13.0, then submit code changes as usual. If not, then create a partial-PR and reference it in the Implementation ticket (#478).
Only the unit tests referred to in the attachment need to be updated.
If any known-good-output needs updating, this should be covered by this ticket too.

iris2.errors.NetCDF.txt


default values for certain fields in @model

Is your feature request related to a problem? Please describe.
In @model there are some fields that I would like them to have a default value if none is specified at creation time.
Describe the solution you'd like
For both scalar and non-scalar field types it would be good if a default value can be specified in @model
Describe alternatives you've considered
An alternative is to do an implementation in lambda or velocity. However, both have cost and maintainability implications

+1

+1

@nikhname @ammarkarachi @yuth could you please provide an update if we could expect this feature to be released sometime in near future?

Closing in favor of #5959


Other metric to measure the robustness of webpage except "fps"

I used gremlins, it's cool. But it always failed based on some e-commerce website, because of "fps". Do we have other metric to measure the robustness of web page?

If possible i think a 'memory' Mogwai would be nice to have as a metric for performance

Hey folks. The Marmelab team is attempting to clean up the Issues backlog. With that, we're closing issues that have been open for an one or more years.
We really appreciate the folks have taken the time to open and comment on this issue. Please don't confuse this closure with us not caring or dismissing your issue, feature request, discussion, or report. If the issue pertains to a bug, please re-test for the bug on the latest version of gremlins.js.
The best way to report problems with gremlins.js 2.0 is to file new issues.


Add Email SANs

What this PR does / why we need it:
This adds the Email SAN option to the Certificate resource.
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Fixes #1356
Special notes for your reviewer:
This needs more tests
Release note:

Add emailSANs field to Certificate resource

/retest

/test pull-cert-manager-bazel

/retest

/retest

Looks like the rebasing here went a bit wrong.. could you sort out the commits?
A git reset master whilst on this branch and then maybe just re-committing the files may be best 😅

i have a feeling that will be best...

Looks good - just a few minor comments there around error messages and also some of the test cases 😄
/assign @meyskens

/lgtm
/approve

Cloudflare account needed a cleanup 😄
/retest

Ah, this actually needs updates to the test cases!
/lgtm cancel

Appears failures are genuine.. I am seeing:
2020-03-03T12:56:39.847594662Z stderr F E0303 12:56:39.847434       1 controller.go:140] cert-manager/controller/certificates "msg"="re-queuing item  due to error processing" "error"="no common name, DNS name, or URI SAN specified on certificate" "key"="e2e-tests-certificates-crmx2/testcert"

/lgtm


Trying to implement a Rotator that acts on a layer rotation matrix

Hi, first thank you very much for the plugin, it opens a lot of possibilities that were lacking in Napari.
To try to build an understanding of the Manipulators, I was trying to implement a very simple Rotator which would rotate a layer (not the plane like in  RenderPlaneManipulator).
I tried to build my own Manipulator based on the RenderPlaneManipulator definition, but I can't get it to work.
Here is my implementation:

class FullManipulator(BaseManipulator):

    def __init__(self, viewer, layer=None):
        super().__init__(viewer, layer, rotator_axes='yz', translator_axes='z')

    def set_layers(self, layers: napari.layers.Layer):
        super().set_layers(layers)

    def _connect_events(self):
        self.layer.events.rotate.connect(self._update_transform)

    def _disconnect_events(self):
        self.layer.events.rotate.disconnect(self._update_transform)

    def _update_transform(self):
        # get the new transformation data
        self._initialize_transform()

        # redraw
        self._backend._on_transformation_changed()

    def _initialize_transform(self):
        self.origin = np.asarray((0, 0, 0))
        self.rotation_matrix = self.layer.rotate.copy()

    def _while_dragging_rotator(self):
        # with self.layer.events.rotate.blocker(self._update_transform):
        #     self.layer.rotate = self.rotation_matrix.copy()
        with self.layer.events.blocker(self._update_transform):
            self.layer.rotate = self.rotation_matrix.copy()

The problem is that whenever I try to drag a rotation handle from the Manipulator, its orientation gets very jittery and self.rotation_matrix varies abruptly for very small changes in cursor position. See video below
https://github.com/napari-threedee/napari-threedee/assets/94963445/7fe8fd1d-85ef-488c-9711-e3346cdf1816
I imagine this is due to a feedback that I do not understand (e.g something like setting self.layer.rotate with self.rotation_matrix triggers an event that in turn modifies self.rotation_matrix, and so on).
I have tried self.layer.events.rotate.blocker and self.layer.events.blocker, and with and without .copy() when setting self.layer.rotate and self.rotation_matrix, but everything leads to the same behavior.
Any idea of what could cause the problem ?

Hey @jules-vanaret - thanks for opening this issue and for your interest in the project!
I'll find some time to play with your example in the next few days but your analysis of the probable cause seems correct

@jules-vanaret @kevinyamauchi and I spent a while on this this morning and came up with a solution!

The root cause of the problem is that the coordinate system of the manipulator is relative to the layer transform - there was no reason this should have been obvious to you and we should surface it better
import napari
import numpy as np
from skimage import data

from napari_threedee.manipulators.base_manipulator import BaseManipulator

class FullManipulator(BaseManipulator):

    def __init__(self, viewer, layer=None):
        self.rotate_start = np.eye(3)
        super().__init__(viewer, layer, rotator_axes='yz', translator_axes="z")

    def set_layers(self, layers: napari.layers.Layer):
        super().set_layers(layers)

    def _connect_events(self):
        self.layer.events.rotate.connect(self._update_transform)

    def _disconnect_events(self):
        self.layer.events.rotate.disconnect(self._update_transform)

    def _update_transform(self):
        # get the new transformation data
        self._initialize_transform()

        # redraw
        self._backend._on_transformation_changed()

    def _initialize_transform(self):
        self.origin = np.asarray((0, 0, 0))
        self.rotation_matrix = self.layer.rotate.copy()

    def _pre_drag(self):
        self.rotate_start = self.layer.rotate.copy()

    def _while_dragging_rotator(self):
        # calculate the new absolute rotation in the viewer, not layer coordinate system
        absolute_rotation = self.rotate_start @ self.rotation_matrix.copy()

        # set the layer rotation and the 'start point' of further rotations
        with self.layer.events.rotate.blocker(self._update_transform):
            self.layer.rotate = absolute_rotation
        self.rotate_start = absolute_rotation

        # the rotation matrix on the manipulator is relative to layer transform
        # so we need to reset the rotation matrix on the manipulator here
        self.rotation_matrix = np.eye(3)

viewer = napari.Viewer(ndisplay=3)
blobs = data.binary_blobs(
    length=64, volume_fraction=0.1, n_dim=3
).astype(float)

layer = viewer.add_image(blobs)
manipulator = FullManipulator(viewer=viewer, layer=layer)
manipulator.enabled = True

napari.run()

Similar logic can be seen with the current LayerManipulator implementation and we copied that for this...
Would you like to add this to the existing LayerManipulator code here? 🙂 We'd happily accept a PR!

Wow, @alisterburt and @kevinyamauchi thank you so much for your time and for providing a fully functional fix!
I'd love to do the PR, I'll try to push it on monday. :)

Whoops, turns out I might have close this issue too soon! When I tried your code before closing, I did the exact same camera movement you did in your video (aligning the rotation planes with the plane of view), but there is still a problem when the rotator is dragged while the view is "out of plane":
https://github.com/napari-threedee/napari-threedee/assets/94963445/f40035a7-5883-4308-aef3-ffff992ff256
I think this problem already occurred in my original video, but I thought it was directly linked to the jittering problem...

I think this is a general problem with how we are calculating how rotators should rotate rather than a problem with this specific manipulator, let's close here and open a specific issue


Ukrainian KYC problem

All my friends are complaining that their ukrainian IDs didn't pass a KYC despite the crystal clearance of their documents. My one was rejected too. I'm angry as fuck!

could u login during the lottery process???

I have the exact same problem. KYC-checks passed with these exact documents many times on other cryptocurrency related sites. Now all of a sudden it doesn't pass? I messaged ALL admins and community managers, none have given me an answer to why my KYC didn't pass.
Ridiculous.
Email<EMAIL_ADDRESS>

do not worry so much about it, if it is destined to be so it will be, luck accompanies the brave try to play at RouletteBull


initialMessages in useEdgeRuntime  ignored

Hi, I am trying to load inital messages but they seem to be ignored.  I see just an empty chat.
  const initialMessages: CoreMessage[] = [
    { "role": "system", "content": [{ "type": "text", "text": "You are weather assistant" }] },
    { "role": "user", "content": [{ "type": "text", "text": "What's the weather in Paris?" }] },
    { "role": "assistant", "content": [{ "type": "text", "text": "It's sunny." }] },
  ];

  const runtime = useEdgeRuntime({
    api: "http://localhost:4000/chat",
    initialMessages: initialMessages,
  });

<Thread runtime={runtime} />

fixed in @assistant-ui/react (0.5.96)

thanks for reporting


click button and crashed

I click "Create Post"
[WebDriverCurlException]
Curl error thrown for http GET to http://<IP_ADDRESS>:4444/wd/hub/session/99a8d040-c24b-11e3-88df-83f81cb67fb9/screenshot
Failed connect to <IP_ADDRESS>:4444; Connection refused

Exception trace:
() at /home/luhya/thomas/business/popsugar/dev/web/vendor/facebook/webdriver/lib/WebDriverExceptions.php:39
WebDriverException::throwException() at /home/luhya/thomas/business/popsugar/dev/web/vendor/facebook/webdriver/lib/remote/HttpCommandExecutor.php:230
HttpCommandExecutor::curl() at /home/luhya/thomas/business/popsugar/dev/web/vendor/facebook/webdriver/lib/remote/HttpCommandExecutor.php:153
HttpCommandExecutor::remoteExecute() at /home/luhya/thomas/business/popsugar/dev/web/vendor/facebook/webdriver/lib/remote/HttpCommandExecutor.php:117
HttpCommandExecutor->execute() at /home/luhya/thomas/business/popsugar/dev/web/vendor/facebook/webdriver/lib/remote/RemoteWebDriver.php:240
RemoteWebDriver->takeScreenshot() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Module/WebDriver.php:161
Codeception\Module\WebDriver->_saveScreenshot() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Module/WebDriver.php:115
Codeception\Module\WebDriver->_failed() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Subscriber/Module.php:48
Codeception\Subscriber\Module->failed() at n/a:n/a
call_user_func() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:164
Symfony\Component\EventDispatcher\EventDispatcher->doDispatch() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatcher.php:53
Symfony\Component\EventDispatcher\EventDispatcher->dispatch() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/PHPUnit/Listener.php:73
Codeception\PHPUnit\Listener->fire() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/PHPUnit/Listener.php:30
Codeception\PHPUnit\Listener->addError() at /home/luhya/thomas/business/popsugar/dev/web/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:259
PHPUnit_Framework_TestResult->addError() at /home/luhya/thomas/business/popsugar/dev/web/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:694
PHPUnit_Framework_TestResult->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:783
PHPUnit_Framework_TestCase->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
PHPUnit_Framework_TestSuite->runTest() at /home/luhya/thomas/business/popsugar/dev/web/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
PHPUnit_Framework_TestSuite->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/PHPUnit/Runner.php:65
Codeception\PHPUnit\Runner->doEnhancedRun() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/SuiteManager.php:149
Codeception\SuiteManager->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Codecept.php:153
Codeception\Codecept->runSuite() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Codecept.php:142
Codeception\Codecept->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/src/Codeception/Command/Run.php:88
Codeception\Command\Run->execute() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:241
Symfony\Component\Console\Command\Command->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/console/Symfony/Component/Console/Application.php:881
Symfony\Component\Console\Application->doRunCommand() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/console/Symfony/Component/Console/Application.php:191
Symfony\Component\Console\Application->doRun() at /home/luhya/thomas/business/popsugar/dev/web/vendor/symfony/console/Symfony/Component/Console/Application.php:121
Symfony\Component\Console\Application->run() at /home/luhya/thomas/business/popsugar/dev/web/vendor/codeception/codeception/codecept:29
run [-c|--config="..."] [--report] [--html] [--xml] [--tap] [--json] [--colors] [--no-colors] [--silent] [--steps] [-d|--debug] [--coverage] [--no-exit] [--defer-flush] [-g|--group="..."] [-s|--skip="..."] [--skip-group="..."] [--env="..."] [suite] [test]

Please upgrade to PhantomJS 2. 1.9.x is no longer supported, and known to have many crasher bugs that are fixed in 2 version.


Update README.md

Update README.md to say "ZHA Device Handlers For zigpy" instead of "ZHA Device Handlers For Home Assistant" now that other applications such as example Jeedom also uses it.
https://community.jeedom.com/t/plugin-zigbee-beta/40301

Pull Request Test Coverage Report for Build 740635220

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.173%

Totals

Change from base Build 738492481:
0.0%

Covered Lines:
3707

Relevant Lines:
4457

💛  - Coveralls

Closed without comment. What was wrong with this change?
Is the zha-device-handlers lib really only for Home Assiatant?


Warning - Importing from '@storybook/addon-docs/blocks' is deprecated - Storybook 6.3.7

Hi,
I'm using your addon and getting this warning in  Storybook 6.3.7
Importing from '@storybook/addon-docs/blocks' is deprecated, import directly from '@storybook/addon-docs' instead: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#deprecated-scoped-blocks-imports
https://github.com/pocka/storybook-addon-designs/blob/a29840d5edf0afc2f52a72945801c3aed7236842/packages/storybook-addon-designs/src/blocks.tsx#L3
Probably needs to be replaced with just @storybook/addon-docs

Due to the exports is only available from Storybook v6.3 and this addon supports storybook >= 6.0, I'll include the change in the next major version of this addon (storybook-addon-designs@7.0).

Fixed in v7.0.0-alpha.0.


"acbuild" features overlap with "actool patch-manifest"

The command actool patch-manifest has some features that overlap with acbuild:
https://github.com/appc/spec/blob/master/actool/manifest.go#L56

[ ] --manifest=MANIFEST_FILE
[x] --name=example.com/app (acbuild set-name ACI_NAME)
[x] --exec="/app --debug" (acbuild set-exec CMD)
[x] --user=uid (acbuild set-user USER)
[x] --group=gid (acbuild set-group GROUP)
[ ] --capability=CAP_SYS_ADMIN,CAP_NET_ADMIN
[x] --mounts=work,path=/opt,readOnly=true[:work2,...] (acbuild mount add NAME PATH)
[x] --ports=query,protocol=tcp,port=8080[:query2,...] (acbuild port add NAME PROTOCOL PORT)
[ ] --supplementary-groups=gid1,gid2,...
[ ] --isolators=resource/cpu,request=50m,limit=100m[:resource/memory,...]

Should actool get the missing features and then actool patch-manifest be deprecated?

@alban That is what I had been thinking, see https://github.com/appc/acbuild/blob/master/README.md#related-work
Do you have any concerns about this?

No real concern. At the moment, rkt functional tests use actool patch-manifest with options like --supplementary-groups= and --manifest=file that do not exist in acbuild yet. If we switch to acbuild, we just need to make sure it covers the needed features.

Sure. With my experiences trying to get actool vendored properly with
go1.5, I'm starting to think we should instead vendor acbuild/lib and use
that programmatically instead...
On Tue, Oct 13, 2015 at 1:28 AM, Alban Crequy<EMAIL_ADDRESS>wrote:

No real concern. At the moment, rkt functional tests use actool
patch-manifest with options like --supplementary-groups= and
--manifest=file that do not exist in acbuild yet. If we switch to acbuild,
we just need to make sure it covers the needed features.
—
Reply to this email directly or view it on GitHub
https://github.com/appc/acbuild/issues/31#issuecomment-147646540.


Can't see the examples on Codesandbox

any news on this? I would love to see what you can build with this datepicker hook.

Hey @dohomi @CodingDive I moved all examples from Devbox to Sandbox.
This issue should be solved, you can check on Examples

I checked the examples page, but none of the examples opens.

@Feshchenko could you double check the docs? I don't see any example