Updated docs with Azure ConnectionString from Layout

@JDetmar Trying to improve the docs, since NLog Layout is not known by many.

@snakefoot thank you for the docs update. The layout there is very powerful but not as obvious so a great thing to better document.


Figure out why integration test for kube-hunter command is failing on GitHub actions runner

We have an integration test which runs kube-hunter command. However this tests fails when it's run on GitHub actions runner. It seems to be working fine in dev environment with local KIND cluster though.

I can also try this one, I'm familiar with github actions and yaml. Any help regarding this would be good too. Thanks.

I can also try this one, I'm familiar with github actions and yaml. Any help regarding this would be good too. Thanks.

👋 @avats-dev I'm glad that you want take this one. In essence, we do have this integration test for kube-hunter, which is failing only on remote GitHub runner https://github.com/aquasecurity/starboard/blob/master/itest/starboard_cli_test.go#L876
I have no problems with it in my local dev though. (You can confirm that in your env by changing PDescribe to FDescribe, change the spec from pending to focused in order to speed things up.)
So we need to find out why kube-hunter scan job gets stuck on GitHub by adding maybe some verbose logs to the job itself, and/or adding some temporary steps around step for the integration tests run to describe the underlying Kubernetes job and see what is going on.
Maybe you can start also with this project https://github.com/nektos/act, which allows one to run the workflow locally?
As another hint I would specify the timeout in the integration test command (starboard kube-hunter --delete-scan-job=false --scan-job-timeout=2m) and then execute kubectl describe job -n starboard or kubectl get events to see if there's any obvious issue with the test or GitHub actions runner.

Thanks @danielpacak for the help, I'll look and try this, and get back to you with the updates.

👋 @avats-dev Do you have any updated on this issue? Please let me know if you continue working on that one. Otherwise I'll leave it unassigned.

I'd be interested in taking a look at this.

I'd be interested in taking a look at this.

I'd be interested in taking a look at this.

Please go ahead @mlevesquedion This one is really bothering me so it would be great if you find the root cause

I'd be interested in taking a look at this.

Please go ahead @mlevesquedion This one is really bothering me so it would be great if you find the root cause

I was able to run the kube-hunter test locally using act. The test passes.
The exact command I used was:
act build -j itest-starboard -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04

I had to use the nektos/act-environments-ubuntu:18.04 image since the regular image act uses to emulate ubuntu-18.04 runners was missing too many things (the regular image is node:12.6-buster-slim). The nektos/act-environments-ubuntu:18.04 is much bigger, though.
Since I haven't been able to observe the failure using act, I'm going to open a PR for debugging.

I was able to run the kube-hunter test locally using act. The test passes.
The exact command I used was:
act build -j itest-starboard -P ubuntu-18.04=nektos/act-environments-ubuntu:18.04

I had to use the nektos/act-environments-ubuntu:18.04 image since the regular image act uses to emulate ubuntu-18.04 runners was missing too many things (the regular image is node:12.6-buster-slim). The nektos/act-environments-ubuntu:18.04 is much bigger, though.
Since I haven't been able to observe the failure using act, I'm going to open a PR for debugging.

I've been investigating the issue in #326. I haven't seen the test fail yet, but it does take a long time to run, around 15 minutes. From my investigation, this seems to be caused by some intensive port scanning done by kube-hunter.
When kube-hunter detects that it's running in Azure, it determines what subnets to scan by querying the metadata API. On the GitHub runner, apparently the answer is <IP_ADDRESS>/16. That's a fair number of addresses to scan. Since kube-hunter scans 8 ports for each address ([8001, 8080, 10250, 10255, 30000, 443, 6443, 2379]), that amounts to a about half a billion scans.
When running locally, kube-hunter uses the node internal IP with a /24 CIDR, which is very quick to scan.
I was able to obtain this information by setting kube-hunter's log level to DEBUG in the scan kubehunterreports command.
One way to circumvent this is to ask kube-hunter to scan a specific CIDR, e.g. <IP_ADDRESS>/32. I was able to get the whole suite to pass by using this hack. See the results here: https://github.com/aquasecurity/starboard/pull/326/checks?check_run_id=1678709615
It might make sense to accept additional args for kube-hunter when the kubehunterreports scan is requested. This would allow us to pass some extra arguments in the test to avoid the excessive scanning.
WDYT?

I've been investigating the issue in #326. I haven't seen the test fail yet, but it does take a long time to run, around 15 minutes. From my investigation, this seems to be caused by some intensive port scanning done by kube-hunter.
When kube-hunter detects that it's running in Azure, it determines what subnets to scan by querying the metadata API. On the GitHub runner, apparently the answer is <IP_ADDRESS>/16. That's a fair number of addresses to scan. Since kube-hunter scans 8 ports for each address ([8001, 8080, 10250, 10255, 30000, 443, 6443, 2379]), that amounts to a about half a billion scans.
When running locally, kube-hunter uses the node internal IP with a /24 CIDR, which is very quick to scan.
I was able to obtain this information by setting kube-hunter's log level to DEBUG in the scan kubehunterreports command.
One way to circumvent this is to ask kube-hunter to scan a specific CIDR, e.g. <IP_ADDRESS>/32. I was able to get the whole suite to pass by using this hack. See the results here: https://github.com/aquasecurity/starboard/pull/326/checks?check_run_id=1678709615
It might make sense to accept additional args for kube-hunter when the kubehunterreports scan is requested. This would allow us to pass some extra arguments in the test to avoid the excessive scanning.
WDYT?

Amazing analysis @mlevesquedion ! I checked your conclusion with @danielsagi , creator of kube-hunter, and he confirmed your reasoning. He also pointed out that there's the --quick flag to circumvent excessive port scanning, which would solve the problem with our GitHub Actions runner. I actually tried this flag and it worked!
That said, I'd add the kube-hunter.quick configuration parameter which would allow us to enable quick port scanning before we run the starboard scan kubehunterreports command in the integration test.

Amazing analysis @mlevesquedion ! I checked your conclusion with @danielsagi , creator of kube-hunter, and he confirmed your reasoning. He also pointed out that there's the --quick flag to circumvent excessive port scanning, which would solve the problem with our GitHub Actions runner. I actually tried this flag and it worked!
That said, I'd add the kube-hunter.quick configuration parameter which would allow us to enable quick port scanning before we run the starboard scan kubehunterreports command in the integration test.

Thank you! I've opened a PR implementing support for a quick configuration parameter in #331.
As a side note: is the --quick flag for kube-hunter documented somewhere? I couldn't find the docs for kube-hunter, but I did some digging in the codebase and it looks like the flag has been available for a while.

Thank you! I've opened a PR implementing support for a quick configuration parameter in #331.
As a side note: is the --quick flag for kube-hunter documented somewhere? I couldn't find the docs for kube-hunter, but I did some digging in the codebase and it looks like the flag has been available for a while.

Thank you! I've opened a PR implementing support for a quick configuration parameter in #331.
As a side note: is the --quick flag for kube-hunter documented somewhere? I couldn't find the docs for kube-hunter, but I did some digging in the codebase and it looks like the flag has been available for a while.

I think the flag is not mentioned in the README. It's kind of tribal knowledge. @danielsagi do you think we can document as officially supported flag?

Thank you! I've opened a PR implementing support for a quick configuration parameter in #331.
As a side note: is the --quick flag for kube-hunter documented somewhere? I couldn't find the docs for kube-hunter, but I did some digging in the codebase and it looks like the flag has been available for a while.

I think the flag is not mentioned in the README. It's kind of tribal knowledge. @danielsagi do you think we can document as officially supported flag?


Bug: Navbar is blank in Mobile view

In mobile the navbar must have like cart and wishlist icon to direct to cart page and wishlist page

If your navbar is blank in mobile view, start by checking your CSS media queries to ensure visibility (no display: none or visibility: hidden) and proper color contrast between the text and background. Next, verify the HTML structure, confirming correct markup with properly nested and closed tags, and the presence of any required mobile-specific elements like a hamburger menu. Inspect for JavaScript errors in the console and ensure any initialization scripts run correctly. If using a framework like Bootstrap, double-check that necessary CSS and JavaScript files are included and that you're using the appropriate responsive classes. Finally, utilize browser developer tools to inspect the navbar in mobile view, and test across different devices and browsers to identify any inconsistencies. By methodically working through these troubleshooting steps, you should be able to identify and resolve the issue with your mobile navbar

is someone working on this issue if not i would like to take it

is someone working on this issue if not i would like to take it

this is done


Integer overflow in total count in grouping results [LUCENE-9302]

When doing a Grouping search in solr cloud you can get a negative number for the total found.
This is caused by the accumulated total being held in an integer and not a long.

example result:
"responseHeader": { "status": 0, "QTime": 9231, "params": { "q": "decade:200", "indent": "true", "fl": "decade", "wt": "json", "group.field": "decade", "group": "true", "_": "1542773674247" } }, "grouped": { "decade": { "matches": -629516788, "groups": [ { "groupValue": "200", "doclist": { "numFound": -629516788, "start": 0, "maxScore": 1.9315376, "docs": [ { "decade": "200" } ] } } ] } }}

result without grouping:
"responseHeader": { "status": 0, "QTime": 1063, "params": { "q": "decade:200", "indent": "true", "fl": "decade", "wt": "json", "_": "1542773791855" } }, "response": { "numFound":<PHONE_NUMBER>, "start": 0, "maxScore": 1.9315376, "docs": [ { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" }, { "decade": "200" } ] }}

Migrated from LUCENE-9302 by Ian, 1 vote, updated Apr 06 2020
Attachments: SOLR-13004.patch (versions: 2)
Linked issues:

SOLR-14381

I plan to update this PR to merge against main branch shortly.


ERROR WITH CONTEXT DETACHMENT

Describe the bug:
The app randomly throws this errors, although the navigation path is properly defined
Navigation action/destination <yyy> cannot be found from the current destination Destination <xxx> label=XXXclass
Fragment Fragment{c7b8c3d} (8af9e5d9-7257-4ddd-a266-38975675c23e)} not attached to Activity

This exception is related to the NavigationComponent it self. You may want to report this through https://issuetracker.google.com.

Is it possible to use try catch on the com.phelat.navigationresult.BundleFragment.navigate() function , the current is not able to capture it
 try {

    navigate(R.id.action_loginFragment_to_dashboardFragment,0);

}catch (Exception e){
    e.printStackTrace();
}


[connectivity] Define clang module for iOS

Description

Limit the supported podspec platform to iOS so tests don't run (and fail) for macOS.
Define the module by setting DEFINES_MODULE in the podspec.  See CocoaPod modular headers docs.
Explicitly set VALID_ARCHS to x86_64 for the simulator.  See https://github.com/CocoaPods/CocoaPods/issues/9210.

Related Issues
Fixes https://github.com/flutter/flutter/issues/41883.
See also https://github.com/flutter/flutter/issues/41007.
Tests

Remove connectivity from the list of packages to skip when linting the podspec.  This will at minimum make sure connectivity can be imported into a project without compilation errors.

Checklist

[x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See [Contributor Guide]).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the [Flutter Style Guide].
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I updated pubspec.yaml with an appropriate new version according to the [pub versioning philosophy].
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the [CLA].
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

LGTM


Add cloneElement

Moved from #47 discussion

Not sure how much work has been done on this, but I finalized a wrapper for cloneElement for usage in a project, with unit tests, if y'all are interested: https://gist.github.com/greglittlefield-wf/549ff3021624d7599492.
Feel free to incorporate any of that work. I'd also be more than happy to rework it into the react_client.dart code and PR it myself.

@trentgrover-wf @hleumas this issue can be closed.

@aaronlademann-wf This actually still hasn't been implemented in react-dart; only in one of our projects.
I'll plan on making a PR to implement this.


Crayon Portrait Filter

Is your feature request related to a problem? Please describe.
Want to apply a "Crayon Portrait Filter" on an image.
Describe the solution you'd like
Implementing a "Crayon Portrait Filter" using some of the python library functions which are OpenCV, Os, Matplotlib, and NumPy.
Final Output

hi this is already implemented

okay


Fix the pre-allocated number of pages

This solves the memory issue described in https://github.com/mafintosh/hypercore/pull/121
I noticed the number of pre-allocated pages seemed off. To confirm, I added some code to hashbase which tracked how frequently pages of a given offset were being allocated. After 15 minutes running in hashbase, this was the count:
{ '0': 7657,
  '1': 37,
  '2': 10,
  '3': 10,
  '4': 8,
  '5': 5,
  '6': 3,
  '7': 1,
  '8': 1,
  '9': 1,
  '10': 1,
  '11': 1 }

Not even up to 16! So I reduced the number preallocated in Hashbase, as this PR does, and things continued to work smoothly -- and then my CPU usage dropped completely. The hashbase loop delay used to start at 200ms and grow from there till I had to restart. Now it sits comfortably at 0.5ms to 2ms. Victory!

1.1.0


missing some device version mappings

Not sure if this is missing some device version mappings, which pynrfjprog seems to have.
example, I currently get this exception:
$ python nrfjprog_cli.py program -f ~/Downloads/mbed_blinky_NRF51822.hex
Programs the device.
Traceback (most recent call last):
  File "nrfjprog_cli.py", line 39, in <module>
    main()
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/__main__.py", line 479, in main
    cli.run()
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/__main__.py", line 109, in run
    getattr(perform_command, self.args.command)(self.args)
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/model/perform_command_jlink.py", line 215, in program
    nrf = SetupCommand(args)
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/model/perform_command_jlink.py", line 56, in __init__
    elif self._setup('NRF51'):
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/model/perform_command_jlink.py", line 126, in _setup
    self.device = device.NRF5xDevice(self.device_version)
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/model/device.py", line 81, in __init__
    self.flash_size = FLASH_SIZE[device_version]
KeyError: 'NRF51xxx_xxAC_REV3'

I think my version NRF51xxx_xxAC_REV3 maps to NRF51_XLR3P per this:
https://github.com/NordicSemiconductor/pynrfjprog/blob/master/pynrfjprog/API.py#L65-L98
however I don't see these versions in this repo:
https://github.com/NordicSemiconductor/nRF5-universal-prog/blob/master/nrfjprog/__main__.py#L292-L301
However, if I attempt to use --deviceversion NRF51_XLR3P (or any of the others listed here), I get:
pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -5 WRONG_FAMILY_FOR_DEVICE.
and NRF51xxx_xxAC_REV3 is not allowed as an option.

I also tried hacking in support at NRF51xxx_xxAC_REV3 on nrfjprog/main.py and nrfjprog/model/device.py, and it executes, but get this back:
$ python nrfjprog_cli.py program -f ~/Downloads/mbed_blinky_NRF51822.hex  --deviceversion NRF51xxx_xxAC_REV3
Programs the device.
Traceback (most recent call last):
  File "nrfjprog_cli.py", line 39, in <module>
    main()
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/__main__.py", line 480, in main
    cli.run()
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/__main__.py", line 109, in run
    getattr(perform_command, self.args.command)(self.args)
  File "/Users/jens/build/nrf/nRF5-universal-prog/nrfjprog/model/perform_command_jlink.py", line 234, in program
    nrf.api.write(start_addr, data.tolist(), True)
  File "/Library/Python/2.7/site-packages/pynrfjprog-9.5.0-py2.7.egg/pynrfjprog/API.py", line 788, in write
    raise APIError(result)
pynrfjprog.API.APIError: An error was reported by NRFJPROG DLL: -5 WRONG_FAMILY_FOR_DEVICE.

any ideas on what I'm missing?

ok, seems that once I hacked in the support for NRF51xxx_xxAC_REV3 (copied settings from NRF51_XLR3P), and do NOT pass in --deviceversion, then program (followed by reset) works as expected.
should I just submit a PR with my hwrev or also for the rest here (for completeness):
https://github.com/NordicSemiconductor/pynrfjprog/blob/master/pynrfjprog/API.py#L65-L84

also found this from Jlink Command line by exporting device list (ExpDevList):
"Manufacturer", "Device", "Core", {Flash areas}, {RAM areas}
...


Vulnerability roundup 102: pomerium-0.13.3: 2 advisories [6.1]

search, files

[ ] CVE-2021-29651 CVSSv3=6.1 (nixos-unstable)
[ ] CVE-2021-29652 CVSSv3=6.1 (nixos-unstable)

Scanned versions: nixos-unstable: ea7d4aa9b82.
Cc @kalbasit
Cc @lukegb

nixos-unstable was updated in 137fcc6cf048ec6a8ea8766af7636e9bdf32d063 (#126034)


Bug : Empty Results

Debug why the results are empty
Report on the ticket what is going on
Try to fix it

thanks @alexkhazzam
@abnoviello23
I added an update to example/app.py to show how to use the ChromeDriverManager
FYI, you can also force a new version using
pip install GoogleNewsScraper==0.0.9


Deploying the application to the Service Fabric local cluster failed

I can't get the simple quick start to deploy to my local cluster. I'm creating a new Service Fabric Mesh solution with a single ASP.NET Core service. If I try to debug or run it on my local cluster, I get a Deploying the application to the Service Fabric local cluster failed. See Service Fabric Explorer for additional details error.
Service Fabric Explorer does not show any information, there are no applications running on the local cluster. Are there any other places I can look for additional logging?
This is the output from the Service Fabric Tools window:
========== Checking for Container Prerequisites ==========
Verifying that Docker for Windows is installed...
Docker for Windows is installed.
Verifying that Docker for Windows is running...
Docker for Windows is running.
Verifying that the Service Fabric SDK is installed...
The Service Fabric SDK is installed.
Finding required service projects...
Service projects found.
========== Pulling Required Images ==========
Checking for missing Docker images...
Docker images are ready.
========== Warming up Service Fabric application ==========
Verifying that Docker for Windows' operating system mode matches the project's target operating system...
Docker for Windows' operating system mode matches the project's mode.
Preparing Docker images for service projects...
The Dockerfile 'C:\Users\sander\source\repos\MeshTest2\Web1\Dockerfile' will be used to build image web1:dev needed by Service Web1, CodePackage Web1.
No cached built image information was found while building project Web1. Required images will be built.
docker build -f "C:\Users\sander\source\repos\MeshTest2\Web1\Dockerfile" -t web1:dev --target base "C:\Users\sander\source\repos\MeshTest2"

Sending build context to Docker daemon  2.142MB
Step 1/3 : FROM microsoft/aspnetcore:2.0-nanoserver-1709 AS base
Step 2/3 : WORKDIR /app
 ---> cffed522c301
 ---> 2facdcbd35bc
Step 3/3 : EXPOSE 20006
 ---> Using cache
 ---> Running in a309614c88ea
Removing intermediate container a309614c88ea
 ---> 39d1ca288b45
Successfully built 39d1ca288b45
Successfully tagged web1:dev
Docker images are ready.
Preparing the debugger...
Debugger is ready.
The container runtime settings for Service Web1, CodePackage Web1 have changed. The application must be deployed.
Preparing Service Fabric application in local Service Fabric cluster...
C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\SfSbzYamlMerge\SfSbzYamlMerge.exe  /i:"C:\Users\sander\source\repos\MeshTest2\Web1\Service Resources\service.yaml" /i:"C:\Users\sander\source\repos\MeshTest2\MeshTest2\App Resources\app.yaml" /i:"C:\Users\sander\source\repos\MeshTest2\MeshTest2\obj\SFApp\App.debug.yaml" /o:"C:\Users\sander\source\repos\MeshTest2\MeshTest2\obj\SFApp" /of:"SF_SBZ_JSON"
{
  "schemaVersion": "1.0.0-preview1",
        "properties": {
          "description": "Web1 description.",
          "osType": "Windows",
  "properties": {
    "services": [
        "name": "Web1",
            {
          "codePackages": [
              "name": "Web1",
  "name": "MeshTest2",
      {
              "image": "web1:dev",
              "endpoints": [
            }
                {
                }
              ],
          "networkRefs": [
              "environmentVariables": [
            }
                {
                  "name": "ASPNETCORE_URLS",
                  "value": "http://+:20006"
          ]
                }
        }
              ],
    "description": "MeshTest2 description.",
              "resources": {
                  "cpu": 5.0,
                  "memoryInGB": 1.0
                }
              }
          "replicaCount": 1,
    ],
  }
}
      }
                "requests": {
          ],
                  "name": "Web1Listener",
    "debugParams": "[\n  {\n    \"ServiceManifestName\": \"Web1Pkg\",\n    \"CodePackageName\": \"Web1\",\n    \"ContainerDebugParams\":\n    {\n      \"Entrypoint\": [\"C:\\\\remote_debugger\\\\x64\\\\msvsmon.exe\", \"/noauth\", \"/anyuser\", \"/silent\", \"/nostatus\", \"/noclrwarn\", \"/nosecuritywarn\", \"/nofirewallwarn\", \"/nowowwarn\", \"/fallbackloadremotemanagedpdbs\", \"/timeout:2147483646\"],\n      \"EnvVars\": [\"ASPNETCORE_ENVIRONMENT=Development\", \"SERVICE_PROJECT_VOLUME_PATH=C:\\\\app\", \"NUGET_PACKAGES=C:\\\\nuget1\", \"NUGET_FALLBACK_PACKAGES=C:\\\\nuget2\"],\n      \"Volumes\": [\"C:\\\\Users\\\\sander\\\\onecoremsvsmon\\\\15.0.27428.1:C:\\\\remote_debugger\", \"C:\\\\Users\\\\sander\\\\source\\\\repos\\\\MeshTest2\\\\Web1:C:\\\\app\", \"C:\\\\Users\\\\sander\\\\.nuget\\\\packages:C:\\\\nuget1\", \"C:\\\\Program Files\\\\dotnet\\\\sdk\\\\NuGetFallbackFolder:C:\\\\nuget2\"]\n    }\n  }\n]\n"
                  "port": 20006
              "name": "MeshTest2Network"
            {

Ensuring previously deployed application is removed...
Deploying application to local Service Fabric cluster...
C:\WINDOWS\sysnative\WindowsPowerShell\v1.0\powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "import-module 'C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\Scripts\PSModule\ServiceFabricHttpPSModule.dll'; Connect-SFCluster -Endpoint http://localhost:19080; .'C:\Program Files\Microsoft SDKs\Service Fabric\Tools\Mesh\Scripts\Deploy-ServiceFabricApplicationResource.ps1' -ApplicationResourcename MeshTest2 -ResourceDescriptionFile 'C:\Users\sander\source\repos\MeshTest2\MeshTest2\obj\SFApp\merged-application-MeshTest2.json'"
Deploying the application to the Service Fabric local cluster failed. See Service Fabric Explorer for additional details.
Deployment of Service Fabric application to local Service Fabric cluster failed.
========== Finished ==========

I was getting this issue as well.
This is the workaround I used...

Restart the Windows Service named Hyper-V Virtual Machine Management
Restart Docker (Right-click on the docker icon in the tool bar and click restart)
Debug/Run the cluster in Visual studio

I hope this helps.

Thanks, just tried it but didn't help.
Then I did some more spelunking in the event log and discovered that the deployment failed due to insufficient resources. I have to change cpu: 0.5 to cpu: 0.003 for the application to run succesfully. This has probably something to do with the fact that I'm trying to run this in a Parallels VM.
The error message in VS is pretty unclear though, so I opened a new work-item (#247) to improve it.

After setting my Parallels VM to allow full usage of the CPU (4 core i7), I can set the the cpu resource request in service.yaml to 0.3 maximum, which still seems a bit low.
How is the maximum CPU resource request determined in SFM?


Including optional type compiler error

Hello,
When I include an optional type in my idl I get a compiler error saying it cannot find :
fatal error: 'optional' file not found #include <optional>
Is there a specific build setting and .mk file setting I need to make this compile?

See discussion in #189

@artwyman thanks!!


Xin: Agile Development: 4 weeks

Learning Objectives
Developing HTML & CSS
VSCode:

[x] use the LiveServer extension to launch an HTML page in the browser
[x] use autocomplete to begin a new HTML document, create new tags
[x] use the HTML CSS Support and IntelliSense fo CSS class names extensions to make writing HTML & CSS more efficient

Formatting HTML & CSS

[ ] use VSCode configurations to format the code on save
[ ]  use npm run format to format all the code in the repository

Linting CSS

[ ]  use the npm run lint:css script to find mistakes in your CSS, and I can fix the mistakes

Validating HTML

[ ] I can use the npm run validate:html script to find mistakes in my CSS

Browser Developer Tools

[x] inspect the source code of a web page using the Sources tab
[x]  find any part of the web page in the Elements tab of your Dev Tools DOM inspector
[x]  find the styles for any element in the Elements tab
[x]  make temporary changes in a web page from the Elements tab to see how they will look

Working together in a group

[x] As a group, we can agree on what you are trying to build, and can clearly describe the project using a README and a repository description.
[x] As a group we can define project constraints by discussing our strengths, weaknesses and context.
[x] I can work with my group mates to agree on a communication plan to follow during development.
[x] I can develop from a backlog of features organized by priority: must-have, should-have, could-have.
[x] I can follow a development strategy to understand the code required for must-have user stories.
[x] I can create issues for user stories in my project based on the development strategy.
[x] I can claim issues from the TODO column of a project board and track my progress with the project board, develop my code locally on a separate branch, send a PR that passes CI checks and meets the requirements.
[x]  I can review a group mate's PR, and productively participate in a review of my own code.
[ ] When developing my tasks, I can write code that matches the project's Wireframe and meets my issue's Acceptance Criteria.

Week 1

[ ] I have pushed my progress to my fork of exercises repo

I Need Help With:
Nothing yet.
What went well?
Team communication, i have better understanding of how agile development works.
What went less well?
Team members' skill level differentiates, though we managed to pull it through.
Lessons Learned
Communication is the key to a successful project.
Sunday Prep Work
I did some preview on Sunday's subject.
Week 2
I Need Help With:
Nothing yet.
What went well?
I watched the video of Loruki tutorial and learned a lot of html/css.
What went less well?
I did not fully understand everything, need more time and practise to digest html and css knowledge i have learned from Loruki tutorial.
Lessons Learned
Need to study more on Html/css.
Sunday Prep Work
1.Read through introduction for the next week class.
2.Inspected HYF website for next project.
Week 3
I Need Help With:
Nothing yet.
What went well?
I did most of the html/css without help or copying inspect
What went less well?
There are a few bugs in with the css part that I am still trying to improve.
Lessons Learned
I tried to apply what I learned from the loruki rebuild, I got to practice more css and have a better understanding of css elements.
Sunday Prep Work
1.Watched video on responsive website
2.Ready to share with team on media query, css grid and css flexbox.
Week 4
I Need Help With:
Nothing yet.
What went well?
Managed to finish all the tasks for the projects.
What went less well?
Did not make javascript code work for the card slider.
Lessons Learned
Learned how different css properties affect the look of divs
Sunday Prep Work
Watched videos for  next module which is UI/UX, have a better understanding on how UI/UX change the design of websites.

Did not make javascript code work for the card slider.

You will study JavaScript in the coming modules.


Another non-x86 issue (dependency on pypemicro)

In addition to the known problem with installing cmsis-package-manager on Raspberry Pi, a new problem has appeared in version 0.30.3, caused by the dependency on pyocd-pemicro and pypemicro.  When pyocd is started, it tries to load these modules and the library unitacmp-64.so that they use.  If fails to find the library and crashes.
As far as I can see, the unitacmp-64.so library is closed source and not available for Raspi OS.  But in any case, it seems a shame to require it to be installed in order to use some other debug adapter -- in my case, the built in debugging interface of the BBC micro:bit.
Perhaps a solution would be to remove the dependency of pyocd on pyocd-pemicro, and let those who need it install the add-on by hand.   My workaround is to remove the dependency from the pyocd metadata file, like the dependency on cmsis-package-manager, before installing.  The GDB server works fine without them.
With best wishes,
-- Mike Spivey

See the "installing pyocd" section here:
https://github.com/Spivoxity/baremetal-v1/blob/master/setup/install

I was wondering if one way is for pyocd-pemicro to depend on pyocd instead of other way around? Then if one needs PEMicro support it can be installed at one go?


Let collaborators & team members (with write permissions) update issues, wiki

Collaborators and team members with write permissions should be able to:

edit issue labels
edit issue milestone
edit issue assignee
write wiki

Current permission set:

Action
Collaborators
Team members (write)
Team members (admin)

edit issue labels
no
no
yes

edit issue milestone
no
no
yes

edit issue assignee
no
no
yes

write wiki
yes
no
yes

push code
yes
yes
yes

Proposal:

Action
Collaborators
Team members (write)
Team members (admin)

edit issue labels
yes
yes
yes

edit issue milestone
yes
yes
yes

edit issue assignee
yes
yes
yes

write wiki
yes
yes
yes

push code
yes
yes
yes

@Unknwon Do you agree?

Thanks for the details!
I think Collaborators should not be consider in an individual category. After https://github.com/gogits/gogs/issues/1146 , access rights are unified to read, write, and admin.

That would be great. It seems like #1146 also contains giving edit issue labels/milestone/assignee permissions to people with write access.

Duplicate of #1146, closed.


qat_dh_generate_key() Failed to allocated memory

Hi,
I am writing an HTTPS client/server application to test all ciphers from SSLv3 to TLSv1.2, but when I enabled all ciphers ( SSL_CTX_set_cipher_list(ssl_ctx, "ALL:eNULL");), It crashed in approxmately 10,000,000 connections done everytime, but the application works fine with software encryption/decryption, I turned debug on for  QAT engine and OpenSSL, found the error message following:
ioctl_alloc_slab:876 ioctl call for mem allocation failed, ret = -1
[WARNING][qat_dh.c:299:qat_dh_generate_key()] Failed to allocate memory for pPV->pData
SSL error in qat_dh.c#300.
SSL error in ssl/statem/statem_srvr.c#1696.
SSL error in ssl/ssl_lib.c#1636.
My hardware/software info:
CPU: Intel Xeon E5-1650
RAM: 16G
Accelerator: Intel QAT 620
OS: Ubuntu 14.04 TLS (kernel 3.16.x)
driver: QAT1.7.Upstream.L.1.0.3_42.tar.gz (with USDM)
engine: QAT_Engine-0.5.29.tar.gz
OpenSSL 1.1.0f

Hi @kenlosolid,
So basically you are running out of pinned contiguous memory causing the memory allocation to fail.
Lets go through the possible causes of the failed allocation:

Memory leak in the QAT Engine. We do run stress tests to look for memory leaks, but not on every combination of ciphers so we shouldn't dismiss the possibility.
Memory leak in the application. Can you check that all your connections are getting properly cleaned up, i.e. SSL_shutdown() and SSL_free() are called on every connection, even on a failed handshake.
Memory fragmentation, The USDM memory driver allocates 2MB slabs by default, a system with lots going on may fragment memory to such an extent that it cannot get 2MB of contiguous memory to form the slab.
You are running so many parallel connections that 16GB is just not enough memory to support your load. (I would say this is unlikely as you would see the issue earlier rather than after around 10,000,000 connections).

My suggestion would be to have a look at /proc/buddyinfo when the issue occurs. This should tell you what size chunks of memory are available at that time. If there are few (or zero) larger chunks available then fragmentation is probably your issue. It is possible to reconfigure the USDM memory driver to use smaller slabs (You can go as small as 128KB for the QAT Engine) but I'd need to check whether reconfiguring with smaller slabs would have an impact on the Upstream QAT Driver which also uses USDM.
Another suggestion would be to monitor memory usage over time and see if it is increasing, if it is then it could be a memory leak, although the system is very good at caching so it's sometimes hard to know whether you are looking at a real leak. If it looks like there is a leak, then there are some debug options for the USDM which will help you look at the memory allocations remaining that aren't getting freed. I'm not familiar with them offhand, but I can find out about them if you come back and tell me your application code is cleaning up properly but it looks like it is leaking memory in the QAT Engine.
Let me know how you get on and whether you need me to find out the extra info.
Steve.

Hi @stevelinsell,
Found the root cause, it was memory leak from my application, thanks for your help.


Remove dialog is broken

Describe the bug
Deleting a dialog crashes the app.
Version
Latest on main.
Browser
All browsers.
OS
All platforms.
To Reproduce

Open a bot project that has a dialog or create a new one.
Navigate to design page and delete a dialog.
Observe the crash.

Expected behavior
Dialog to be deleted.
Screenshots

Thanks @hatpick , @liweitian is looking at this.


Add license badge and sbt requirements

@ahepburn added a license badge and a requirements section

:shipit: looks good


Introduced gulp-plumber to avoid breaking gulp streams on error.

When we break Coffeescript or Less, even if we fix the error, we had  to restart gulp due to the broken streams. Plumber handles this for us.

but is that the case here?


docimports for cupertino

Part of https://github.com/flutter/flutter/issues/150800
Cupertino is fully clean after this!

test-exempt: @docImport is code-comments only.


Update fixed seeds for 1.14.4

Recreated the fixed seeds by selecting peers across 20+ nodes that:

Keep up with updates, in this case run 1.14.3 or higher
Have NODE_NETWORK set
Are not known scanning clients
Are connectable
Are stable - I ordered nodes by time they have been connected to one of my nodes

resulting set is 120 good nodes for mainnet and 20 good nodes for testnet, serialized into chainparamsseeds.h using the contrib/ scripts.
tested on mainnet with -onlynet=ipv4 and -onlynet=ipv6 and on testnet with -onlynet=ipv4 while setting -dnsseed=0

ACK; tested on a clean VM on AWS with -dnseed=0


undefined reference to `QPDFPageDocumentHelper::QPDFPageDocumentHelper(QPDF&)'

Hello,
I am having referencing error while using qpdf library . I tried to compile one of the program given in the example invert-image. There is referncing or linking error when functions from QPDFPageDocumentHelper is used. I have installed the qpdf library and also linked qpdf library while compiling. Any insight to the issue ?
Thank you

I have solved this issue.
Its because i had installed multiple versions of qpdf on my system. So I removed qpdf completely from my system and installed latest version and its working for me .


Merging SimplyMinimal's changes

What's New

Auto rapid fire (less wear on the buttons this way too)

Up button applies thrusters

Haptic feedback and LED effects

High Score system

Automatic save and load of high score

Some modifications to certain game play elements

What's coming next

Settings screen

Enabling sound effects (configurable on/off option)

Power Ups

One of the major key differences between yours and my forked version is I've opted to use the Up button instead of the OK button for thrust.
I've asked a few people to play test both versions and almost all of them had a preference of having the DPAD up as thrusters as that's what they instinctively hit.
My long term vision for this is to add a Menu settings so that we can incorporate both of our play styles as well as adding a toggle for sound and reset the high score.

Thanks! Will review and cherry pick all the things I could. Makes sense to have the settings screen indeed. I've plans to allow for alternative game plays and they can't be the default. Cheers.

I did see you wanted to save the Up button for power ups. What types of power ups were you planning?
I've been throwing around the idea of items that periodically get dropped on the playing field with respect to the ship and other active asteroids. When a player picks up a power up, it would change the style for a short period of time.
It would be things such as:

TNT bombs = Nukes all asteroids in the area with explosion animations
Star fire = Automatically shoots bullets in a star pattern around the ship for X amount of time
Shield = Automatically deploys a shield for X amount of time. Can destroy asteroids with it but will damage the shield.
Mini Assistant Ship = A tiny assistant ship that dodges and shoots asteroids with you. S
Ghost Ship = Makes the main player's ship take no damage for X amount of time
Harden ship = Allows the ship to crush through asteroids for X amount of time. This allows the player to take full advantage of the thrusters without worry

Will think of more as they come.


[Search] Search by location from 3 letters is not worked.

Environment: Windows 10, 64-bit, Google Chrome 107.0.5304.107.
Reproducible: always.
Preconditions
1.Go to https://oos.dmytrominochkin.cloud/#
Steps to reproduce

Enter the first 3 letters of the city name in the location text field on the main page (for example, "Киї")

Actual result
A drop-down menu with a list of relevant city names does not appear when searching for 3 letters.

Expected result
A drop-down menu with a list of relevant city names appears when you enter the first 3 letters of the location name in the location field.
Labels to be added
"Bug", Priority ("low"), Severity ("low"), Type ("UI, "Functional").

Fixed

Fixed


Build for Scala 2.11.7

@sjrd Is it automatically publish to maven central? http://search.maven.org/#search|ga|1|a%3A"scalajs-compiler_2.11.7"

No. We only publish releases.


dict(skip_defaults=True) doesn't apply to nested models

from typing import List
from pydantic import BaseModel, Schema

DIGITAL_INPUT = 'digital_input'

class Payload(BaseModel):
    """Base class for all Combox payloads"""

class PointData(Payload):
    name: str = Schema(..., title='Name', min_length=1, max_length=32)
    gios_type: str = Schema(DIGITAL_INPUT, title='GIOS Type')

class PanelData(Payload):
    name: str = Schema(..., title='Name', min_length=1, max_length=32)
    points: List[PointData] = Schema(..., title='Points', min_length=1)

pd = PanelData.validate({'name': 'Dummy Panel', 'points': [{'name': 'Dummy Point', 'gios_type': DIGITAL_INPUT}]})
assert pd.dict(skip_defaults=True)['points'][0]['gios_type'] == DIGITAL_INPUT
print(pd.dict(skip_defaults=True))

{'name': 'Dummy Panel', 'points': [{'name': 'Dummy Point', 'gios_type': 'digital_input'}]}

Notice how the dict contains 'gios_type' field.

I agree that it should, PR welcome

@skewty in this case you are explicitly passing a value to PanelData.validate with 'gios_type': DIGITAL_INPUT.
You are passing the same value as the one that would be used by default, but you are passing it explicitly.
If you don't pass an explicit value, and let the model take the default one (the same value, but using the default), then Pydantic respects the skip_defaults:
from typing import List
from pydantic import BaseModel, Schema

DIGITAL_INPUT = 'digital_input'

class Payload(BaseModel):
    """Base class for all Combox payloads"""

class PointData(Payload):
    name: str = Schema(..., title='Name', min_length=1, max_length=32)
    gios_type: str = Schema(DIGITAL_INPUT, title='GIOS Type')

class PanelData(Payload):
    name: str = Schema(..., title='Name', min_length=1, max_length=32)
    points: List[PointData] = Schema(..., title='Points', min_length=1)

pd = PanelData.validate({'name': 'Dummy Panel', 'points': [{'name': 'Dummy Point'}]})
assert 'gios_type' not in pd.dict(skip_defaults=True)['points'][0]
print(pd.dict(skip_defaults=True))

I consider this behavior (the current behavior) a feature (useful), for example in this example:
Let's say you have this model:
class Person(BaseModel):
    name: str
    pet: str = None

You have an item in your DB that contains:
{"name": "alice", "pet": "orion"}

Now let's say you receive an update to that item with:
{"name": "bob"}

As pet is not set, you can keep the current value of "orion", but you can update the name to "bob". Using skip_defaults skips the non-existing "pet" that would be set to None by default.
Now in your DB:
{"name": "bob", "pet": "orion"}

Then, if you receive an update to the same item with:
{"pet": None}

You could update your item in the DB, marking the pet as dead (None).
Now in your DB:
{"name": "bob", "pet": None}

In this case, Pydantic would be smart enough to know that pet was intentionally and explicitly set to None, even when that was the default value.
It's able to distinguish between values taken by default and values set, even if the value is the same.

@tiangolo thank you for taking the time to make such a complete reply and sorry for taking so long to get back to this.

I consider this behavior (the current behavior) a feature (useful), for example in this example:
...
In this case, Pydantic would be smart enough to know that pet was intentionally and explicitly set to None, even when that was the default value.
It's able to distinguish between values taken by default and values set, even if the value is the same.

To me anyway, it is surprising that " It's able to distinguish between values taken by default and values set, even if the value is the same."  To me, I see the feature more as a skip_unset_defaults=True rather than a skip_defaults=True because you are not really skipping default values as the parameter name suggests (to me).
That said, would an alternate parameter name be acceptable to accomplish my version be acceptable?  Or perhaps some sort of additional parameter like strict=True which I would set to False to accomplish what I was looking for when I created this issue?

I realize changing how skip_defaults parameter works would be a breaking change and such a change would be best done before v1.0.  So this issue / discussion is coming up at a good time :)

I'm not entirely clear what change/new feature you would like?

@samuelcolvin I think the request is to change the skip_defaults argument of BaseModel.dict to exclude values if they are equal to the default value (whether or not it was set), and to have a new keyword argument (called skip_unset_defaults; I would propose just skip_unset) that implements the existing functionality.
For what it's worth, I also found the skip_defaults behavior surprising at first; skip_unset might have been a clearer name, especially considering most other libraries wouldn't even be capable of supporting the skip_defaults feature, so I think most people wouldn't guess that's how it works. Separately, I feel like skipping defaults (whether or not they were set) is a relatively common feature request. (For example, it would make it a lot easier to skip nulls in many cases).
At this point I'm familiar and comfortable with the existing implementation, so I'm fine either way, but I can see some merits.

skip_defaults and skip_unset sounds reasonable to me.
One advantage is that there's no more logic required on parsing so performance (of raw parsing) would be unchanged.
My only concern is that skip_defaults has new behaviour but has a name that shadows a different old feature which now has a new name. This will cause a lot of headaches when migrating to v1 since tests and setup won't fail immediately.
One solution would be to completely change the names to: exclude_defaults and exclude_unset. That way there can be no confusion with the names and it's more consistent with the exclude argument at the expensive for 3 more characters and one more syllable.
What do you think?

I like the consistency with exclude.

I think it's worthwhile. I'll try to get to this this weekend if no one else wants to handle it sooner.

might require logic shared to #898 to get the default values.


plot_3d in Array.py is not working in documentation build.

Description of the feature
When sphinx creates the thumbnail it fails. The script in standalone works.
Steps for implementing the feature
No response
Useful links and references
No response

Closed by #4984


Tweak config file to allow easy toggling of relayers

Summary of Bug
I discussed this with Cian in the past and this https://github.com/cosmos/ibc-go/actions/runs/5407017716 brought it to my attention again. The failure in the e2e workflow for hermes stems from the fact that the config file holds configuration only for rly and the tag that the run is attempting to run is 'latest' instead of '1.4.0'.
To make it easier to switch between relayers we could have a single environment variable (i.e ACTIVE_RELAYER) that we can use to switch between them, a rough sketch up thought up in the past was:
relayers:
  activeRelayer:  # ACTIVE_RELAYER
  configurations:
  - relayer: hermes
    image: ghcr.io/informalsystems/hermes:1.4.0
    tag: 1.4.0
  - relayer: rly
    id: rly # override with RELAYER_TYPE
    image: damiannolan/rly # override with RELAYER_IMAGE
    tag: latest # override with RELAYER_TAG

this way, we should be able to easily switch between them using a single environment variable.

For Admin Use

[ ] Not duplicate issue
[ ] Appropriate labels applied
[ ] Appropriate contributors tagged/assigned

I think this will actually be able to simplify a lot of our workflows. Using the changes here as an example. Instead of doing any conditional logic from within the workflow itself, we could simply create a config file with the different relayers we run tests with, then we would just need to configure which relayer should be active for the test.
The config file can be specified with the env var E2E_CONFIG_PATH.
Another thing to note, the number of arguments that need to be passed to the e2e workflow would be reduced quite a bit. I think we can remove relayer-image, relayer-tag, relayer-type, chain-image and chain-binary. As these values would all be specified in the config files.


UHF-8636: Debug page item for search api index

See https://github.com/City-of-Helsinki/drupal-module-helfi-api-base/pull/121 for test instructions.

Codecov Report

Merging #564 (e5e12b6) into main (7e25a55) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head e5e12b6 differs from pull request most recent head 8598e02. Consider uploading reports for the commit 8598e02 to get more accurate results

@@            Coverage Diff            @@
##               main     #564   +/-   ##
=========================================
  Coverage     12.74%   12.74%
  Complexity      236      236
=========================================
  Files            30       30
  Lines           902      902
=========================================
  Hits            115      115
  Misses          787      787

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


⚠ Bofrost.at has degraded performance

In bb385ea, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2187 ms

Resolved: Bofrost.at performance has improved in d64f7cf after 6 minutes.


How can I extract the COOT features for my chinese caption datasets？

thanks advance！

how can i get the pretrained model like "provided_models/yc2_100m_coot.pth" for my chinese caption datasets? I try to extract the youcook2 coot features without "provided_models/yc2_100m_coot.pth" and the caption result worse than the original MART model。

The pretrained models only understand english, for chinese you will have to train everything from scratch: Train retrieval, extract features, train captioning.

The pretrained models only understand english, for chinese you will have to train everything from scratch: Train retrieval, extract features, train captioning.

Thank you very much for your reply! What you mean is that the  "provided_models/yc2_100m_coot.pth" is generated by train retrieval？

Yes, that is correct


The utteranc comments component is not displayed completely

I add a file custome_comments.html in layout/partials directory in my project, with the content below:
<script
    type="text/javascript"
    src="https://utteranc.es/client.js"
    repo="zrcoder/leetcode"
    issue-term="pathname"
    theme="github-light"
    crossorigin="anonymous"
    async>
</script>

the utteranc comments component shows on my pages, but not completely displayed when the content exceeds the screen.
reference: utteranc

May be utteranc's bug, I use giscus instead and it works well.
so I will close this issue.

May be utteranc's bug, I use giscus instead and it works well. so I will close this issue.

Can you share your process for Giscus? I can't seem to get it to work.

May be utteranc's bug, I use giscus instead and it works well. so I will close this issue.

Can you share your process for Giscus? I can't seem to get it to work.

I used relearn theme 1.5 years ago in this project: https://github.com/zrcoder/leetcode, now I use another theme and forget the detail of discus using of relearn,  the commit diff maybe helpful (see layouts/partials/custom-comments.html): https://github.com/zrcoder/leetcode/commit/a594d0917d31fbffeab5172761ee1e22ca75af75#diff-5210641576dd8db535d63aed8df25ffefe22b7cdd19e30a5e913f47c0d39a9c9


Python bindings

closes #2
closes #1

indeed XDG does not seem right here, thats just the old path for the binary, a shared library probably belongs somewhere else...
you can define the path to it to be whatever you like in mycroft.conf btw, so just pick whatever is appropriate!

could we bundle the .so library in the plugin maybe? for that we need to create one for each architecture right? arm and x86

Bundle the SO should be possible as the libstdc++ is statistically linked within the library, however then I would make sure the architecture abbreviation is added to the link name and polled by the plugin to laod the correct one. Similar as in the old days with the precise binaries.
I am not a huge fan of it in general and in this case it also looks like the development of the library is going in a very rapid way. So you will always be behind. Or indeed like with the precise binary you download the library at startup to make sure it uses the latest and greatest.


update land-related collections in HISTORY.rc.tmpl to match M21C file specs

The primary objective of the present PR is to bring the file specs changes from M21C into "develop". The corresponding (although somewhat outdated) M21C PR is https://github.com/GEOS-ESM/GEOSgcm_App/pull/356 (merged on 8 Dec 2022).
Labeled as 0-diff under the assumption that tests have their own HISTORY.rc files.
These changes still need to be propagated into the custom HISTORY.rc templates to be reflected in GEOS products.  The key target is FP.  For FP, however, the file specs change has to be mid-stream, which creates its own complications.  Nevertheless, it is critical that FP be updated sooner rather than later.  The changes implemented in this PR and the related PR below include bug fixes (in land budget variable meaning) and improved user friendliness of several land-related variable shortnames and longnames.
Related PRs:
https://github.com/GEOS-ESM/GEOSgcm_GridComp/pull/1032
cc: @rgelaro @rlucches @sdrabenh @biljanaorescanin

Learned something new. Okay, so HISTORY.rc.tmpl is sort of a "Ops-like" HISTORY but not the "real" history used.
So maybe eventually the changes from @gmao-rreichle here can be ported over to the timestamp-histories when @rlucches, et al are ready.


Add error message for failure to install after choosing not to trust repository

PR Summary
When a user is prompted as to whether they trust a repository or not, if the user selects not to trust the repository, they receive an error message that "Package '' with requested version range '' could not be installed as it was not found in any registered repositories".  This is incorrect information and should actually state that the repository is not trusted and that is why the package failed to install.  This PR adds the correct error message if the user chooses not to trust a repo.
PR Context
Resolves #687
PR Checklist

[x] PR has a meaningful title

Use the present tense and imperative mood when describing your changes

[x] Summarized changes
[x] Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header
[x] This PR is ready to merge and is not Work in Progress.

If the PR is work in progress, please add the prefix WIP: or [ WIP ] to the beginning of the title (the WIP bot will keep its status check at Pending while the prefix is present) and remove the prefix when the PR is ready.

Breaking changes

[x] None
OR
[ ] Documentation needed

[ ] Issue filed:

User-facing changes

[x] Not Applicable
OR
[ ] Documentation needed

[ ] Issue filed:

Testing - New and feature

[x] N/A or can only be tested interactively
OR
[ ] Make sure you've added a new test if existing tests do not effectively test the code changed

Tooling

[x] I have considered the user experience from a tooling perspective and don't believe tooling will be impacted.
OR
[ ] I have considered the user experience from a tooling perspective and enumerated concerns in the summary.

This PR is ready for review


head: illegal line count on MacOS

A error from head appears with first use:
$ rgr foo -R bar
ACTUAL CONTENT WILL BE REPLACED IN YOUR FILESYSTEM.
If you'd like to do a dry-run instead, cancel the program and run with '-r' instead of '-R'.
Are you sure you'd like to continue? (Y or y to continue; any other key or just Enter to exit) y
head: illegal line count -- -9

real	0m0.037s
user	0m0.009s
sys	0m0.030s

This is using ripgrep v13 on MacOS 13.5.2.

@wodow, does rg foo -r bar work for you?

Yes, the dry run feature works ok.
I will try to debug by stepping through the script when next at a terminal.

Before running the script, run set -x to turn on terminal command echo. When done, run set +x to turn it back off. Copy and paste the results so I can see which command is failing.

I'm not sure set -x is sufficient. It doesn't reveal anything new:
$ set -x
$ rgr foo -R bar
+ rgr foo -R bar
ACTUAL CONTENT WILL BE REPLACED IN YOUR FILESYSTEM.
If you'd like to do a dry-run instead, cancel the program and run with '-r' instead of '-R'.
Are you sure you'd like to continue? (Y or y to continue; any other key or just Enter to exit) y
head: illegal line count -- -9

real	0m0.031s
user	0m0.019s
sys	0m0.065s

still not tried stepping through -- will get to it

Is the problem as simple as POSIX standard head doesn't take negative numbers? See e.g. https://stackoverflow.com/a/60336903

On MacOS, GNU head is available from Homebrew, and by default installs as ghead. This accepts a negative num param, so replacing head in the scriptwithghead` fixes the problem.


clean common dependency

This PR cleans the dependencies in heron/common component with the following changes:

Removed the google guava dependency.
Move all test related util classes into a separate directory and create a separate build target for it. Clean the mockito and junit dependencies.
Move the HttpJsonClient into K8s scheduler, to clean the fastxml and spi dependencies.
Add comments into the heron/common BUILD file for important components

LGTM. By the way, I just checked heron-api.jar and noticed Google Guava shaded inside of it. We don't want to do that either.

@objmagic Once this PR is merged, the heron-api.jar won't have Google Guava any more. Notice I removed the guava dependency from common's basics-java target

@nlu90 I'm wrong. heron-storm.jar still has guava dependency

The guava comes from heron-spi component. And most of the case are using the annotation @VisableForTesting.
Given it comes from a separate component and the current common component is blocking new production releases, I suggest we do a separate cleaning for the heron-spi component in a later PR.

Sure. Let's merge this one now.

Nice refactor @nlu90. Mixing the test helpers with the other code bugged me too.
Other changes I'd like for us to consider: 1.) removing the util package and pulling it's current sub-packages up to c.t.h.common. util is non-descriptive and unnecessary here. 2.) Removing misc (which is worse than util IMO) and finding it's current inhabitants better homes.


Validator not correctly evaluated with InferRequestType

Hello 👋
Thx for this awesome lib and the clean work 💪
I encounter an issue with the InferRequestType.
I got this validator :

It's used in the controller like this:

The router declares the route like this :

The generated API looks like this :

But when I use the InferRequestType, I see that the totalWithTax is declared as string | number 🤔

Do you know what I could have done wrong or if there is an issue in the lib?
Right now, this is a blocker for me 😅

We can also see that the id property is also declared as string | number, which is not the case 🤔

Yeah this is expected. Try sending a string or a number to your controller, and both should work. Here’s the reasoning behind this: https://vinejs.dev/docs/html_forms_and_surprises#number-input-results-in-a-string-value

Ok thx for the explanation 👍


micro: Default launches every training config

@frodre not sure if you have something like this already? Feel free to close if so.

I updated to the dense, but this will fit nicely in #1789, I think.  I'd like to get one full regression in before switching to the new dataset, so I don't think we need to close this PR.  Maybe this PR can also add in deletions of the precpd cloud water patch in.

Merged into the PR Remove cron.py and add suffix to default.py

I'd like to get one full regression in before switching to the new dataset, so I don't think we need to close this PR.

That's a good idea. I may lower the number of epochs here to keep the number of steps similar to the v3 data. I'm getting impatient waiting for this to finish!

https://wandb.ai/ai2cm/microphysics-emulation/runs/2g4snhue/overview?workspace=user-nbrenowitz


ZOSVPC - 2871 Implementation of giving an option of creating z/os vsi with a specified profile size for standard variation.

Give the option of creating a z/OS VSI
with a specified profile size
validate the input profile size to ensure that z/OS VSI will IPL successfully - that is, >= 2 vCPUS and >= 16GB RAM. For example, the following existing IBM Z profiles will NOT work:
bz2-1x4
bz2-2x8
cz2-2x4
cz2-4x8
Support the profile size option for standard variations

@Nikhil22February - I this is ok now, but I noticed that you removed mz2o-2x16 from the "contains()" check. This means that any internal account with this special profile enabled will not pass the check and so the user would need to manually update the check for this case. That may be OK... I'm just pointing it out. Another option might be to leave this special profile in the contains check but just not include it in the description or error messages.

Thank you for pointing this out. I have added the profile size mz2o-2x16 in contains check of machine_type variable.


Yarn or NPM?

Question: yarn or npm ?
I see a yarn.lock file but the readme mentions doing npm install.
No preference here, just want to keep consistent.

Yarn should be the standard ideally.
On Wed, 26 Jun 2019 at 04:52, Jim Karg<EMAIL_ADDRESS>wrote:

Question: yarn or npm ?
I see a yarn.lock file but the readme mentions doing npm installs.
No preference here, just want to keep consistent.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/milesburton/teslacam/issues/14?email_source=notifications&email_token=AAJGHM7UIHPXACYXJIS7DJDP4LRYZA5CNFSM4H3OGRN2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4G3WNZRA,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJGHMYCL3DRY4GU5RVLZ7LP4LRYZANCNFSM4H3OGRNQ
.

Yarn it is!


Linux: Fix links in VFS API

On Linux, absolute URLs to Kudu resources cannot be based on
request.RequestUri, as it's altered by the way the request is handed off within
the worker. This fixes the absolute URL links generated by the VFS API.
No changes on Windows; exact same calls are made.

Also fixes redirects, like when you browse to /api/vfs without a trailing slash and it redirects you to /api/vfs/

Can anyone take a look at this real quick? :eyes:

Looks good.


Bump rust-jsonrpc to 0.14

It contains a few fixes. I'm not sure yet whether to do it before the release.

Looks like we'll have to wait for the next release. See https://gnusha.org/bitcoin-rust/2022-12-07.log. Removing the milestone.


ARROW-145 Update benchmark test to include Embedded Documents

How did the benchmark go from taking 5 minutes to 1hour? Are we planning to address that?


chore: replace schemas.xxx by substra.schemas.xxx

Related issue
Remove from substra import schemas and replace schemas.xxx by substra.schemas.xxx
Summary
Notes
Please check if the PR fulfills these requirements

[ ] If the feature has an impact on the user experience, the changelog has been updated
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)
[ ] The commit message follows the conventional commit specification

/e2e

End to end tests: :hourglass_flowing_sand: STARTING


It's an error to not have a return type right?

If I remember correctly we decided to explicitly have a return type instead of defaulting to Void.
I don't know if we have done that or not, but I found in canister_method/query_or_update/mod.rs in build_return_type that we do void on none instead of error on none

Confirmed https://github.com/demergent-labs/kybra/issues/123


Unexpected Memory Usage and Latency with PP

When running the examples/llama/pippy_llama.py script on two A800 GPUs, each rank is observed to consume the full model_size in memory, rather than sharing the weights across both GPUs. Additionally, the latency performance differs from expected values.

Rank: 0 Forward Latency: 0.7621021270751953s Peak memory: 26.341GiB
Rank: 1 Forward Latency: 0.8798844814300537s Peak memory: 26.204GiB

For comparison, when utilizing a single GPU, the performance metrics are as follows:

Rank: 0 Forward Latency: 0.45336079597473145s Peak memory: 26.252GiB

These results are measured by following codes:
torch.cuda.reset_peak_memory_stats(device)
start = time.time()

if rank == 0:
    args = inputs["input_ids"]
else:
    args = None
output = schedule.step(args)

end = time.time()
peak_mem = torch.cuda.max_memory_allocated(device)

Upon trying the initialization settings from examples/cpu_init/gpt2_cpu_init.py, a RuntimeError occurs when using the stage on the CUDA device created from a pipeline on the CPU device:

RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

So I wonder if it's normal for PP with this kind of memory cunsumption and latency?
PS: The issue persists across different versions of the software:

the latest torchpippy installed from the source and torch==2.4.0.dev.20240411
torchpippy==0.2.0 from pip and torch==2.2.2

Hi, on latency, if you measure the first iteration, it will include the distributed initialization time (e.g. NCCL communicator initialization). You can try give it some warm-up runs and then measure the latency.

On examples/cpu_init/gpt2_cpu_init.py, I couldn't repro the error, whether with 2 ranks or 4 ranks.
Are you using the llama model with cpu init?

On memory consumption, it is expected to be high if you initialize the model on real device.
We are actively developing technique to support creating initial model on meta device:
with torch.device("meta"):
    model = Model()

pipe = pipeline(model, ...)
stage_mod = pipe.get_stage_module(stage_index)
stage_mod.load_state_dict(torch.load(PATH))

Thanks for your reply! I've confirmed that latency measured with several warm up runs is normal.

On examples/cpu_init/gpt2_cpu_init.py, I couldn't repro the error, whether with 2 ranks or 4 ranks. Are you using the llama model with cpu init?

Yes, since I noticed the issue, I'm using examples/llama/pippy_llama.py with the cpu_init method, however it seems that some OPs(maybe index?) do not work properly using the stage on the CUDA device created from a pipeline on the CPU device.


Add TextMsg logging

CenterPrintAll serverside function now actually works, as well as some native engine prints (unknown command, some other commands etc.)
also adds a game-compatible bitbuf classes (read and write)

Wait, does that mean we can now hook chat messages on server?
E.g. have a mod listen for keywords like !skip and execute a corresponding command (vote skipping map)


fix: exclude setting to be considered for editable packages as well

Description
fixes #1680

Coverage decreased (-61.1%) to 11.652% when pulling a649c66be8423da4891a475af546a2e5b6b23320 on jnoortheen:fix-1680-exclude-editable-packages into a71fe82596e2f36f7424e2f8376c5d91a8288c51 on Miserlou:master.

Coverage decreased (-61.1%) to 11.652% when pulling a649c66be8423da4891a475af546a2e5b6b23320 on jnoortheen:fix-1680-exclude-editable-packages into a71fe82596e2f36f7424e2f8376c5d91a8288c51 on Miserlou:master.

Coverage decreased (-61.1%) to 11.652% when pulling a649c66be8423da4891a475af546a2e5b6b23320 on jnoortheen:fix-1680-exclude-editable-packages into a71fe82596e2f36f7424e2f8376c5d91a8288c51 on Miserlou:master.

Coverage decreased (-61.1%) to 11.652% when pulling a649c66be8423da4891a475af546a2e5b6b23320 on jnoortheen:fix-1680-exclude-editable-packages into a71fe82596e2f36f7424e2f8376c5d91a8288c51 on Miserlou:master.

@jnoortheen Can you check the test failures, please?

merged latest changes.

I have moved the assignment to the outer block.

@jneves Looks like all the tests are passing now.

Is there anything preventing this from being merged at this point?

@jneves is there something preventing this from being merged?


add support for avx512 and allow users to choose the Stim architecture

Hi!
I started implementing the AVX512F instructions for code vectorization, which is more recent and is available on newer AMD Zen4 and on some Intel processors. This can give up to 4% improved performance over AVX2 version on my very limited testing.
Also, I added in the Python binding the possibility to the user to specify the architecture he/she wants to use with the STIM_ARCHITECTURE environment variable. The default behavior is still SSE2 because of https://github.com/quantumlib/Stim/issues/432.
Below some basic benchmark (1% improvement in this case):
(env_dev) moise@moise-HP-EliteBook-840:~/Program/Stim/examples$ export STIM_ARCH=avx512 && time python surface_code.py
real	0m32.448s
user	0m26.335s
sys	0m6.786s

(env_dev) moise@moise-HP-EliteBook-840:~/Program/Stim/examples$ export STIM_ARCH=avx2 && time python surface_code.py
real	0m32.787s
user	0m26.680s
sys	0m6.782s

(env_dev) moise@moise-HP-EliteBook-840:~/Program/Stim/examples$ export STIM_ARCH=sse2 && time python surface_code.py
real	0m35.860s
user	0m29.884s
sys	0m6.656s

with the code:
(env_dev) moise@moise-HP-EliteBook-840:~/Program/Stim/examples$ cat surface_code.py
import stim

c = stim.Circuit.generated(
"surface_code:rotated_memory_z",
rounds=20,
distance=40,
after_clifford_depolarization=0.001,
after_reset_flip_probability=0.001,
before_measure_flip_probability=0.001,
before_round_data_depolarization=0.001)

sampler = c.compile_sampler()
samples = sampler.sample(300000)

TODO: correct the function inplace_transpose_block_pass_64_and_128_and_256 line 234 in [src/stim/mem/simd_word_512_avx512.h](https://github.com/quantumlib/Stim/compare/main...MoiseRousseau:Stim:Moise/arch_avx512?expand=1#diff-75e1a1cb88702d8bf8b9f964584cababa9c07f6868db23d08a5b1015b3410ae3). However, it seems this function is not called in the code..
Let me know what you think,
Moise

Hi @Strilanc !
I will have a look to the unit tests for 512 bits word.
Regarding the crash, I cannot reproduce it on colab with stim version 1.10.0 (published October 25th, so before the fix on November 19th 2022).  On a new and fresh notebook, I enter the following:
!pip install stim==1.10.0
import stim
stim.Circuit().shortest_graphlike_error()

which returns:
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting stim==1.10.0
  Downloading stim-1.10.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.7/4.7 MB 993.6 kB/s eta 0:00:00
Requirement already satisfied: numpy in /usr/local/lib/python3.9/dist-packages (from stim==1.10.0) (1.22.4)
Installing collected packages: stim
Successfully installed stim-1.10.0

---------------------------------------------------------------------------

ValueError                                Traceback (most recent call last)

[<ipython-input-1-5e5a8bf45752>](https://localhost:8080/#) in <cell line: 3>()
      1 get_ipython().system('pip install stim==1.10.0')
      2 import stim
----> 3 stim.Circuit().shortest_graphlike_error()

ValueError: Failed to find any graphlike logical errors.

Do you still have the crash ?
Moise

Even if it doesn't reproduce on collab anymore... what if it still happens on other people's machines? That's the terrifying part.

Yeah agree, but I was asking to try have a simple look on what could happen. Because what if this crash also occurs with the AVX512 implementation ?

@MoiseRousseau Even if the crash occurs with avx512, we can still add the implementation and turn it on later.

I'm going to close this as stale. Still open to something like this being added.


microsoft sqlsrv driver

Laravel Version: 5.4.#
PHP Version: 7.0
Database Driver & Version:

Description:
Microsoft has released official driver for php developers and linux distributions.
Current version of database connector replaces "sqlsrv" wtih "dblib" and does not have "sqlsrv" connection string so we can not use "sqlsrv" as database driver. Please change this behavior in next version of the framework.
Thanks
Steps To Reproduce:

if (in_array('dblib', $this->getAvailableDrivers())) {
    return $this->getDblibDsn($config);
} elseif ($this->prefersOdbc($config)) {
    return $this->getOdbcDsn($config);
} else {
    return $this->getSqlSrvDsn($config);
}

As you can see sqlsrv is being used when dblib isn't available, what's your suggestion here, change the order of preferrence?

Duplicate of previous issue.

Feel free to send a PR.


[AWS Lambda] SyntaxError: Unexpected end of JSON input

Hey there! 👋
First off, thanks for all the work you're doing for us, @jaydenseric! 🙏
So, I'm trying to use apollo-upload-server on AWS Lambda using Serverless and aws-serverless-express.
It works fine when there's no file being uploaded, but when a file is uploaded, I get the following error:
SyntaxError: Unexpected end of JSON input
at Object.parse (native)
at Busboy.parser.on (/var/task/node_modules/apollo-upload-server/lib/middleware.js:66:29)
at emitMany (events.js:127:13)
at Busboy.emit (events.js:201:7)
at Busboy.emit (/var/task/node_modules/busboy/lib/main.js:38:33)
at PartStream.onEnd (/var/task/node_modules/busboy/lib/types/multipart.js:261:15)
at emitNone (events.js:91:20)
at PartStream.emit (events.js:185:7)
at Dicer.onPart (/var/task/node_modules/busboy/lib/types/multipart.js:120:13)
at emitOne (events.js:96:13)
at Dicer.emit (events.js:188:7)
at Dicer.emit (/var/task/node_modules/dicer/lib/Dicer.js:80:35)
at Dicer._oninfo (/var/task/node_modules/dicer/lib/Dicer.js:181:12)
at SBMH.<anonymous> (/var/task/node_modules/dicer/lib/Dicer.js:127:10)
at emitMany (events.js:127:13)
at SBMH.emit (events.js:201:7)

The request payload from apollo-upload-client looks like this:
------WebKitFormBoundarymnT1gqXGJmeSwDDv
Content-Disposition: form-data; name="operations"

{"operationName":"ShareMutation","variables":{"state":"SHARE","text":"Hey!","image":null,"childPosts":[{"accountId":"cjekhdqfl2m7d0104fh88d8r8","state":"SHARE","contentSameAsParentPost":true}]},"query":"mutation ShareMutation($state: POST_STATE!, $text: String, $image: Upload, $childPosts: [ChildPostInput!]) {\n  share(state: $state, text: $text, image: $image, childPosts: $childPosts) {\n    id\n    state\n    text\n    image {\n      id\n      size\n      contentType\n      url\n      __typename\n    }\n    errors {\n      id\n      code\n      name\n      message\n      __typename\n    }\n    childPosts {\n      id\n      account {\n        id\n        __typename\n      }\n      state\n      contentSameAsParentPost\n      text\n      image {\n        id\n        size\n        contentType\n        url\n        __typename\n      }\n      errors {\n        id\n        code\n        name\n        message\n        __typename\n      }\n      __typename\n    }\n    __typename\n  }\n}\n"}
------WebKitFormBoundarymnT1gqXGJmeSwDDv
Content-Disposition: form-data; name="map"

{"0":["variables.image"]}
------WebKitFormBoundarymnT1gqXGJmeSwDDv
Content-Disposition: form-data; name="0"; filename="blob"
Content-Type: image/png

------WebKitFormBoundarymnT1gqXGJmeSwDDv--

I'm also setting multipart/form-data as a Binary Media Type in both AWS API Gateway and aws-serverless-express.
I'm using the latest versions of apollo-upload-server and apollo-upload-client.
Thanks for your time! 😃

Thanks for the thanks 😊
It looks like AWS API Gateway does not work well with multipart requests: https://stackoverflow.com/questions/41557109/aws-api-gateway-form-data-support
Perhaps the multipart stream is cut off in the middle of JSON.
I am not really familiar with AWS so I'm not sure what your best option is, but troubleshooting is something beyond the scope of this package as it must send multipart requests.
Feel free to discuss this in the #uploads channel of the Apollo Slack.


ovn_exporter seems to ignore command line arguments

I'm unable to tell ovn_exporter to use a different path for remote sockets:
/opt/ovn-exporter/ovn-exporter -database.northbound.socket.remote unix:/run/ovn/ovnnb_db.sock -log.level debug
INFO[0000] Starting ovn-exporter (version=1.0.0, branch=master, revision=v1.0.0-2-g64b08bc)  source="ovn_exporter.go:1083"
INFO[0000] Build context (go=go1.10.2, user=greenpau, date=2018-09-22)  source="ovn_exporter.go:1084"
DEBU[0000] unknown: NewExporter() calls Connect()        source="ovn_exporter.go:288"
ERRO[0000] ovn-exporter failed to init properly: [failed connecting to OVN_Northbound via unix:/run/openvswitch/ovnnb_db.sock: dial unix /run/openvswitch/ovnnb_db.sock: connect: no such file or directory failed connecting to OVN_Southbound via unix:/run/openvswitch/ovnsb_db.sock: dial unix /run/openvswitch/ovnsb_db.sock: connect: no such file or directory]  source="ovn_exporter.go:1088"
INFO[0000] OVS system-id: unknown                        source="ovn_exporter.go:1126"
INFO[0000] Listening on :9476                            source="ovn_exporter.go:1141"

@mnasiadka , try using v1.0.1.
Please review the code starting from here https://github.com/greenpau/ovn_exporter/blob/80d5c8865e1a3b229758074582e2f243106814a5/cmd/ovn_exporter/main.go#L139 and try finding where the break is.

@mnasiadka , might need to look at https://github.com/greenpau/ovsdb too.

This is now a part of v1.0.2.


Doesn't appear in Menu Editor

I have installed the extension, and it doesn't appear in the Xcode menu editor.
I'm using Xcode 13.1, and I also have installed Xcode 13.3
I've tried several things such as the ones described here:

https://stackoverflow.com/a/67679577/3708095
https://github.com/nicklockwood/SwiftFormat/issues/494
https://stackoverflow.com/a/58616132/3708095

But nothing worked, maybe it has something to do with:
https://stackoverflow.com/a/39472470/3708095
??

Having the same issue. Hope someone can figure this out soon. I'd love to use this extension!
Have you considered submitting it to the app store as an Xcode Extension?

I tried uninstalling, closing Xcode, opening the app again, re-adding the extension.... still nothing.
I'm on Xcode 14 beta 2 and macOS 13.0 beta 2.

Signing and notarizing... never done this before, hope it works!

@jdev7, @AnthonyMDev, @NachoSoto I've re-signed and notarized the app, it should work now! Let me know if it's still broken. Download zip

It now  worked for me :)


[WIP] Feature/godot visualization

Implementation of SOM visualization using Godot.

@adamreichold Just some tinkering to get familiar with Godot for visualization. Not sure if I will really incude this in any release. Butstill eager to see the SOM "fold" into a 3D scatter plot...
Good to see how easily independently developed "C-compatible" stuff can be integrated.


Meta and Tag Assignment in "Add Puzzle" dialog

Minor: Sometimes the meta is known at creation time.

I'll add this when I implement this modal in the react rewrite (#251 )


Devcontainer port forwarding mismatch on endpoints

Is there an existing issue for this?

[x] I have searched the existing issues

Describe the bug
If running inside a Devcontainer, the OpenAPI/Scalar Endpoints of my 2 APIs do not match the port assigned by Aspire. Outside of a Devcontainer it works fine. As a result, if i click the links, it will not load the page. Please see:

It suggests the endpoints are live on http://localhost:5201/scalar/v1 and http://localhost:5202/scalar/v2, but in reality, they are live on the randomly assigned ports, in this case http://localhost:38207/scalar/v1 and http://localhost:46205/scalar/v2
I've taken a look at #6873 but i do have a user and workspace settings.json, so doesn't seem entirely related. @mitchdenny
Expected Behavior
Should have a link in the Aspire portal pointing towards the working URLs with the randomly assigned ports.
Steps To Reproduce
Copy https://github.com/erwinkramer/bank-api?tab=readme-ov-file#bank-api and run the Devcontainer as configured. Then click on the any of the endpoints inside of the Aspire dashboard.
Exceptions (if any)
No response
.NET Version info
This is inside of the Devcontainer:
.NET SDK:
Version:           9.0.100
Commit:            59db016f11
Workload version:  9.0.100-manifests.3068a692
MSBuild version:   17.12.7+5b8665660
Runtime Environment:
OS Name:     debian
OS Version:  12
OS Platform: Linux
RID:         linux-x64
Base Path:   /usr/share/dotnet/sdk/9.0.100/
.NET workloads installed:
There are no installed workloads to display.
Configured to use loose manifests when installing new manifests.
Host:
Version:      9.0.0
Architecture: x64
Commit:       9d5a6a9aa4
.NET SDKs installed:
9.0.100 [/usr/share/dotnet/sdk]
.NET runtimes installed:
Microsoft.AspNetCore.App 8.0.11 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 8.0.11 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 9.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
Anything else?
No response

That's the proxy port. To get a better understanding of how networking works see https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/networking-overview. Those proxy ports come from a different process which is why it's hard to find them when using a devcontainer without @mitchdenny's changes.


Install fails with Postgres 9.5 beta 2

I get the following error when attempting to install with 9.5 beta 2
src/multicorn.c: In function ‘multicornGetForeignPlan’:
src/multicorn.c:354:9: error: too few arguments to function ‘make_foreignscan’
  return make_foreignscan(tlist,
         ^
In file included from src/multicorn.c:13:0:
/usr/include/postgresql/9.5/server/optimizer/planmain.h:46:21: note: declared here
 extern ForeignScan *make_foreignscan(List *qptlist, List *qpqual,
                     ^
src/multicorn.c:363:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
<builtin>: recipe for target 'src/multicorn.o' failed
make: *** [src/multicorn.o] Error 1
ERROR: command returned 2: make PG_CONFIG=/usr/bin/pg_config all

Worked fine with beta 1

Thanks, fixed in 672625e8f18c23a8aea3f938043ca04f6995c7e1

Hi, will there be a new release to get the 9.5 fix out? I'd like to update the Debian packages.

There was a release on the 28th, but I just realized that the tag was created here as "1.3.0" instead of "v1.3.0".

Oh right, that's why Debian's look-for-new-version magic didn't find it. Thanks for fixing the tag!


Conditional sampling on multiple features

Hello,
How can the sampling operation be conditioned on more than one features?

Hi, sorry for the late reply. We have an experimental imputation interface in the branch imputation_interface which features an impute function in the interface, where you can conditional each sample on individual values.
https://github.com/kathrinse/be_great/tree/imputation_interface
Hope this helps
Tobias

Hi, can the impute function be used to recreate figure 8 from  the paper -


Beat_a_mole

PR Description 📜
Fixes # <#3512>
I created a game "Beat a mole". The Beat-a-Mole game is a classic arcade game implemented using HTML, CSS, and JavaScript. Players must hit moles that randomly pop up on the screen but if you hit the plant the game will be over. The game features a simple and intuitive user interface with responsive design elements.

Mark the task you have completed ✅

[ x ] I follow CONTRIBUTING GUIDELINE & CODE OF CONDUCT of this project.
[ x ] I have performed a self-review of my own code or work.
[ x ] My changes generates no new warnings.
[ x ] I have followed proper naming convention showed in CONTRIBUTING GUIDELINE
[ x ] I have added screenshot for website preview in assets/images
[ x ] I have added entries for my game in main README.md
[ x ] I have added README.md in my folder
[ ] I have added working video of the game in README.md (optional)
[ x ] I have specified the respective issue number for which I have requested the new game.

Add your screenshots(Optional) 📸

Thank you soo much for contributing to our repository 💗

Thank you @chakrabortydeep ,for creating the PR and contributing to our GameZone 💗
Review team will review the PR and will reach out to you soon! 😇
Make sure that you have marked all the tasks that you are done with ✅.
Thank you for your patience! 😀

Hey @chakrabortydeep,
You can't work on a closed issue 👀!
Follow the proper guideline and make a new PR again 😀.
Happy Hacking 💗

Thank you  @chakrabortydeep , for your valuable time and contribution in our GameZone 💗.
It’s our GameZone, so Let’s build this GameZone altogether !!🤝
Hoping to see you soon with another PR again 😇
Wishing you all the best for your journey into Open Source🚀


Rescale image data changes intensity range of the image

Hi Johannes,
I was working with a student yesterday on segmenting some blob and we figured, intensity 150 is a good threshold for binarizing it. We then went one step back and rescaled the image using Plugins > napari-stress > Rescale image data. Afterwards, the threshold of 150 didn't work anymore. It turned out that this function does not just change the voxel size of the data, it also modifies the intensity range. It normalizes the image. Is there any reason why it does that? If not, I propose to remove this feature. Feel free to keep the functionality in a separate function, e.g. called normalize image or similar.
Thanks!
Best,
Robert

Note: Alternatively, consider dropping the function after this PR has been merged and released. I'm adding rescaling to napari-segment-blobs-and-things-with-membranes:
https://github.com/haesleinhuepf/napari-segment-blobs-and-things-with-membranes/pull/8


This plugins opens a separate nvim server in backgroup when not active

Hello,
Yesterday I noticed a problem, I was about to shutdown my computer and I noticed I am using a lot of RAM eventho I have closed all the windows.
I looked into processes and it seems like this plugin starts up nvim instances eventho I didn't used it (it is not set to open on startup for me)
Here you can see it again , on a fresh boot and after launching Obisdian:
$  pgrep -a nvim

36125 /usr/bin/nvim --server <IP_ADDRESS>:2006 --remote Z_Utility/Workbench-center/240729T201958.excalidraw.md
41034 /usr/bin/nvim --server <IP_ADDRESS>:2006 --remote 2_Library/00-Apps/taskwarrior_240523T092133.md

Looks like every time I switch to a new leaf it start one process for it in background.

Hi Archie,
Ah yes thank you for spotting this. I can put out a release to prevent it from trying to open the file in neovim if the listening instance isn't running 🙂

Hi Archie,
Ah yes thank you for spotting this. I can put out a release to prevent it from trying to open the file in neovim if the listening instance isn't running 🙂

Hi,
Looking forward for the patch man, thanks

Released the new version, since there's been no new comments I'm gonna close this as completed :slightly_smiling_face:


patch: Fix link for fleet actions in member table

Signed-off-by: Vipul Gupta (@vipulgupta2048) <EMAIL_ADDRESS>

Please make sure to read the CONTRIBUTING document before opening the PR for relevant information on contributing to the documentation. Thanks!

@balena-ci I self-certify!


Security fix

This fix is very important and avoid a very vicious situation we encountered...
We have an architecture where an openfl application is composed by multiples clients which are individual openfl projects themselves.
So each of these individual proejcts had their own bin directory, and now the bin/obj/assets.swf file !
That lead us to the main project compilation, templates were copied perffectly and the generation is good. BUT the wrong assets.swf file was used by haxe  !  As several classpath lead to the same file, things where mixed up and very hard to catch. (since not all the ressources where common).
Anyway, the idea is to clarify which assets.swf file must be linked to our final flash file!
For that, I'm proposing an easy but not elegant way here using  full path.
But you can also, for example, imagine to add the -cp bin/flash/obj  and do a -swf-lib assets.swf  so that there's no more confusion possible.
Thomas

Just a note about that fix, even if it worked perfectly on windows, it seems there's a problem with it on Linux platform...  Haxe do not find the asset.swf despite the full path :/
So I'm going to make an other try with the other approach I explain in the commit log, and let you know.


Amplify mock doesn't work with Cognito User Pool

How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
v16.19.0
Amplify CLI Version
any version after 1.6.2
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
nope
Describe the bug
I have installed the latest version of the CLI and when I run the amplify mock the local portal doesn't show any graphQL schema and in the top menu only appears API key there are no UserPool option.
I have tried with previous version and I checked that the latest working version was 10.6.2.
This was also reported for older versions but it was fixed: https://github.com/aws-amplify/amplify-cli/issues/10578
Expected behavior
Get my graphQL schema in the local portal and being able to perform queries/mutation on local portal
Reproduction steps

install latest amplify cli version
execute amplify mock
check local portal and check that the schema is not visible and pool options are not available

Project Identifier
No response
Log output

# Put your logs below this line

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hey @rdiaz82 :wave: thanks for raising this! Marking as a duplicate of https://github.com/aws-amplify/amplify-category-api/issues/1269

To reproduce:

amplify init -y
amplify add api > GraphQL > use Cognito User Pools as auth
amplify mock api
navigate to http://localhost:20002
observe error

@josefaidt @phani-srikar  ... any updates on this bug? It has really slowed development to not be able to use the tools to test locally. I am comment bombing  because It has been so long and I would really love to get this bug addressed so I can be on an updated amplify version. I am still stuck on 10.6.2 just to be able to get this to work :(

Checking for updates on this issue

@josefaidt @phani-srikar any updates on this?

Any updates about this issue ?

Hi,  I am also experiencing this bug on my Apple M2 Mac. For my use case, I was trying to test out the usage of the @auth directive on my GraphQL schema authenticated with Cognito user pools. When I deploy to AppSync, I see an option to log in with user pools & everything behaves as I expect:

However, when I try amplify mock api, it seems like I only have one option: "Auth - API Key". The UI does not allow me to update the authentication settings.

Clicking the "Update Auth" button just displays this dialog:

My current workaround is simply deploying to a development environment and testing it that way, but of course that will cost more money for my company. It is a shame that AWS's software does not allow for local testing of such a basic, fundamental feature! There is clearly a very high demand for it.

@josefaidt @phani-srikar ... any updates on this bug? It has really slowed development to not be able to use the tools to test locally. I am comment bombing because It has been so long and I would really love to get this bug addressed so I can be on an updated amplify version. I am still stuck on 10.6.2 just to be able to get this to work :(

Hello did you find a solution? I have the same Problem with amplify 12.5.0. And it's really slowing down everything.

Same issue with amplify 12.5.0!!!
Any updates on this?
Why is this important bug not fixed???
It's one of the important things, to test locally. Please periodize this.

I created a PR (https://github.com/aws-amplify/amplify-cli/pull/13555) to fix this issue. Can you please support it? We need the Amplify team to review and approve the fix. Thanks!


refactor selectActivityByApp to include services

Had a bug (https://aptible.zendesk.com/agent/tickets/49443) where the App's activity page would not show the services activity as well ie the scale operations from the service.

Refactor ActivityByApp to include the App's services as well.

Continuing discussion in Slack: https://aptible.slack.com/archives/C022BUSK487/p1696269097698449


Code cleanup items

[x] Use GO template for startups scripts.
[ ] Remove unused fields from ClusterSpec.
[x] Remove unused cloud connector methods.
[x] Store Default ClusterSpec in data files.
[x] Move Cloud provider Project ID to cloud connector or context.
[ ] Replace simple for loops with wait
[ ] Delete backoff lib
[x] Use ctx / log / error from appscode/go
[x] Use client-go instead of cfssl for SSL.
[x] Use client cert to open new AdminClient
[ ] Move Packet changes from internal repo.
[ ] Move Vultr changes from internal repo.
[ ] Add CloudFlare credential type.
[ ] Use uniform provider string in cloud / store / dns / credential.
[x] Use mustex with fake store
[x] Write CloudConfig
[x] Use KubeConfig from clientcmd
[ ] Separate etcd for events and data
[ ] Fix Extra Domains
[ ] KubernetesMasterName / APIServerHost
[x] Use GO structs for cert, private key, ssh instead of []byte. Do we need to store the cert, since it can be generated on the fly?

https://github.com/kubernetes/kubernetes/blob/master/cmd/kubeadm/app/util/endpoint_test.go

- First Detect What to DO

Create /scale / upgrade / delete

Cluster (VPC, Reserve IP, Route, ------------)

Per InstanceGroup {
	If Master {
	 // Spec - desired , Status - last what Pharmer saw
	} else {
	 //
	}
}

Cluster.ObjectMeta.CreationTimestamp is set
Cluster.Status.Phase != READY {
	// create cluster
}

Cluster.ObjectMeta.DeletionTimestamp is set
Cluster.Status.Phase != DELETED {
	delete cluster
}

else Cluster.Status.Phase == READY {
}

$ pharmer create --provider=digitalocean d`1 --zone=nyc3 --nodes=2gb=0 --credential-uid=do --v=5 --kubernetes-version=1.7.4

[ ] Add CloudConfig credential
[ ] Remove Deprecated fields
[ ] Add e2e testing.
[ ] Implement xorm storage.
[ ] Test Swac with DO and confirm that it survives node restarts.
[ ] Kubelet Node authorizer
[ ] CloudProvider GCE using extra Host mounts
[ ] Cleanup Networking in AWS/Azure
[ ] Confirm Kubenet working on GCE.

Spot instance todos:

[ ] type: Spot
[ ] Remove the post* flags from create cluster
[ ] cahnge flags type in create NodeGroup


User Account creation steps ambiguous - both admin

In the section Azure AD users and groups the details for both accounts appears to be the same.  Both are setup as secure-ws-admin.  I'm guessing one should be admin and one user.

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

ID: 6fc109e7-e2ad-6e3c-598d-36876b40dbfd
Version Independent ID: da56e91b-41ca-2c29-0e8c-bc4d2a36a748
Content: Deploying a privileged access solution
Content Source: compass/privileged-access-deployment.md
Service: security
Sub-service: ****
GitHub Login: @MicrosoftGuyJFlo
Microsoft Alias: joflore

@MicrosoftGuyJFlo - This issue may still be true. Please review. Thanks!


Fixed typo for like pattern match

Fixed typo for like pattern match

@svswaminathan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

Note that publishing in this repository is suspended until Tuesday, March 2. Merging will resume Tuesday. Authors can still review and sign off on PRs in the interim. Thanks.

#sign-off

@SnehaGunda: I'm sorry - only the author of this article, @timsander1, can sign off on your changes. But we do have an exception process - if you are on the Microsoft content or product team for this product area, you can ask the PR review team to review and merge it by sending mail to the techdocprs alias.

Thanks @SnehaGunda. We'll merge this tomorrow when publishing resumes.

Thank you for catching this @svswaminathan!