Remote Debugging with Docker?

Node.js 4.x supports remote debugging, and VS Code is able to place nicely with it.  I'm wondering if anyone know if .NET Core supports remote debugging?  I seem to recall a part of @shanselman's Build demo where he used the VS Tools for Docker to remote debug into a Docker container.  But I can't remember if the container was running .NET Core.  I'd be grateful for any information on this.

Thinking this question probably is more relevant to the .NET Core repo, so I posted it over there as well.

Are you asking about VS Code or VS?
For VS - yes, debugging support hasn't been released yet, but we expect to release it soon.
For VS Code - we don't have support for this yes.

@greg-miskelly Thanks for answering my question. Technically what is it that VS Code needs to support remote debugging for .NET Core?

'Remote Debugging' is kind of a big area as there are lots of different scenarios that might be interesting -- ex: remote to Docker containers, remote to a stand along Linux server over SSH, remote to a Windows PC, remote to Azure, etc.
Lets talk about Docker as that is probably the easiest one to accomplish. For that we need:

Support for building and deploying Docker images that we can leverage. This is the majority of the work.
Some minor changes to consume the functionality we are already using in Visual Studio so that we can run the backend of the .NET Debugger (clrdbg) inside the container of the target app using 'docker exec' instead of on the IDE computer.
Tweaks to the launch.json format to indicate that Docker should be used.

My guess is that this isn't going too far away. But right now the VS Docker Tools folks are concentraiting on getting the VS end-to-end ready to be shipped.

@gregg-miskelly, Thanks for the clear explanation - helps to understand what has to be done. Glad you addressed the Docker scenario, which is what I'm most interested in.

Support for building and deploying Docker images that we can leverage. This is the majority of the work.

I've seen some traction on creating updated Docker images.  See this issue on the dotnet/cli repo.  And it "feels" like RC2 may be getting close. 😄

Some minor changes to consume the functionality we are already using in Visual Studio so that we can run the backend of the .NET Debugger (clrdbg) inside the container of the target app using 'docker exec' instead of on the IDE computer. Tweaks to the launch.json format to indicate that Docker should be used.

Maybe these are low hanging fruit? 😉

In terms of the debugger work - yes, I think this work should be pretty easy.
In terms of the image build work - it may be, but I don't know enough how the VS Docker Tools works to say.

I was wondering what the latest was with this? Is all the functionality available in theory for me to try hook it up?
I've seen commit https://github.com/OmniSharp/omnisharp-vscode/pull/415/files referencing Docker related changes.
I've tried stumbling around using ^^ and https://github.com/Microsoft/MIEngine/wiki/Offroad-Debugging-of-.NET-Core-on-Linux---OSX-from-Visual-Studio as ref but not go it working yet.
I'm trying to get VS Code to attach to the clrdbg in docker without installing Dotnet core clr locally on OSX.
When I try and launch the debugger I get the Run 'Debug: Download .NET Core Debugger' in the Command Palette or open a .NET project directory to download the .NET Core Debugger error.
My launch config:
 {
           "name": ".NET Core Launch (Docker)",
            "type": "coreclr",
                        "request": "launch",
            "program": "${workspaceRoot}/src/dotnetstarter/bin/Debug/netcoreapp1.0/dotnetstarter.dll",
            "args": [],
            "cwd": "${workspaceRoot}",
                        "pipeTransport": {
                "pipeCwd": "${workspaceRoot}",
                "pipeProgram": "enter the fully qualified path for the pipe program name, for example 'c:\\tools\\plink.exe'",
                "pipeArgs": [],
                "osx": {
                    "pipeCwd": "${workspaceRoot}",
                    "pipeProgram": "/usr/local/bin/docker",
                    "pipeArgs": ["run", "-it -p 5000:5000 -v /Users/janaka.abeywardhana/code-projects/aspnet-core-helloworld:/myapp microsoft/dotnet-preview:latest /bin/sh", "-c 'curl -sSL https://raw.githubusercontent.com/Microsoft/MIEngine/getclrdbg-release/scripts/GetClrDbg.sh | bash /dev/stdin latest ~/clrdbg; ~/clrdbg/clrdbg --interpreter=mi; cd myapp/src/dotnetstarter; dotnet restore; dotnet run --server.urls=http://<IP_ADDRESS>:5000;"]
                }
            }

        }

@janaka The Visual Studio Docker Tools team is working on scaffolding to use the pipeTransport to enable debugging from VS code. I am not sure if it has been released yet though @SteveLasker?
You will however still need to install the .NET CLI locally - we still depend on it for running the local parts of the debugger, doing builds, etc.

Thanks. @gregg-miskelly
@janaka last week, we released http://aka.ms/yodocker for debugging  .net core apps with vs code in a Linux container. Yo docker also supports Nod.js.
You may also want htt:p//aka.ms/DockerToolsForVSCode to get docker language services.
I am curious what type of apps your looking to debug. Web, APIs, console , ???
Thanks,
Steve

Well release .NET Core RTM versions today

@SteveLasker @gregg-miskelly Thanks.
Sounds like the Yo generator will answer more of my questions I'll dig in later.
As we (Hudl.com) adopt .Net Core it could be any of those. I've been using a Web app and an API to experiment with things .Net Core and Docker related.
A lot of our devs are on Mac.  With debugging in Docker I'm thinking about the developer experience and how that can connect to deploying to test and prod environments, the development workflow.

Pls let me know if I can remote debug a container on Ubuntu machine from my windows machine using visual studio 2015 update 3

@akku27 check out https://visualstudiogallery.msdn.microsoft.com/0f5b2caa-ea00-41c8-b8a2-058c7da0b3e4

Hi, all
I have an issue with debugging app in Docker container. I've reviewed the code generated by yoman 'aspnet' and 'docker' generators, and did exactly the same. Debugging works fine for the situation, when docker is installed locally. But if I do it with docker located on remote server It falls. The steps I do:

Build container, and put app and clrdbg in it.
Set container entrypoint to 'sleep infinity'.
Change launch configuration to connect to server via ssh and then docker exec -i containerid /clrdbg/clrdbg --interpreter=mi
So debugger successfully connects to remote docker container executes web app and immediately stops.

@schusovskoy that output looks like it is the target process which is immediately exiting.
Do you see a module load for your dll?
What are you setting as the startup program in launch.json?

@gregg-miskelly thank you for reply. I think I've found the problem. I tried to run and debug bin/debug/netcoreapp1.0/test.dll and not the published version in bin/debug/netcoreapp1.0/publish/test.dll.
So I did it all from scratch and saw that debugging works fine.
(https://github.com/schusovskoy/apsnet_remote_debug) If someone will face the same problem, hear is the link to the working demo.
Note: Don't forget to add your ssh key in container.

@schusovskoy thanks for the link and those scripts!
@gregg-miskelly I was hoping to do this in a simpler way. My launch.json invokes a script which when run directly from a terminal drops me into a shell in the target container :tada:. But when I invoke the debugger through VS Code I get the following message (line wraps added to protect the innocent). Feels like I'm close, any suggestions? Thanks!
Executing: "/Users/joshgav/node/demos/multi-container/scripts/csharp-debug.sh" \
"bash -c 'uname && if [ "$\(uname\)" == "Linux" ] ; then
  ps -axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= ;
elif [ "$\(uname\)" == "Darwin" ] ; then
  ps -axww -o pid=,comm=aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa,args= -c;
fi'"

@schusovskoy you need to update your csharp-debug.sh script to expect that it will be passed an argument containing the quoted command to be run.

Sorry, that should have been @joshgav.

With node.js, I can expose a port 5858 and then VS Code can attach to that port.
What is the port for a .net core app and is there any documentation on remote debugging a docker container?

@styfle .NET Core debugging doesn't work like that - what you want to do is:

Get vsdbg into your container by downloading it either as part of image building, or inside the container. See https://github.com/OmniSharp/omnisharp-vscode/wiki/Attaching-to-remote-processes
Setup a pipeTransport element in your launch.json which will do a docker exec of vsdbg.

There used to be a yo docker extension to make this nice and easy, but unfortunately that is now defunct. I am hoping someone fixes this up again soon. BTW: There is some useful info in https://github.com/OmniSharp/omnisharp-vscode/issues/1318 that you may want to read. Note that the fix we made to make things easier hasn't been released yet.

@gregg-miskelly can you explain more about that 2 steps ?
Should I use this part of code on my docker file?
curl -sSL https://aka.ms/getvsdbgsh | bash /dev/stdin -v latest -l ~/vsdbg
Please tell how should be the pipeTransport, this is the yo docker defaults :
"pipeTransport": {             "pipeProgram": "/bin/bash",             "pipeCwd": "${workspaceRoot}",             "pipeArgs": ["-c", "./dockerTask.sh startDebugging"]             "windows": {                 "pipeProgram": "${env.windir}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",                 "pipeCwd": "${workspaceRoot}",                 "pipeArgs": [".\\dockerTask.ps1", "-StartDebugging"]             }         }
OS Version : macOS Sierra

CC @glennc @Andrew-MSFT
I think I would probably recommend pulling vsdbg as some sort of occasional step instead of doing it every time you build your container. Ex: Maybe only do it if vsdbg isn't pulled down locally already, or, if you want to get fancy, only do it once a day or something like that.
The command you want to pull vsdbg is similar, but you need to also include -r debian.8-x64 [replace 'debian.8-x64' with whatever runtime id you are using for your container].
The dockerTask.sh that yo docker generates is broken in that it just assumed what command it should run, and that command is wrong. You could certainly try fixing that script if you want. The debugger will pass the debugger command to it as the last argument to the script.
Alternatively, another user reported success with:
pipeProgram = "bash",
pipeArgs = [ "-c", "docker exec -i remotedebug-1-mispn ${debuggerCommand}" ],

For the soon-to-be-released 1.9 version of the extension we added a new quoteArgs option under pipeTransport that can eliminate the need to use bash (or otherwise somehow un-quoting the debugger command).

I develop in mac os, but I had to debug via vs in Vmware because no way to debug in docker for mac. It's terrible for me to use .net core, finally I searched this issue.
I hope the easier way to resole this issue.
Best wish:)

I found a solution. https://github.com/OmniSharp/omnisharp-vscode/wiki/Attaching-to-remote-processes

I'm on OSX using VSCode and have followed the above link and installed vsdbg.
Below is my launch json. I get a remote process to attach to but then nothing. Breakpoints are greyed out and I see in the debug console every 2 secs or so Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
Can anyone suggest what I might be doing wrong? I feel I'm close to getting it to work
{
            "name": ".NET Core Remote Attach",
            "type": "coreclr",
            "request": "attach",
            "processId": "${command:pickRemoteProcess}",
            "pipeTransport": {
                "pipeProgram": "bash",
                "pipeArgs": [ "-c", "docker exec -i am2 ${debuggerCommand}" ],
                "debuggerPath": "/root/vsdbg/vsdbg",
                "pipeCwd": "${workspaceRoot}",
                "quoteArgs": true
            },
            "sourceFileMap": {
                "/Users/jonathan/Projects/vq/src/VQPortal.Hosting.Self": "${workspaceRoot}/src/VQPortal.Hosting.Self"
            },
            "justMyCode": false
        }

@jchannon Did your machine be authorized by the server?

I'm not sure what that means 😄

You should publish your rsa_pub to the remote machine first. Otherwise, the remote machine will refuse to accept your request.

I'm not on SSH, I'm on Docker

The output I get suggests its kind of working in that it can see my app's PDBs but then seems to throw the socket exception for some reason and the breakpoints in vscode arent working:
Starting: "bash" -c "docker exec -i am2 /root/vsdbg/vsdbg --interpreter=vscode"
-------------------------------------------------------------------
You may only use the Microsoft .NET Core Debugger (vsdbg) with
Visual Studio Code, Visual Studio or Visual Studio for Mac software
to help you develop and test your applications.
-------------------------------------------------------------------
Loaded '/vq/portal/System.Private.CoreLib.ni.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/VQPortal.Hosting.Self.dll'. Symbols loaded.
Loaded '/vq/portal/System.Runtime.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/mscorlib.dll'. Module was built without symbols.
Loaded '/vq/portal/System.Threading.Tasks.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Extensions.Configuration.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Extensions.Configuration.Abstractions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Collections.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Extensions.Configuration.Json.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/VQPortal.dll'. Symbols loaded.
Breakpoint error: The breakpoint failed to bind. - /Users/jonathan/Projects/vq/src/VQPortal/VQBootstrapper.cs:952
Loaded '/vq/portal/System.Reflection.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.ComponentModel.Primitives.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Xml.XDocument.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Xml.ReaderWriter.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Text.RegularExpressions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Reflection.TypeExtensions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Reflection.Emit.ILGeneration.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Reflection.Emit.Lightweight.dll'. Cannot find or open the PDB file.
Loaded 'Anonymously Hosted DynamicMethods Assembly'.
Loaded '/vq/portal/System.Security.Cryptography.X509Certificates.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Text.Encoding.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Text.Encoding.Extensions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/NLog.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Polly.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Data.Common.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Dapper.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.CSharp.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.AspNetCore.Authentication.Cookies.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/PingMiddleware.dll'. Symbols loaded.
Loaded '/vq/portal/System.Diagnostics.TraceSource.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/WindowsAuthenticationMiddleware.dll'. Symbols loaded.
Loaded '/vq/portal/OwinUserMiddleware.dll'. Symbols loaded.
Loaded '/vq/portal/Microsoft.AspNetCore.Owin.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Security.Claims.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Security.Principal.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.AspNetCore.StaticFiles.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Extensions.DependencyModel.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Nancy.Validation.FluentValidation.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/FluentValidation.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/MediatR.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.ValueTuple.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/AutoMapper.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Resources.ResourceManager.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/RawRabbit.vNext.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Diagnostics.StackTrace.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Win32.Registry.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Numerics.Vectors.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Threading.Tasks.Extensions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Buffers.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.Net.Http.Headers.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Security.Principal.Windows.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Net.WebSockets.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Globalization.Extensions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/ServiceStack.Text.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Xml.XPath.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Xml.XPath.XmlDocument.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.AspNetCore.WebUtilities.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Runtime.CompilerServices.Unsafe.dll'. Module was built without symbols.
Loaded '/vq/portal/System.Xml.XmlSerializer.dll'. Cannot find or open the PDB file.
Loaded 'Microsoft.GeneratedCode'.
Loaded '/vq/portal/System.IO.Compression.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/FubarCoder.RestSharp.Portable.Core.dll'. Cannot find or open the PDB file.
Loaded 'Microsoft.GeneratedCode'.
Loaded '/vq/portal/System.Net.Http.dll'. Cannot find or open the PDB file.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded 'Microsoft.GeneratedCode'.
Loaded '/vq/portal/Handlebars.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/Microsoft.AspNetCore.Http.Extensions.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Reflection.Metadata.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.Collections.Immutable.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.IO.MemoryMappedFiles.dll'. Cannot find or open the PDB file.
Loaded '/vq/portal/System.IO.UnmanagedMemoryStream.dll'. Cannot find or open the PDB file.
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
The thread 7069 has exited with code 0 (0x0).
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll
Exception thrown: 'System.Net.Internals.SocketExceptionFactory.ExtendedSocketException' in System.Net.Sockets.dll

One thing to consider is my app in the container is a self contained app

One for @gregg-miskelly or @SteveLasker maybe?

First, I apologize for the rapid changes that have been happening here. Docker scenarios are rapidly changing and we're working to stay ahead of the curve, which means we must change and prioritize.
While we started with yo docker and VS Code, we prioritized Visual Studio 2017 and have shipped what I'd hope would be considered a great container debugging experience.
We then shipped a preview of VS for Mac container debugging. This slipped in as a priority between VS for Windows and VS Code.
We are discussing when we can re-prioritize VS Code Container debugging to deliver the robust experiences we know developers want.
My suggestion would be to give the VS for Mac, Alpha Channel: https://developer.xamarin.com/recipes/cross-platform/ide/change_updates_channel/
Steve

Will check it out but I feel it's really close. The dlls seemed loaded by
vsdbg etc it's just VSCode that can't attach breakpoints and the socket
exception or is that a massively naive thing to say? :)
On Thu, 1 Jun 2017 at 19:18, Steve Lasker<EMAIL_ADDRESS>wrote:

First, I apologize for the rapid changes that have been happening here.
Docker scenarios are rapidly changing and we're working to stay ahead of
the curve, which means we must change and prioritize.
While we started with yo docker and VS Code, we prioritized Visual Studio
2017 and have shipped what I'd hope would be considered a great container
debugging experience.
We then shipped a preview of VS for Mac
https://www.visualstudio.com/vs/visual-studio-mac/ container debugging.
This slipped in as a priority between VS for Windows and VS Code.
We are discussing when we can re-prioritize VS Code Container debugging to
deliver the robust experiences we know developers want.
My suggestion would be to give the VS for Mac, Alpha Channel:
https://developer.xamarin.com/recipes/cross-platform/ide/change_updates_channel/
Steve
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/OmniSharp/omnisharp-vscode/issues/220#issuecomment-305576708,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGapmx2ZvKus5f6ELp0KL3RfZlXZKk3ks5r_wCAgaJpZM4IKeoA
.

@jchannon I am assuming you are publishing a release (optimized) version of your app? Does the breakpoint hit if you publish debug instead? Release debugging is hard :)
The socket exception doesn't sound like a tooling issue.

All works fine if in debug mode! 😄

@jchannon What did you do? Debug in docker container?

http://blog.jonathanchannon.com/2017/06/07/debugging-netcore-docker/


Content of the Grid is affected by Metas

Steps to Reproduce

Put a Grid inside a Card after a right floated Meta
See that it's right column is not where the card right side is

Expected
The Grid (red column) should be touching right side of the Card.
Result
The Grid does not do this
Testcase
http://jsfiddle.net/26wr5oru/4/

Hi @mrkam,
There’re many combinations of components, and I think that implementing every use case possible might be counterproductive, considering how easy it is to override the undesired behavior:
.ui.card>.content>.meta+.ui.grid,
.ui.cards>.card>.content>.meta+.ui.grid {
  margin-top: .5em; // It’s most certainly a variable.
}

Which actually copies a card’s description rules:
.ui.card>.content>.header+.description,
.ui.card>.content>.meta+.description,
.ui.cards>.card>.content>.header+.description,
.ui.cards>.card>.content>.meta+.description {
    margin-top: .5em; // It’s most certainly a variable.
}


How to enable decorators with react-scripts without eject?

I’m using create-react-app and want to enable use of decorators that really helps e.g. connect or do things clean.

If you use typescript it might be enabled i think?

Do you need this?
.babelrc.js:
module.exports = {
  // ...
  plugins: [
    [
      '@babel/plugin-proposal-decorators',
      {
        legacy: true,
      },
    ],
    [
      '@babel/plugin-proposal-class-properties',
      {
        loose: true,
      },
    ],
  ],
};

@yoyo837 AFAIK CRA does not support dotfiles configuration for babel
https://github.com/facebook/create-react-app/blob/v3.0.1/packages/react-scripts/config/webpack.config.js#L361

@miraage  Sorry, I did eject it.


Optional array of ids with min/max size not working.

I'm trying to validate and optional array (nil is fine) of integers, with between 1-5 elements (empty array invalid; 6+ element array invalid). I've tried both of the following, but neither seems to work. Am I doing something incorrectly?
Dry::Validation.Schema do
  optional(:ids).each(:int?).value(size?: 1..5)
end

Dry::Validation.Schema do
  optional(:ids).each(:int?).value(min_size?: 1, max_size?: 5)
end

nil returns ids must be an array
empty array and array of 6 integers does not give an error

You try to validate both the array and its contents at the same time, so you must apply predicates accordingly.
Dry::Validation.Schema do
  optional(:ids)                       # :ids key is optional
    .maybe {                           # when present, its value may be nil
      array? {                         # when filled, it must be an array...
        min_size?(1)                   # that must not be empty...
        & each {                       # and each of its elements...
          int? & gteq?(1) & lteq?(5)   # must be an int in range of 1..5
        }
      }
    }
end

That's how it can be defined with dry-schema
Dry::Schema.define do
  optional(:ids).value(:array, size?: 1..5).each(:int?)
end

Stay tuned for the next release


Keep ARGV only in CLI files

right now we're passing both ARGV and globalConfig all the way down to test runner. Also we mutate both of them as we pass it down (globalConfig is frozen, but we clone it instead of directly mutating).
This PR separates ARGV from globalObject and makes it that ARGV is only used in CLI context (ARGV only represents the actual passed arguments to CLI now).
globalObject is still mutable (frozen, but rewritten) and i believe Jest workflow suggests that it should be this way. For example, when we run --watch mode, user's interactions change globalConfig and then we re-run Jest with the new config.
cc @rogeliog for watch stuff

I don't think I agree that this many new options have to be added to GlobalConfig. To keep this manageable, given that they all mostly belong to one or two features, I'd recommend grouping them in one or two objects within GlobalConfig instead. What do you think?

@cpojer i don't think we should go this way honestly.
i don't see how flat object is less manageable than hierarchical structure.
most of our config options used only for one/two features (expand, logHeapUsage, notify, bail, etc...)
i definitely though about grouping all new options first, but then realized that this only makes things more complicated. (have to deepFreeze, no one to one mapping with CLI, have to look into object structure every time because you don't know which group it belongs to, flowtype refining magic, etc.)
if we do want to move to grouped configs, a can see it as
globalConfig: {
  testSelection: {testPathPattern: ..., testNamePattern: ..., ...},
  runnerOptions: {onlyChanged: ..., bail: ..., maxWorkers: ...},
  coverage: {threshold: ..., coverageIgnorePatterns: ...},
  // ...
}

but then you have to decide whether --coverage will be a part of runnerOptions or coverage group. or if updateSnapshot should be a runner options or have its own snapshot group, and if it's its own group.
so basically my thoughts are - if we start grouping options together, there's no good convention or rule of how to group them and it will eventually become very confusing :(

Codecov Report

Merging #4012 into master will increase coverage by 0.07%.
The diff coverage is 54.12%.

@@            Coverage Diff             @@
##           master    #4012      +/-   ##
==========================================
+ Coverage   60.28%   60.36%   +0.07%
==========================================
  Files         196      196
  Lines        6764     6756       -8
  Branches        6        6
==========================================
  Hits         4078     4078
+ Misses       2683     2675       -8
  Partials        3        3

Impacted Files
Coverage Δ

packages/jest-config/src/valid_config.js
100% <ø> (ø)
:arrow_up:

packages/jest-config/src/index.js
0% <ø> (ø)
:arrow_up:

packages/jest-config/src/validate_pattern.js
100% <ø> (ø)

packages/jest-cli/src/reporters/notify_reporter.js
12.5% <0%> (-0.55%)
:arrow_down:

packages/jest-cli/src/run_jest.js
0% <0%> (ø)
:arrow_up:

...ackages/jest-cli/src/reporters/summary_reporter.js
21.31% <0%> (-1.27%)
:arrow_down:

...ckages/jest-cli/src/reporters/coverage_reporter.js
49.36% <0%> (-0.64%)
:arrow_down:

packages/jest-cli/src/search_source.js
75% <0%> (-1.28%)
:arrow_down:

...ckages/jest-cli/src/test_path_pattern_to_regexp.js
100% <100%> (ø)

packages/jest-cli/src/get_changed_files_promise.js
100% <100%> (ø)
:arrow_up:

... and 6 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 dd6c5c4...6e56c6e. Read the comment docs.

I'd like it if we could keep "testSelection" as a globalConfig param.
Just to double check, these args are not part of InitialOptions, therefore cannot be specified in a configuration file, right? I think that's the right way to go for these, there is never a time when hardcoding the test selection makes sense imho.

@cpojer test selection config was completely derived data that duplicated
what global config already had. with this PR we mutate global config
directly, and there's no way to bring teat selection back :(
teat selection config was the reason why i couldn't implement "-all".
because both globalConfig and teatSelectionConfig had 'onlyChanged"
property, and i couldn't mutate both
On Thu, Jul 13, 2017 at 2:57 AM Christoph Nakazawa<EMAIL_ADDRESS>wrote:

I'd like it if we could keep "testSelection" as a globalConfig param.
Just to double check, these args are not part of InitialOptions,
therefore cannot be specified in a configuration file, right? I think
that's the right way to go for these, there is never a time when hardcoding
the test selection makes sense imho.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/jest/pull/4012#issuecomment-315032000, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA5YZYCl48luPNOqmczBCNh-xqdZKvgcks5sNeoGgaJpZM4OU6l0
.

Ok, you convinced me. No mutations, though, only copying!

yeah. that's what i meant :)
On Thu, Jul 13, 2017 at 7:27 AM Christoph Nakazawa<EMAIL_ADDRESS>wrote:

Ok, you convinced me. No mutations, though, only copying!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/facebook/jest/pull/4012#issuecomment-315094244, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA5YZe5IvtjbX9ONSC1lUcPQJRKqwGLJks5sNilOgaJpZM4OU6l0
.

ok. seems like i addressed them all!


[AutoRelease] t2-subscription-2022-12-27-76364(can only be merged by SDK owner)

https://github.com/Azure/sdk-release-request/issues/3589
Live test success
https://dev.azure.com/azure-sdk/internal/_build?definitionId=1035

issue link:https://github.com/Azure/sdk-release-request/issues/3589


Remove deprecated class UnableToDeleteFileException

Checklist

[x] Validate whether we should remove the API in the 7.0 release

If the removal is not possible then create a follow-up issue and link it in the overview spreadsheet

[x] Update the upgrade guide
[x] Check User Manual for dangling references and outdated documentation
[x] Mark the story as done in the overview spreadsheet.

@lptr I've just noticed that the deprecation vas assigned to the Execution team. Is there a reason not to simply delete the class in 7.0?

@donat for context I added it to the @gradle/execution team because originally I dealt with the class, and thought we'd be removing it. But this is all fine, please go ahead and remove it.

Implemented in #15518

@bot-gradle test rFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test rFM

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test rFM

@bot-gradle test rFM

Sorry some internal error occurs, please contact the administrator @blindpirate

Sorry some internal error occurs, please contact the administrator @blindpirate

@bot-gradle test rFM

@bot-gradle test rFM

OK, I've already triggered ReadyForMerge build for you.

OK, I've already triggered ReadyForMerge build for you.


Compiling error

Describe your problem here.
Not being able to compile 0.5.2h on linux

Are you modding a build from source or with Lua?
Source
What is your build target?
Linux
Did you edit anything in this build? If so, mention or summarize your changes.
No, nothing edited, just wanted to play the game on the latest version

use this linc_luajit this will fix it
commands:
haxelib remove linc_luajit
haxelib git linc_luajit https://github.com/McJonnycat/linc_luajit


io.micrometer:micrometer-registry-prometheus [1.3.9 -> 1.5.5]

Micrometer update need to be investigated further before update latest release.
Tests are failing for a Micrometercollector.

It seems its the integration tests failing.
io.nais.security.oauth2.routing.ClientRegistrationApiTest and io.nais.security.oauth2.routing.ClientRegistrationApiTest
with:
Collector already registered that provides name: ktor_http_server_requests_active
java.lang.IllegalArgumentException: Collector already registered that provides name: ktor_http_server_requests_active

Possible workaround: https://github.com/prometheus/client_java/issues/279

Fixed: https://github.com/nais/tokendings/commit/5041614bd9c4382d5b21111e0310915ce1d36d2b


Unsupported Event - container exec_die

Moby added an exec_die container event a little over a year ago in f97256cbf1 via PR35744 (cherry-picked to docker-ce 18.03 via 27f91f80b9). The event reports a docker exec exit code, including HEALTHCHECK executions, and denotes that the executed command has completed. Portainer currently shows this as an Unsupported Event.
Is your feature request related to a problem? Please describe.
There's no immediate problem at issue. It is merely unclear when 1/3 events are displayed as Unsupported Event, and it's unclear if the docker exec instance encountered an error.
Describe the solution you'd like
Add support to Portainer for displaying the container exec_die event, preferably displaying the exit code, or a Success/Failure message, or similar.
Describe alternatives you've considered
Reducing the container's HEALTHCHECK interval to see fewer Unsupported Event entries.
Additional context
Portainer 1.20.1 shows the following event log:

In plain-text:

Date
Category
Details

2019-02-15 17:12:13
container
Exec instance created

2019-02-15 17:12:13
container
Exec instance started

2019-02-15 17:12:14
container
Unsupported event

While docker events --since 30s shows:
2019-02-15T17:12:13.936857056Z container exec_create: /bin/sh -c /usr/local/bin/docker-healthcheck.sh || exit 1 f95b731a43db47cc2021079cc73f764c4884877508faf9e05aea6f3ca776ef82 (com.docker.compose.config-hash=3381614071d2645883f98a706a0ee30e10813b68341226db4f81ba57f2092735, com.docker.compose.container-number=1, com.docker.compose.oneoff=False, com.docker.compose.project=unifi, com.docker.compose.service=controller, com.docker.compose.version=1.23.2, execID=9551142e710462ba5abb658b0e8ec1aba7493b8e5b951aece21dc918158ef70b, image=unifi_controller, maintainer=Jacob Alberty<EMAIL_ADDRESS>name=unifi_controller_1)
2019-02-15T17:12:13.936904975Z container exec_start: /bin/sh -c /usr/local/bin/docker-healthcheck.sh || exit 1 f95b731a43db47cc2021079cc73f764c4884877508faf9e05aea6f3ca776ef82 (com.docker.compose.config-hash=3381614071d2645883f98a706a0ee30e10813b68341226db4f81ba57f2092735, com.docker.compose.container-number=1, com.docker.compose.oneoff=False, com.docker.compose.project=unifi, com.docker.compose.service=controller, com.docker.compose.version=1.23.2, execID=9551142e710462ba5abb658b0e8ec1aba7493b8e5b951aece21dc918158ef70b, image=unifi_controller, maintainer=Jacob Alberty<EMAIL_ADDRESS>name=unifi_controller_1)
2019-02-15T17:12:14.237065107Z container exec_die f95b731a43db47cc2021079cc73f764c4884877508faf9e05aea6f3ca776ef82 (com.docker.compose.config-hash=3381614071d2645883f98a706a0ee30e10813b68341226db4f81ba57f2092735, com.docker.compose.container-number=1, com.docker.compose.oneoff=False, com.docker.compose.project=unifi, com.docker.compose.service=controller, com.docker.compose.version=1.23.2, execID=9551142e710462ba5abb658b0e8ec1aba7493b8e5b951aece21dc918158ef70b, exitCode=0, image=unifi_controller, maintainer=Jacob Alberty<EMAIL_ADDRESS>name=unifi_controller_1)

Yes, same here as well...

Anyone know how to fix this issue?

I believe it's just about adding a new case in the following model: https://github.com/portainer/portainer/blob/develop/app/docker/models/event.js

Same here as well.

Seeing the same issue here with the syncthing container.


[Event Request] codeunit 410 "Update Analysis View" - OnAfterInitLastEntryNo

I have an issue with the event OnAfterInitLastEntryNo in the codeunit 410 "Update Analysis View" as it is called only once after the function InitLastEntryNo is called. There are however two more calls of this function in the codeunit.
I have following suggestions. Any of those is fine

Please move the event OnAfterInitLastEntryNo to the function InitLastEntryNo or
Introduce the new one in the function InitLastEntryNo which will unfortunatelly have to have a different name or
Call the current OnAfterInitLastEntryNo after each call of the function InitLastEntryNo

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 47288.


Implement should_succeed

Pull Request Description
Implements https://www.pivotaltracker.com/story/show/182709976
Important Notes

Checklist
Please include the following checklist in your PR:

[ ] The documentation has been updated if necessary.
[ ] All code conforms to the
Scala,
Java,
and
Rust
style guides.
All code has been tested:

[ ] Unit tests have been written where possible.
[ ] If GUI codebase was changed: Enso GUI was tested when built using BOTH
./run ide dist and ./run ide watch.

Since we don't have a test suite for our test suite, I had to test it manually.
I run the following program:
from Standard.Base import all
import Standard.Test
from Standard.Base.Data.Text.Encoding as Encoding_Module import Encoding, Encoding_Error

foo x =
    if x == 0 then 42 else
        if x == 1 then (Error.throw (Illegal_Argument_Error "1")) else
            if x == 2 then (Panic.throw (Illegal_Argument_Error "2")) else
                "łąka".bytes Encoding.ascii

spec =
    Test.group "test suite itself" <|
        Test.specify "reports dataflow errors when returned as last statement" <|
            foo 1
        Test.specify "but it ignores them otherwise" <|
            foo 1
            IO.println "what a nice day! :)"

    Test.group "should_succeed function" <|
        Test.specify "should succeed on success and pass the value" <|
            result = foo 0
            result.should_succeed.should_equal 42
        Test.specify "should report dataflow errors" <|
            result = foo 1
            result.should_succeed
            Nothing
        Test.specify "should forward panics" <|
            result = foo 2
            result.should_succeed
            Nothing
        Test.specify "will ignore warnings :(" <|
            result = foo 3
            IO.println <| Warning.get_all result
            result.should_succeed

    Test.group "assert_no_problems function" <|
        Test.specify "should do nothing on success" <|
            Test.assert_no_problems (foo 0)
        Test.specify "should report dataflow errors" <|
            Test.assert_no_problems (foo 1)
            Nothing
        Test.specify "should forward panics" <|
            Test.assert_no_problems (foo 2)
            Nothing
        Test.specify "should report warnings" <|
            Test.assert_no_problems (foo 3)

main = Test.Suite.run_main spec

getting the following results:
what a nice day! :)
test suite itself:
    - [FAILED] reports dataflow errors when returned as last statement
        Reason: An unexpected error was returned: (Illegal_Argument_Error '1' Nothing)
        at <enso> Error.throw(Internal)
        at <enso> argument<1>(/home/radeusgd/NBO/repr/test-testsuite.enso:7:25-64)
<<<trimmed>>>
    - but it ignores them otherwise
[org.enso.interpreter.runtime.error.Warning@51f4439e]
should_succeed function:
    - should succeed on success and pass the value
    - [FAILED] should report dataflow errors
        Reason: An unexpected dataflow error ((Illegal_Argument_Error '1' Nothing)) has been matched (at /home/radeusgd/NBO/repr/test-testsuite.enso:25:12-32).
    - [FAILED] should forward panics
        Reason: An unexpected panic was thrown: (Illegal_Argument_Error '2' Nothing)
        at <enso> Panic.throw(Internal)
        at <enso> argument<1>(/home/radeusgd/NBO/repr/test-testsuite.enso:8:29-68)
<<<trimmed>>>
    - will ignore warnings :(
assert_no_problems function:
    - should do nothing on success
    - [FAILED] should report dataflow errors
        Reason: An unexpected dataflow error ((Illegal_Argument_Error '1' Nothing)) has been matched (at /home/radeusgd/NBO/enso/built-distribution/enso-engine-0.0.0-dev-linux-amd64/enso-0.0.0-dev/lib/Standard/Base/0.0.0-dev/src/Error/Common.enso:94-96).
    - [FAILED] should forward panics
        Reason: An unexpected panic was thrown: (Illegal_Argument_Error '2' Nothing)
        at <enso> Panic.throw(Internal)
        at <enso> argument<1>(/home/radeusgd/NBO/repr/test-testsuite.enso:8:29-68)
<<<trimmed>>>
    - [FAILED] should report warnings
        Reason: The action returned unexpected warnings: [(Encoding_Error 'Encoding issues at 0, 1.')] (at /home/radeusgd/NBO/enso/built-distribution/enso-engine-0.0.0-dev-linux-amd64/enso-0.0.0-dev/lib/Standard/Test/0.0.0-dev/src/Main.enso:402-405).


added the undeploy command

Description
I added the undeploy command as it was missing from docs.
Reviewer Notes
This command should also be added to the work that was being done in this PR: https://github.com/newrelic/developer-website/pull/465

@davidhou17 Could you do a quick code review  on this? -- Thanks!

@davidhou17 Thank you!


update some internal links

@chenpnn  Seems perfect! I will merge it and close the related issue. Thx!


[Enhancement] Reject duplicated LakeService::drop_table request

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[x] 3.1
[ ] 3.0
[ ] 2.5

@kevincai Thanks for the review, I've made changes to the code based on your comment, PTAL again.


QR Code not decoding in the sample

I tried the sample test.html include in the code base. It's need a "camcanvas.swf" file, so i created a swf (320 x 240) file after that  i can see the camera preview, but i can't see it's decoding any QR Code, Can you help to me fix the issue. I need to support for browsers which are not support html5. please help.

I also found this is responsed so slow.


Bug: Is MathJax 2.7.4 obsolete? It does not properly render equations anymore.

Description
Hi,
I've been using the template for a long time. However, MathJax started not to work properly. This issue started from a few months ago.
Even in the main homepage(https://tianqi.name/jekyll-TeXt-theme/docs/en/markdown-enhancements) the issue persists.
Please see the screenshot below.

Also, how can I fix this issue in my own blog repo?
Please let me know what I can do further for this issue.
Thanks,
Angelo

@kitian616 Can you please give me a help?

In _data/variable.yml is the URL for MathJax and the following seems dead:
https://cdn.bootcss.com/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML.
I've replace it with https://unpkg.com/mathjax@2.7.4/unpacked/MathJax.js?config=TeX-MML-AM_CHTML and it seems to work again.

@sekisushai Hi,
Thank you so much. It worked! You saved my blog.

The fix does not work again.

Hi @sekisushai , can I get a help again? Your solution worked well but today, the equations are not rendered again.
Do you happen to know any ways to fix it?

I fixed it by changing the URL to
https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML


executor: linux: chroot into tmpfs with sandbox=none

To prevent the executor from accidentally making the whole root file system immutable (which breaks fuzzing), modify sandbox=none to create a tmpfs mount and chroot into it before executing a program.
Fixes https://github.com/google/syzkaller/issues/4939.

Before sending a pull request, please review Contribution Guidelines:
https://github.com/google/syzkaller/blob/master/docs/contributing.md

Please check how many syscalls got enabled with sandbox=none before/after this change with syzbot kernel.
I afraid that if we forget to mount something important in chroot, some subset of syscalls may end up being disabled forever. There may also be some other unexpected implications of this.

I assume we can not re-enable EXT4_IOC_SHUTDOWN and EXT4_IOC_RESIZE_FS in sys/linux/init.go. If so, please add a commit that does it.

On x86, the numbers of enabled syscalls with sandbox=none (3862) and sandbox=namespace (3492) didn't change.

Also should be fixing #2933

On x86, the numbers of enabled syscalls with sandbox=none (3862) and sandbox=namespace (3492) didn't change.

That's good!

create a tmpfs mount and chroot into it before executing a program.

Nit: we set up sandboxes once per proc and those procs will execute many programs before they restart. But, as I understand, it will work fine anyway since it'll just restart the proc once the proc starts encountering problems with writing to the disk.

Updated the description according to your comments, added a patch to re-enable EXT4_IOC_SHUTDOWN and EXT4_IOC_RESIZE_FS.


musicxml2mei

Please see this as statement of documentation and potential discussion thread, not necessarily as  "issue" concerning the MEI code. (Rather an issue for MEI practitioners)
===
In my work with the Hoftheater project we have MusicXML files generated with finale 2012 and exported with Dolet Light for Finale 2012. A problem that will get passed through the XSLT transformations when going from MusicXML part-wise to time-wise, to MEI, is:
Rest (measure rests) that are automatically being generated by finale in empty measures get exported to the following MusicXML snippet (the validity of which is not to be discussed here):
<note>
    <rest measure="yes"/>
    <duration>0</duration>
    <voice>1</voice>
</note>

Be it valid MusicXML or not, the resulting MEI will end up being invalid with sth. like:
<measure>
    <staff n="22">
        <layer n="1">
            <rest xml:id="d1e1519" dur=""/>
       </layer>
    </staff>
</measure>

If the rest was entered into finale by the user properly the resulting export will be transformed to MEI just fine:
<note>
    <rest measure="yes"/>
    <duration>16</duration>
    <voice>1</voice>
</note>

<staff n="21">
    <layer n="1">
        <mRest xml:id="d1e1490" dur="1"/>
    </layer>
</staff>

Although this being a finale-Dolet-MusicXML specific Problem, it's one that MEI-practitioners will face if they follow the same workflow.
So we might implement a Dolet/finale extension to musicxml2mei.xsl
If anyone can report similar behavior when exporting MusicXML from other notation software, I'd recommend to collect some examples. Then we might decide wheter to implement a broader solution in musicxml2mei.xsl

This issue was moved to music-encoding/encoding-tools#4


run_tests_php7_linux_opt_native

2017-03-15 23:28:54,675 SUCCESS: All tests passed
/var/local/jenkins/grpc/tools/run_tests/dockerize/docker_run_tests.sh: line 57:   977 Alarm clock             $RUN_TESTS_COMMAND
  adding: reports/ (stored 0%)
  adding: reports/index.html (deflated 22%)
  adding: report_php7_linux_opt_native_sponge_log.xml (deflated 27%)
+ DOCKER_EXIT_CODE=142
++ mktemp
+ TEMP_REPORTS_ZIP=/tmp/tmp.8XmM2jx6fB
+ docker cp run_tests_90beaf19-245f-444e-adfb-248a4c1b8abb:/var/local/git/grpc/reports.zip /tmp/tmp.8XmM2jx6fB
+ unzip -o /tmp/tmp.8XmM2jx6fB -d /home/jenkins/workspace/gRPC_pull_requests_linux
Archive:  /tmp/tmp.8XmM2jx6fB
  inflating: /home/jenkins/workspace/gRPC_pull_requests_linux/reports/index.html
  inflating: /home/jenkins/workspace/gRPC_pull_requests_linux/report_php7_linux_opt_native_sponge_log.xml
+ rm -f /tmp/tmp.8XmM2jx6fB
+ docker rm -f run_tests_90beaf19-245f-444e-adfb-248a4c1b8abb
run_tests_90beaf19-245f-444e-adfb-248a4c1b8abb
+ exit 142
Traceback (most recent call last):
  File "tools/run_tests/run_tests.py", line 1303, in <module>
    env=env)
  File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'tools/run_tests/dockerize/build_docker_and_run_tests.sh' returned non-zero exit status 142

https://grpc-testing.appspot.com/job/gRPC_pull_requests_linux/3612/testReport/junit/(root)/aggregate_tests/run_tests_php7_linux_opt_native/

Doesn't appear to be recurring. Closing


There is no error when typing an invalid query in the text editor for one emulator table

Storage Explorer Version: 1.22.0-dev
Build Number: 20210924.14
Branch: hotfix/1.21.2
Platform/OS: Windows 10
Architecture: ia32\x64
Emulator Version: Azurite 3.14.0
How Found: From running test cases
Regression From: Not a regression
Steps to Reproduce

Install and start Azurite 3.14.0.
Launch Storage Explorer -> Expand 'Local & Attached -> Storage Accounts -> (Emulator - Default Ports)(Key)'.
Right click the 'Tables' node -> Create a table.
Click 'Query' -> Click 'Text editor'.
Input an invalid query in the text editor -> Click 'Execute query (F5)'.
Check whether there is an error.

Expected Experience
There is an error.

Actual Experience
There is no error.

Pretty sure this is a bug in Azurite? I think we validate custom queries as part of sending the query to the server. If that's true, then it looks like Azurite probably isn't returning the right error for an invalid query. Let's verify this is the case, and if so we can open a bug against Azurite.

Verified this issue on the build main/20211119.4, it reproduces, so we are going to re-open it.

Yeah, looks like this is still an Azurite issue, as this doesn't reproduce for regular Azure tables. I've opened Azure/Azurite#1185.

This is resolved as of Azurite 3.17.1.

Will verify this bug when the bug https://github.com/microsoft/AzureStorageExplorer/issues/5721 got fixed.

Verified this issue on the build main/20220516.1 with Azurite 3.17.1. Fixed.


commands with ng serve

🚀 Feature request
Command (mark with an x)

- [ ] new
- [ ] build
- [x] serve
- [ ] test
- [ ] e2e
- [ ] generat
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Description
Ability to launch commands during development (during ng serve). The world is ruining ctrl + c keys :-)

Multiple shells can be opened during development.   It is quite common for a developer to have at least several different shells open at any given time.
If using a sh/bash type shell, the process can also be executed in the background: ng serve &.
As there are multiple existing options available to facilitate the request, there are no plans to add such a feature to ng serve at this time.


csexec-cbmc: do the output coversion immediately

This is change relevant to https://github.com/aufover/rpm-symbiotic/commit/429cdc4b1aa6dd5bc1f2a1b75bfd05baf7bd65d6 and https://github.com/csutils/csmock/commit/e7c003f1cf7f497bb0e452612e121cdd35c26ab6.

I need to create ASAP a PR similiar to https://github.com/csutils/csmock/commit/e7c003f1cf7f497bb0e452612e121cdd35c26ab6.


please update this page with more current references

This guide is referring a lot to old names and concepts. (eg. DynamicsNAV90)
Please update this guide to reflect the modern AL tools and names.
Please also provide information if this is possible in SaaS environment, and what differences you might run in to in that case.

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

ID: 43b3196a-00cc-3382-f040-ef813b4029e4
Version Independent ID: cbd09737-7acd-2534-d9aa-96a8b34c8c4f
Content: Walkthrough: Creating and Interacting With an OData V4 Bound Action - Business Central
Content Source: dev-itpro/webservices/walkthrough-creating-and-interacting-odata-v4-bound-action.md
Service: dynamics365-business-central
GitHub Login: @SusanneWindfeldPedersen
Microsoft Alias: solsen

Thanks for your feedback. We still have work on our backlog to get web services updated. For now you might find this topic useful Creating and Interacting with an OData V4 Bound Action


Add unit tests for OnBackPressedDispatcher

⚠ stacked PR!

Part of https://github.com/cashapp/redwood/issues/1458

The TreehouseAppContent is the real codepath this is exercising. It’s at the center of 3 different lifecycles (view attach, code load, content), and so it’s been very scary to change. With this I’m hoping to make it a little bit better.
I also see some options to promote other things to be under test, perhaps by moving the boundaries of what’s an interface and what’s not.

It's probably easier to see in the IDE where I can click around more easily. It's hard to see exact boundaries in the diff.


Use Pydantic v2 API

Codecov Report
Attention: Patch coverage is 95.65217% with 2 lines in your changes missing coverage. Please review.

Project coverage is 89.11%. Comparing base (75c15a4) to head (4ae86e0).

Additional details and impacted files


Squash Git History for sqlite Branch

To prevent an explosion of storage usage by the sqlite branch, we need to squash this history every commit we push. Maybe, worst case, we keep a .backup copy of the previous commit each time.

We also need to do this with this deploy branch.
The solution here would be to 1) every update we squash all previous updates. or 2) have a periodic workflow that runs and squashes the history of the branches.


Added content on scenes.html

I have added content on Favourite Scenes page . Please review it if anything which i've modified is right do kindly merge it

@om453 This is awesome!  Thank you for all the work you put into making this page! 💯

@all-contributors please add @om453  for code, design and content


Consumer does not work if the partition in topic config is a string

The consumer is not working if topic config looks like this - (where partition is a string)
var topics = [{
    topic: 'test',
    partition: '7'
}];

Is this the expected behavior?  If yes, can we have this documented?

Looks like our examples and the examples in the docs all use integer as the partition. Do you think this should be explicitly called out?

It can be called out or we can throw error in case of string partition number provided. Right now it gives no error and finding the cause takes good amount of time.
By looking at java api of topic partition - error can be thrown on string partition config.
https://kafka.apache.org/090/javadoc/org/apache/kafka/common/TopicPartition.html


Select Dropdowns should not be hidden in DatePicker modal

Fixes issue 5145
Proposed changes

Improvement: datepicker function should not be difficult to use with .input-field class. Make select styles only apply to immediate children of .input-field elements.
Screenshots (if appropriate) or codepen:

Code to reproduce the bug:

               My Label
               <input value="" id="mylabel" type="text" class="validate" class="datepicker">

Before change:

After change:

Types of changes

[x] Bug fix (non-breaking change which fixes an issue).
[ ] New feature (non-breaking change which adds functionality).
[ ] Breaking change (fix or feature that would cause existing functionality to change).

Checklist:

[x] I have read the CONTRIBUTING document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[x] All new and existing tests passed.

Thanks!

You're welcome, thanks for merging so quickly!


The library does not compile

Hello, Tilen MaJerle!
I used the develop-version of this interesting library before I noticed that you made a v1.0.0 release. When I updated to v1.0.0 with my opts used before (#define LWPRINTF_CFG_OS 1, #define LWPRINTF_CFG_SUPPORT_TYPE_POINTER 0, #define LWPRINTF_CFG_SUPPORT_TYPE_ENGINEERING 0), the library cannot compile due to #define LWPRINTF_CFG_SUPPORT_TYPE_ENGINEERING 0. The error appears on this line
https://github.com/MaJerle/lwprintf/blob/f67bf4360f80532ee7f73ae2c002c9245ec384ab/lwprintf/src/lwprintf/lwprintf.c#L791
digits_cnt_decimal_part_useful is member of float_num_t when LWPRINTF_CFG_SUPPORT_TYPE_ENGINEERING == 1
Is it a bug?

Thanks, I have fixed it.
It actually needs this field even if engineering mode is disabled.
https://github.com/MaJerle/lwprintf/commit/d8beaa6a303e28eaa4910fbb5f4a053d1191bbcf


feature: fire change event on endEvent

The value was updated directly on moveEvent.
The native implementation updates the value only on the endEvent. This
refactoring fixes this issue.

Change event firing continuously #115

The implementation is not ready. I have to do some changes to support the input event we can listen to for continuously value feedback.

See #121


can convert model in format openvino to other format like onnx, tflite?

I have tried [220-yolov5-accuracy-check-and-quantization] in this project. For quantizing yolov5, it convert the model to IR and test the quantized model in openvino format, but i want test the quantized model in other format, it is possible?

@Dimitri666 I don't think it is possible to export a quantized model (or non-quantized) in OpenVINO format to another format like ONNX.

Closing this, I hope previous responses were sufficient to help you proceed. Feel free to reopen to ask additional questions related to this topic.


Documentation for use extensions

Great project and thanks a lot for your all hard work.
Right now I'm using this library to implement a websocket client that connects to a stream which has a lot of data inflow. I'm having some lagging issues so I'm trying to figure out if I can improve the performance or not. I come upon the following part in the documentation, but I cannot find exactly how do I use this extension (or it's already default configuration)?

Performance: memory use is configurable. An extension written in C accelerates expensive operations. It's pre-compiled for Linux, macOS and Windows and packaged in the wheel format for each system and Python version.

the following part may not be an appropriate issue question, feel free to ignore this part:
Also I profiled my script, the most time consuming part is method 'control' of 'select.kqueue' objects, (for which I posted a stack overflow questions). I'm not sure if this means most of time I'm waiting for message or does this mean I have too many tasks/coroutines that context switching is costing too much time?
Thanks a lot!

You can check if the extension is available with:
import websockets.speedups

If this works, then the extensions is enabled.
If it raises:
ModuleNotFoundError: No module named 'websockets.speedups'

then it isn't and we can try to figure out why.

Yes, you're spending most of your time in the event loop waiting for messages.


fix(plot): add error handling for to_dataframe() if size 0

@hsgwa
This PR adds error handling if the size of DataFrame obtained by the to_dataframe() method is 0.
https://emb4hq.slack.com/archives/C017YM4AA06/p1662622513491059?thread_ts=1659948870.138049&cid=C017YM4AA06
To Reproduce: https://drive.google.com/drive/folders/1qtM778Ob7Chv-XAUuaOfUucKosDMCTyd?usp=sharing

@atsushi421
This patch raises errors in my environment. Could you confirm these results? https://drive.google.com/drive/folders/1khOVV6U3awJX2Ux6n5jLxTDUHjOKwlTf?usp=sharing

@hsgwa
This is because Publisher.callback_name is None.
I have corrected this by https://github.com/tier4/CARET_analyze/pull/133

@atsushi421

This is because Publisher.callback_name is None.
OK. I'll review and merge this PR after #133 and #134

@hsgwa
Conflicts were resolved.
Could you review it? :bow:


howto load/use kernel module nf_conntrack_ftp in unprivileged container?

Is there a way to use nf_conntrack_ftp in unprivileged container?
Module is loaded on Host
also
linux.kernel_modules: nf_conntrack_ftp
set in container
but still i get errors like that
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.10.0-38-generic/modules.dep.bin'#012modprobe: FATAL: Module nf_conntrack_ftp
not found in directory /lib/modules/4.10.0-38-generic

What tool is giving you that error?
Do you see /sys/module/nf_conntrack_ftp in the container?

I use firewalld on ubuntu 16.04
Yes I see  /sys/module/nf_conntrack_ftp in container
According to these docs:
https://home.regit.org/netfilter-en/secure-use-of-helpers/
http://www.firewalld.org/2016/10/automatic-helper-assignment
with kernel 4.9 and newer - conntrack helpers are now disabled by default.
I can see nf_conntrack_ftp in lsmod on container
when i enable module with file in /etc/modules-load.d on host.
So for now i tried enable helper
sysctl net.netfilter.nf_conntrack_helper=1
but on container after restart is still
net.netfilter.nf_conntrack_helper = 0
so i got errors in firewalld
WARNING: public: INVALID_HELPER: 'nf_conntrack_ftp' is not available

Additional errors on unprivileged container from firewalld
ERROR: Failed to write to file "/proc/sys/net/netfilter/nf_conntrack_helper"
WARNING: Failed to get and parse nf_conntrack_helper setting
File does not exist /proc/sys/net/netfilter/nf_conntrack_helper

What kernel are you using with 16.04?
I just tried on my system here with the Ubuntu 4.13 kernel and in unprivileged containers the /proc/sys/net/netfilter/nf_conntrack_helper doesn't exist. It does exist on the host and once I set it to 1 on the host, I can use an iptables rule which uses the ftp helper:
iptables -A PREROUTING -t raw -p tcp --dport 21 -j CT --helper ftp

If I run a privileged container, then I do see the /proc/sys/net/netfilter/nf_conntrack_helper file in the container and I can flip it to 1 for just that one container.

I tested it on 2 hosts
ubuntu 16.04 - 4.4.0-93-generic
ubuntu 17.04 - 4.10.0-38-generic
I think your observations are the same as mine so firewalld helpers are not working
due to bad design. Even with privileged containers.

If I run a privileged container, then I do see the /proc/sys/net/netfilter/nf_conntrack_helper file in the container and I can flip it to 1 for just that one container.

I wonder how do you set
/proc/sys/net/netfilter/nf_conntrack_helper 1
only for one container?
I must always can change that value from 0 to 1 it is not inherited from host.

Well, you could put a wrapper script for modinfo in /usr/local/bin I guess :)
But the real fix would be to file a bug against firewalld to have it check through /sys/module/NAME rather than attempt to call modinfo. That'd be faster, would work with built-in modules too and remove one of their dependencies.

Closing this issue since there's nothing actionable for LXD here, but if you do end up reporting a bug against firewalld, drop the URL here so that others can find it.
An alternative would be to setup a read-only bind-mount of /lib/modules from your host, that should work so long as the container architecture is the same as the host but would end up exposing information that you may not want an untrusted container to see and should really be unneeded in this case...
lxc config device add CONTAINER modules disk source=/lib/modules path=/lib/modules readonly=true

https://github.com/firewalld/firewalld/issues/264


Upgrade T265 firmware to <IP_ADDRESS>8

Minor numerical stability fixes
Mask API (to convey image locations to avoid when detecting features)

Closing in favor of #5133


Running Gurobi v0.7.7 on mac/Unable to locate Gurobi installation

Hello
i have installed Gurobi v0.0.7 on my mac but it always show me the error Unable to locate Gurobi installationbelow, could you please guide me through that
julia> Pkg.build("Gurobi")
   Building Gurobi → `~/.juliapro/JuliaPro_v1.4.0-1/packages/Gurobi/rjF8A/deps/build.log`
┌ Error: Error building `Gurobi`:
│ ERROR: LoadError: Unable to locate Gurobi installation. If the advice above did not help,
│ open an issue at https://github.com/JuliaOpt/Gurobi.jl and post the full
│ print-out of this diagnostic attempt.
│
│ Stacktrace:
│  [1] error(::String) at /Applications/JuliaPro-1.4.0-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [2] top-level scope at /Users/mohammedbushlaibi/.juliapro/JuliaPro_v1.4.0-1/packages/Gurobi/rjF8A/deps/build.jl:154
│  [3] include(::String) at /Applications/JuliaPro-1.4.0-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [4] top-level scope at none:5
│  [5] eval(::Module, ::Any) at /Applications/JuliaPro-1.4.0-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [6] exec_options(::Base.JLOptions) at /Applications/JuliaPro-1.4.0-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│  [7] _start() at /Applications/JuliaPro-1.4.0-1.app/Contents/Resources/julia/Contents/Resources/julia/lib/julia/sys.dylib:?
│ in expression starting at /Users/mohammedbushlaibi/.juliapro/JuliaPro_v1.4.0-1/packages/Gurobi/rjF8A/deps/build.jl:152
│ Unable to locate Gurobi installation. Running some common diagnostics.
│
│ Gurobi.jl only supports the following versions:
│
│  - gurobi90
│  - gurobi81
│  - gurobi80
│  - gurobi75
│  - gurobi70
│
│ Did you download and install one of these versions from gurobi.com?
│
│
│ Found GUROBI_HOME =  /replace/this/with/the/path/to/gurobi
│
│ Does this point to the correct install location?
│ - on Windows, this might be `C:\Program Files\gurobi810\win64\`
│ - alternatively, on Windows, this might be `C:/Program Files/gurobi810/win64/`
│ - on OSX, this might be `/Library/gurobi810/mac64/`
│ - on Unix, this might be `/home/my_user/gurobi810/linux64/`
│
│ Note: this has to be a full path, not a path relative to your current
│ directory or your home directory.
│
│ We're going to look for the Gurobi library in this directory:
│     /replace/this/with/the/path/to/gurobi/lib
│
│ That directory has the following files:
│
│ Aha! We tried looking in `/replace/this/with/the/path/to/gurobi/lib`, but something went wrong. Are
│ you sure that your GUROBI_HOME environment variable is correct?
│ When combined with the appropriate suffix (e.g., `lib` or
│ `bin`, it needs to point to a valid directory.
└ @ Pkg.Operations /Users/vagrant/worker/juliapro-release-osx1011-0_6/build/tmp_julia/Julia-1.4.app/Contents/Resources/julia/share/julia/stdlib/v1.4/Pkg/src/Operations.jl:892

The error message gives good hints:

Aha! We tried looking in /replace/this/with/the/path/to/gurobi/lib, but something went wrong. Are you sure that your GUROBI_HOME environment variable is correct?

See also the README at
https://github.com/JuliaOpt/Gurobi.jl#installation
and
https://github.com/JuliaOpt/Gurobi.jl#loaderror-unable-to-locate-gurobi-installation

how to set the GUROBI_HOME environment variable on mac?

Launch Julia and write julia> ENV["GUROBI_HOME"] = "/replace/this/with/the/path/to/gurobi" where you replace /replace/this/with/the/path/to/gurobi by the actual path.

I followed that but I'm Still having the same issue

Which path did you use this time? What is the new output of Pkg.build("Gurobi") ?

The same issue that i post before, i am trying to understand where should i locate the file on 'my] mac and also what is the env and how to set that

You should have downloaded Gurobi manually and stored it somewhere in your computer. Where did you store it ?

To clarify:

Go to gurobi.com, download Gurobi, install it, obtain a license, and verify the license
Find out where you installed Gurobi. It is probably /Library/gurobi902/mac64, but it might differ.
Open Julia and run

ENV["GUROBI_HOME"]

check that it matches the location you installed. If it doesn't, run
ENV["GUROBI_HOME"] = "/location/that/you/installed"

where you replace the string with the actual path from step 2
4) In the same Julia session, run import Pkg; Pkg.add("Gurobi"); Pkg.build("Gurobi")

Thank you it works fine now


How to generate arbitrary values of a given type that match a condition?

Assume you want to generate an arbitrary f32 that is withing certain bounds. Or you want to generate an arbitrary String that matches a certain regex. Or you want to generate an arbitrary value of some other data structure that matches certain rules.
// Generate a f32 between 0 and 100 (including).
fn arbitrary_f32(u: &mut Unstructured) -> Result<f32> {
   let value = f32::arbitrary(u)?;

   if value >= 0 && value =< 100{
     return Result::Ok(value)
   }
   // What to do values not in range of 0..100?
   // Clamp them?
   // Return an Result::Err(..)?
}

// Generate an arbitrary String that matches some regex.
fn arbitrary_string(u: &mut Unstructured) -> Result<String> {
   let regex = ...;
   let value = String::arbitrary(u)?;

   lf regex.match(value) {
           return Result::Ok(value);
   }

   // What to do with values not matching the regex?
}

How to handle values that don't match the predicate?
One could return clamp the f32, as is done here.
And one could return an empty String when a String doesn't match the regex. Or some other default.
The drawback is that arbitrary_f32() is likely to return 0 or 100, most of the time. And arbitrary_string() is likely to return an empty string in the majority of the cases.
Or should these functions return some Result::Err for values that don't match the predicate? If so, what error should they return? Arbitrary::Error only has 3 variants, and  none of them seem to fit.
Do you have a word of advice?

You've enumerated the options pretty well. IME with other fuzz generators it is generally better to avoid returning errors, but you can try both and fuzz for a while and see which results in better coverage.

For arbitrary_f32() you can do some math to get your float: generate an arbitrary float, invert it if it's not in the range 0 to 1, and then multiply by 100

Thanks for the quick feedback!

Perhaps worth a note that the general case of generating values that match predicates is an active area of research in property-based testing, see e.g., this paper.


Fuzzing in symbolic analyzing

Description
Sometimes in the beginning of symbolic analyze SMT Solver initialize with bad parameters' values that may increase time of analyzing and then generating tests. The main idea is using fuzzer as seed for SMT Solver initializing.
Expected behavior
We can significantly decrease time of symbolic analyzing.
Environment
You can execute test generation for a complex example. Stop the generation in several seconds after the start.
Potential alternatives
We can use Assumptions to integrate fuzzing and symbolic analyzing by executing concretely.

Progress: implemented, on testing.


Update Main.py

status_code returns an integer, not a string. This might cause trouble in the future.

Nice catch, thanks!

Oops, should have been == instead of != with the assertions – fixed in de5a65c


Switch to IOS youtube client instead of Android

This PR is meant to fix https://github.com/lavalink-devs/Lavalink/issues/1030 where YouTube started blocking the Android Client in an A/B way, but now it's affecting more people.
The workaround provided switches to the iOS client entirely, which seems to fix the issue on my side.
I, however, am not sure if switching directly from Android to iOS will have significant disadvantages in the future. Given the fact that YouTube targeted Android Mobile App frontends like Revanced with their update, maybe the iOS client is more future proof, but that's just an assumption.
I encourage testing in other environments to confirm the fix's effectiveness and identify any potential side effects.

given that apple is continually getting flack for disallowing sideloading and this is going to inevitably fully crumble, i don't think iOS is any more fool proof then switching to web.

given that apple is continually getting flack for disallowing sideloading and this is going to inevitably fully crumble, i don't think iOS is any more fool proof then switching to web.

Sideloading doesn't have anything to do with this. However IOS client doesn't have ogg/webm opus streams, which will end up being less efficient

Well given OP's comment

Given the fact that YouTube targeted Android Mobile App frontends like Revanced with their update, maybe the iOS client is more future proof, but that's just an assumption.

i assumed they meant that the ios client would be futureproof due to it being harder to get a modded youtube app (and even this isn't true atm since you can jailbreak an iphone and get cercube). i see that i misread though.

Closing this as it's not viable. the iOS client is not served Opus streams but rather AAC, meaning transcodinf would be required making this inefficient to use on a large scale.

It works pretty smoothly! I decided to apply it to production.
It's better to have overhead than to break. This is useful as a hotfix.

There's a test build using the WEB client with 403 retry in the Lavalink Discord. It's worth trying as the IOS client does not receive Opus streams which means you're needlessly transcoding where you don't need to be.


[OUTDATED] Enable macOS vcpkg triples compilation

Probably there is a cleanest way to do it.
@traversaro

For sure it is more safe, at least we have a fixed set of dependencies. With homebrew being a rolling release, you never know when the deps are broken.

I am not sure how it works with the CI and the fork. I gave you permission to write on the repo, probably opening a PR from a branch directly in the repo is safer.

Closing in favour of #3


Remove extra commas in model.compile

I don't know if there is a reason for it, found it odd.

@googlebot I signed it!

It's strange that Black doesn't appear to have a rule for this. Apparently both formats are Black-compatible.

Ok, my mistake, Black does indeed have a rule for this. The current format is what's Black compliant. So this is just part of our style guide.


[FRONTEND] improve global loader

test

test

@Lucero07 I leave you a video that does what we want, generic loader using a hook and also refactoring the fetch
https://youtu.be/6u1RHUoXIPI?si=6e5Cby-_MkH6Tzcx


📃: Development of Remote patient health monitoring systems for elderly care

♦Title: Development of remote patient monitoring systems for elderly care
♦Aim: Early prediction of health issues and continuous health monitoring of elderly patients by continuously checking their health parameters and using AI
♦tech stack used:
Frontend
Backend
APIs
Hosting and devops
Monitoring and analytics
Screenshots
✅ To be Mentioned while taking the issue

Full name : Diksha Nishane
What is your participant role? (Mention the Open Source Program name. Eg. GSSOC, SSOC, JWOC,
GSSOC
Happy Contributing 🚀

All the best. Enjoy your open source journey ahead. 😎

@DikshaNishane can you clarify the tech stacks more clearly?

Like
For cloud based infrastructure we need cloud services and APIS then for
databases we need postgreSQL, MongoDB , Couchbase,cssandra then for iot
solutions we need iot based software autocad for circuit design, edge
cloud,wearable sensors and transmission
On Tue, 1 Oct 2024, 9:48 pm Avdhesh, @.***> wrote:

@DikshaNishane https://github.com/DikshaNishane can you clarify the
tech stacks more clearly?
—
Reply to this email directly, view it on GitHub
https://github.com/Avdhesh-Varshney/WebMasterLog/issues/774#issuecomment-2386443562,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BLVIO4R3QPGZMPPSCD3DTU3ZZLDNXAVCNFSM6AAAAABPFQIIGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGOBWGQ2DGNJWGI
.
You are receiving this because you were mentioned.Message ID:
@.***>


Fix typo in CGSize extension

This resolves #654

Codecov Report

Merging #655 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #655   +/-   ##
=======================================
  Coverage   72.84%   72.84%
=======================================
  Files          19       19
  Lines        1197     1197
=======================================
  Hits          872      872
  Misses        325      325

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 70449ea...575c432. Read the comment docs.

Thank you @95krasovsky!


Earth rotation rate shouldn't be locked to moon orbit

The way it's currently animated, the Earth rotates 1 time for each Moon orbit - which makes the same side of the Earth always point to the Moon.
If you slow down the Moon's rotation rate to 1/2 and increase the Earth's rotation 2x, it wouldn't be as obvious that it's wrong.
The Earth actually rotates about 27 times on its axis for each complete Moon orbit around the earth. You don't need to do the full 27:1 ratio though, since this is not intending to be an astronomical model, but would be nice to have earth's rotation not be locked to the moon's orbit at least.

I would say that the animation is made for illustration purposes only and would not realistically describe motions of objects. For example, the Solar System View describes only earth’s movement around the sun but would not describe the moon ‘s movement in that frame of reference. A further complication is the fact that planets’ orbits around the sun are helical rather than circular. My conclusion is that the more the scripts try to depict reality, the more complex the code becomes.

Alwin, is this a change you’d be interested in making?
-C
From: alwinv<EMAIL_ADDRESS>Sent: Wednesday, August 10, 2016 1:24 AM
To: Microsoft/GalaxyExplorer<EMAIL_ADDRESS>Subject: [Microsoft/GalaxyExplorer] Earth rotation rate shouldn't be locked to moon orbit (#37)
The way it's currently animated, the Earth rotates 1 time for each Moon orbit - which makes the same side of the Earth always point to the Moon.
If you slow down the Moon's rotation rate to 1/2 and increase the Earth's rotation 2x, it wouldn't be as obvious that it's wrong.
The Earth actually rotates about 27 times on its axis for each complete Moon orbit around the earth. You don't need to do the full 27:1 ratio though, since this is not intending to be an astronomical model, but would be nice to have earth's rotation not be locked to the moon's orbit at least.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/GalaxyExplorer/issues/37, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIo6gBUAsQCH142tp78wQZgPcwz4jhPwks5qeYqSgaJpZM4Jg5ha.

Closed by #38


Issue with Image quality entry

On the control web page if I enter to the Image quality box anything except 0 - 100 it pop ups an error "Error in RaspiMJPEG: Could not set quality
Restart RASPIMJPEG(./RPi_Cam_web_interface_Installer.sh start) or the whole RPi."
Also if I enter something allowed (eg. 90), and then I clear the box and hit OK, same error.

Yes, there is no input-filtering at the moment in raspimjpeg. So if you want you can add it to my forked userland and make a push-request


steadyState breaks on some complicated models

I have a non-trivial Antimony model with about 15 species that reaches steady state properly. I've confirmed it works (8gene_network.txt).
I took this model (in .txt format) and erased the last translation reaction (F8) and the degradation rate of the last transcription reaction (J8). This model is errorNet.txt. The model will load in as a model into Tellurium but won't actually reach steady-state.
This was made to test my script's ability to handle a network that won't reach steady state (mRNA8 will go to infinity).
If I run this:
antStr = open('path_to_errorNet.txt','r').read()
r=te.loadAntimonyModel(antStr)
r.steadyState()

The steadyState command takes a couple minutes to run, which seems a lot longer than what I've seen the command take in the past. It seems like it's getting stuck in the C++ backend somewhere. The error I got was:
RuntimeError: Both steady state solver and approximation routine failed. Check that the model has a steady state; Failed to converge while running approximation routine. Try increasing the time or maximum number of iteration. Model might not have a steady state.
Problem: If I then do
r.simulate(0,10,10)

Every single time value is at 1.0 with any simulation. This is not fixed with r.reset() or r.resetToOrigin(), which makes me think the steadyState command has crippled the model somehow. Pretty nasty.
My module versions are as following:
[('tellurium', '2.1.1'),
('roadrunner', '1.4.24'),
('antimony', '2.9.4'),
('libsbml', '5.15.0'),
('libsedml', '0.4.3'),
('phrasedml', '1.0.9')]

First of all, it seems like the model does not have a steady state. Looking into the issue with reset now...

True, there is no steady state but it stalls for 2 mins before returning.
Herbert
On Mon, Sep 17, 2018 at 3:30 PM, Kiri Choi<EMAIL_ADDRESS>wrote:

First of all, it seems like the model does not have a steady state.
Looking into the issue with reset now...
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sys-bio/tellurium/issues/406#issuecomment-422193058,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABAZDkW0PUPhC1SC1wMDL_PDPBILbWPEks5ucCKKgaJpZM4Ws01L
.

--
Herbert Sauro, Associate Professor
University of Washington, Bioengineering
206-685-2119, www.sys-bio.org
<EMAIL_ADDRESS>Books: http://books.analogmachine.org/

I think this issue is already fixed because my local roadrunner build works fine without any issues.
I ran the script below:
import tellurium as te
import roadrunner

antStr = open(r'Path to errorNet.txt','r').read()
r = te.loadAntimonyModel(antStr)
try:
    r.steadyState()
except:
    pass
r.reset()
re = r.simulate(0, 10, 11)
print(re[:,0])

and I get
[ 0.  1.  2.  3.  4.  5.  6.  7.  8.  9. 10.]

as expected. No stalling either. Try updating roadrunner to the latest version (which I think is 1.5.2). My fixes might not be on the latest release though. Check this link.

I just updated libroadrunner to 1.5.2 and tried again with a fresh load of spyder. The steadystate command still gave the same runtime error since it doesn't reach steadystate. It seems like it didn't take as long (~20-30 seconds?).
I still get just 1s for the time afterwards. I ran the exact same script you ran.
I had @katekaseth run the same exact thing too and she gets the bugged result.
her stats:
tellurium 2.1.1
roadrunner 1.5.2

Yeah, if that's the case, my commits are not released yet. I can give you roadrunner binaries if you are on Windows. Do you want it?

Yes please!

Are you on Python 3.6 or 2.7?

@kirichoi 2.7

I got a new version of roadrunner from @kirichoi as well as a commit change in tellurium for compatibility.
I've restarted spyder and confirmed everything works well, but I'm not running steadyState and still after 5 minutes there is no output of any kind.
Just came back from lunch (~40 min) and it was still running! I think there is something horribly wrong here.

I ran a smaller model based on the errorNet model with only a couple species, and also expected to not reach steady-state. steadyState ran basically in a second, with the expected RuntimeError.
So maybe this problem is specific to some size of the model? In terms of model features, this smaller model should be near-identical to errorNet.
r = te.loada(''' J1: => mRNA1 ; L1 + Vm1*((K1_1*P9^H1)/(1 + K1_1*P9^H1 + K2_1*P19^H1 + K1_1*K2_1*P9^H1*P19^H1)) - d_mRNA1 * mRNA1; //translation1 F1: => P1 ; a_protein1 * mRNA1 - d_protein1 * P1; //transcription2 J2: => mRNA2 ; L2 + Vm2*((K1_2*P6^H2)/(1 +K1_2*P6^H2)) - d_mRNA2 * mRNA2; //translation2 F2: => P2 ; a_protein2 * mRNA2 - d_protein2 * P2; //transcription3 J3: => mRNA3 ; L3 + Vm3*((K1_3*P8^H3 + K2_3*P18^H3 + K1_3*K3_3*P8^H3*P18^H3)/(1 + K1_3*P8^H3 + K2_3*P18^H3 + K1_3*K3_3*P8^H3*P18^H3)) - d_mRNA3 * mRNA3; //translation3 F3: => P3 ; a_protein3 * mRNA3 - d_protein3 * P3; //transcription4 J4: => mRNA4 ; L4 + Vm4*((K1_4*P12^H4 + K2_4*P4^H4 + K1_4*K3_4*P12^H4*P4^H4)/(1 + K1_4*P12^H4 + K2_4*P4^H4 + K1_4*K3_4*P12^H4*P4^H4)); INPUT = 1; mRNA1 = 0; P1 = 0; mRNA2 = 0; P2 = 0; mRNA3 = 0; P3 = 0; mRNA4 = 0; P4 = 0; P6 = 0; P8=0; P9 = 0 ; P12=0; P19 = 0; P18=0; d_protein1 = 0.47934759078405814; d_mRNA1 = 0.5855731545574789; L1 = 1.0225054032947554; Vm1 = 39.97530203097915; a_protein1 = 28.350524036690203; H1 = 0.8233024676616122; K1_1 = 0.6852804839400601; K2_1 = 0.4806093035911969; K3_1 = 0.25630145019765727; d_protein2 = 0.5304109779817353; d_mRNA2 = 1.1371767995467668; L2 = 0.7824500017585917; Vm2 = 17.078695966644617; a_protein2 = 29.04880702435853; H2 = 0.8487897136357436; K1_2 = 0.6026002508142899; K2_2 = 0.31857408362185013; K3_2 = 0.34788569723480267; d_protein3 = 0.5010153410550564; d_mRNA3 = 0.8529026429610975; L3 = 0.9288423889581741; Vm3 = 16.6999606797651; a_protein3 = 30.745158839980313; H3 = 0.8347598918336179; K1_3 = 0.598711111656855; K2_3 = 0.3515639965321333; K3_3 = 0.49046010196843737; d_protein4 = 0.66571882423398; d_mRNA4 = 1.2116228766524393; L4 = 0.6277133785505412; Vm4 = 15.07475670989659; a_protein4 = 37.03694017293177; H4 = 0.6235013311616022; K1_4 = 0.6014689513779717; K2_4 = 0.6169364917188008; K3_4 = 0.5848761526299255; ''') r.steadyState()


Don't create subscriptions for IgnoredOutputModules

This IgnoredOutputModules is a feature available only for TaskChain an Resubmission and it's mainly used by the recovery script (to recover ReReco lumis).
Needs more investigation, but it seems WorkQueueManager creates a subscription even for those output modules that we want to ignore, which later on brings problems in JobAccountant that will x-check the outputModules expected (database call) against the job outputs (which fails in this case).

I'll create a dirty patch for the current agent (1.0.9) and then the real one will come later.


new 3pt ellipse constructor

Implements https://github.com/iTwin/itwinjs-core/issues/6794
The new constructor Arc3d.createStartMiddleEnd keeps the same required inputs as its special-case cousin Arc3d.createCircularStartMiddleEnd but constrains the first and third points to fall on a diameter.  It can also create circles and arcs of any eccentricity.

Nice, almost works perfectly. :)


Refresh button Should fetch changes from the file system

Is this related to https://github.com/Azure/azure-webjobs-sdk-script/issues/649?

That's the current behavior. Do you have a repro for the issue?

Repro steps:

Open develop tab of a function
Go into kudu and edit the text of the function and save.
Back in the portal, click refresh

Expected result: the code shown is updated based on the kudu edit
Actual result: the old code still shows


Events type is bytes, not bytearray

The decode_bytes prototype specifies events as bytes.
  void decode_bytes(
    const std::string & encoding, uint16_t width, uint16_t height, uint64_t timeBase,
    pybind11::bytes events);

but decoder.c tries to decode it as a bytearray. This can trigger the following issue with a simple EventArray message, that yields an immutable object for events.
>>> a = event_array_msgs.msg.EventArray()
>>> a
header:
  seq: 0
  stamp:
    secs: 0
    nsecs:         0
  frame_id: ''
height: 0
width: 0
seq: 0
time_base: 0
encoding: ''
is_bigendian: False
events: []
>>> type(a.events)
<class 'bytes'>

python3.8-dbg: /home/fclad/catkin_ws/src/event_array_py/src/decoder.cpp:35:
void Decoder::decode_bytes(const string&, uint16_t, uint16_t, uint64_t, pybind11::bytes): Assertion `PyByteArray_Check(events.ptr())' failed.

This patch fixes the problem.

Fernando, thanks for contributing this patch. As you can see from the comments in the code you can clearly see that I didn't quite know what I was doing but just hacked it until it "worked". And in fact I'm using this code and it is giving me no errors. How exactly do you trigger the assertion above?

Hi Bernd! Sorry for the sterile message last night, just wanted to submit it before I forget it 👎🏼
We are building our CI for the dataset and we triggered this issue when playing one bag. Ken was not able to replicate it in his computer, but we are using docker so I will come up with a container to replicate this.

Fernando, I appreciate the feedback!
I just created a branch with unit tests and I'm trying to figure out what's going on. I use decode_array() under ROS2, but they should both work.

My intuition is that the pybind11 version that comes with Focal is slightly older than the ros-noetic-pybind11-catkin.
https://github.com/pybind/pybind11/pull/2799

Alright, the idea of bytes vs bytearray was spot on! Now I can simply cast the pointer which saves another memory copy.
Please amend your PR like so:
 if (decoder) {
    decoder->setTimeBase(timeBase);
    decoder->setTimeMultiplier(1);  // report in usecs instead of nanoseconds
    delete cdEvents_;               // in case events have not been picked up
    cdEvents_ = new std::vector<EventCD>();
    delete extTrigEvents_;  // in case events have not been picked up
    extTrigEvents_ = new std::vector<EventExtTrig>();
    // TODO(Bernd): use hack here to avoid initializing the memory
    cdEvents_->reserve(maxSizeCD_);
    extTrigEvents_->reserve(maxSizeExtTrig_);
    const uint8_t * buf = reinterpret_cast<const uint8_t *>(PyBytes_AsString(events.ptr()));
    decoder->decode(buf, PyBytes_Size(events.ptr()), this);
  }

Ok, this is great! It works really well in our end. Thank you so much for your help!


add ci

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@831dee4). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             master        #1   +/-   ##
==========================================
  Coverage          ?   100.00%
==========================================
  Files             ?         1
  Lines             ?        49
  Branches          ?         0
==========================================
  Hits              ?        49
  Misses            ?         0
  Partials          ?         0

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 831dee4...ea4a458. Read the comment docs.


[1.x] Fix IP address retrieval when using reverse proxy

This pull request fixes the issue where the request()->ip() method doesn't return the correct IP address when using a reverse proxy (such as Nginx or Cloudflare).
When a reverse proxy is used, the IP address of the proxy is returned instead of the client's real IP. To address this, the code now checks the X-Forwarded-For header to retrieve the correct client IP.

Thanks!

You're welcome, Milwad!
Please update the README to reflect the new configuration options, including use_reverse_proxy_ip.
Thank you!

Yes ofcourse


Clarify the acceptable values for -GptType

I haven't done exhaustive tests, but it appears that not all GUID strings are acceptable values.
See https://docs.microsoft.com/en-us/dotnet/api/system.guid.tostring?view=netcore-2.2
VALID

Guid.ToString("B")

NOT VALID ("The specified partition type is not valid." error)

Guid.ToString("N")
Guid.ToString("D")
Guid.ToString("P")
Guid.ToString("X")

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

ID: 8e854ce1-0e6c-2261-c35d-94e2faaa96bc
Version Independent ID: 95312c3e-0f34-cb59-04f1-3cbe6762287a
Content: New-Partition (storage)
Content Source: docset/windows/storage/new-partition.md
Product: w10
Technology: powershell-windows
GitHub Login: @coreyp-at-msft
Microsoft Alias: coreyp

@officedocsbot assign @e0i

Hello, @zzzz4
The content is being reviewed in the light of your feedback and we'll keep you posted on updates.
Thank you for providing feedback.

@zzzz4
Upon your feedback, We have updated the content with relevant changes accordingly. Thanks.


Add subctl upgrade command

Epic Description
A new subctl upgrade command should be added that upgrades the running enviroment to the version specified by the user. The command would do the following:

Upgrade subctl itself to the specified version
Upgrade Submariner to the specified version by re-running deploy-broker and join.

What it won't do is to change from a non-globalnet environment to globalnet enabled one or vice-versa. Feasibility of adding or removing the Service discovery component needs to be determined.
This is helpful in major and minor version upgrades.
Acceptance Criteria
Submariner environment can be successfully upgraded to the specified version.
Definition of Done (Checklist)

[ ] Code complete
[ ] Relevant metrics added
[ ] The acceptance criteria met
[ ] Unit/e2e test added & pass
[ ] CI jobs pass
[ ] Deployed using cloud-prepare+subctl
[ ] Deployed using ACM/OCM addon
[ ] Deploy using Helm
[ ] Deployed on supported platforms (for e.g kind, OCP on AWS, OCP on GCP)
[ ] Run subctl verify, diagnose and gather
[ ] Uninstall
[ ] Troubleshooting (gather/diagnose) added
[ ] Documentation added
[ ] Release notes added

Work Items

[ ] Write logic to upgrade subctl
[ ] Add rerunning deploy-broker command with the specified Submariner version
[ ] Add rerunning join command with the specified Submariner version

Release notes and documentation: https://github.com/submariner-io/submariner-website/pull/1009


Adds partial_blind_route sni action

[approve ci clang-analyzer]

[approve ci clang-analyzer]

[approve ci fedora]

@shinrich Does this look ok now?

@shinrich Does this look ok now?

@shinrich One more approval? I had to rebase the change.

Cherry-picked to v9.0.x branch.


Avoid ActivityNotFoundException

Add specific ActivityNotFoundException catch for the case where no ap…p is available to open the desired file type

Hey, this is breaking my build, I think line 131 is supposed to be:
this.promise.reject(E_UNABLE_TO_OPEN_FILE_TYPE, e.getLocalizedMessage());

True, should I revert the merge and change it?

https://github.com/Elyx0/react-native-document-picker/issues/166


About pose tracking

Hello！Sorry to interrupt you. I have also paid attention to this article recently. Thank you for your work. However, some parts of the article confuse me. I would like to consult that what exactly is pose track and what is the difference between it and general pose estimation（such as openpose）? , Thank you very much for your answers

Good question. In my point of view, the difference between pose tracking and pose estimation is as follows.

The task.

In pose estimation task, we only have an input RGB image and nothing more. The task is just to infer the skeleton joints on this image.

In pose tracking, the input is usually a video (or real-time camera). The task is not only to detect the skeleton joint in this frame but also judge whether the skeleton joint belongs to the same identification as last frame.

Prior knowledge.

Pose estimation: Nothing more than an RGB image itself.

Pose tracking: Full video, and the initial skeleton joints of the first frame.

The above is just as my understanding. If you think I said something wrong, please kindly correct me.

好的，非常高兴能够收到你的回复，我可否理解为，尽管pose estimation可以应用在视频中，但他始终只是在对每一帧进行单独的姿态估计；而pose tracking则不同，他除了需要在每一帧中进行pose的估计（每一帧仍然需要pose的估计），还需要判断当前帧中的pose和之前帧中的pose是否从属于同一个对象（同一个人），相当于在时序上有一个相似性比较以判断是否为同一个id？
此外，可否推荐几篇有介绍pose tracking的论文以方便进一步理解。再次感谢你之前的解答，十分感激！

是的，这两个任务的关系大致是这样。"pose tracking"中，虽然说"每一帧仍然需要pose的估计"，但是因为有了上一个frame的pose点位置先验，因此预测难度会更低的。
关于pose tracking的论文，可以看看“PoseTrack: A Benchmark for Human Pose Estimation and Tracking”, arxiv 2017和"Simple Baselines for Human Pose Estimation and Tracking", ECCV 2018等文章


Missing symbol error

I am trying to examine this project.
I have installed sky water 130 nm library along with xschem, ngspice and magic.
But when I open shematic files, I cannot view them correctly, as shown below.

Right-click each symbol > edit attributes > Browse > navigate to the proper symbol