Create Mockup for Documentation

The following is the mockup for the project provided as part of the documentation: https://www.figma.com/file/qBgPt9IyagaZ5b3vx2uYUY/Capstone-Mockup?type=design&node-id=0-1&mode=design&t=qYer46FCMN6n2GmE-0

All Mockup work for sprint 1 was done by me, another person was also assigned to help me with the mobile version of the mockup later on.

Mockup Issue Video.zip
Needed to be zipped due to size limit


Feature/issue 2966 add 7 parameter ddm cdf and ccdf

Summary
With this PR the CDF and the CCDF of the 7-parameter diffuion model are added.
See issue #2966
Relates to issue #2822
Tests
We implemented analogous tests as for the PDF
Side Effects
no
Release notes
CDF and CCDF for the 7-parameter diffusion model. Allows modeling truncated and censored data.
Checklist

[x] Copyright holder: Franziska Henrich, Christoph Klauer
The copyright holder is typically you or your assignee, such as a university or company. By submitting this pull request, the copyright holder is agreeing to the license the submitted work under the following licenses:
- Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
- Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

[x] the basic tests are passing

unit tests pass (to run, use: ./runTests.py test/unit)
header checks pass, (make test-headers)
dependencies checks pass, (make test-math-dependencies)
docs build, (make doxygen)
code passes the built in C++ standards checks (make cpplint)

[x] the code is written in idiomatic C++ and changes are documented in the doxygen

[x] the new changes are tested

Is this ready for review?

Is this ready for review?

Hey Steve, yes this is now ready for review!
There were some header errors. I forgot some includes. Maybe there are now too many includes. But I will figure this out and do it on the fly. You can start a review.
In some functions I inserted a 'wildcard'-parameter. You will see the spots, they are called wildcard. I needed them as these functions are handed over to other functions. The wildcard parameter is never used - only to be a placeholder. If you have another idea I would be glad.
I will also give you permission to my branch again.

Few Qs

You can continue. I changed some aspects regarding the structure.

@SteveBronder: Is the code better now?
Why does the stan-buildbot comment after each push?

Hey @SteveBronder, which changes would you like to have before continuing?

Hey @SteveBronder, I worked through your suggestions and pushed a new version. Is it good for these points?
@andrjohns and @bob-carpenter, what do you think on the points above?

Hello, could somebody build a tarbal such that other people can easily install this version of Stan comprising the new wiener_cdf and wiener_ccdf function and signature?
I think last time for the PDF, @andrjohns built a tarball for me. My stanc3 signature is in this repo.

Hey,
@andrjohns built a tarball for me. My stanc3 signature is in this repo.
@SteveBronder, which are the next steps to be done to continue this PR?

The math here is a difficult for me to review. @andrjohns can you look at this?

Did commit early returns some ifs pass the tests? Or did that one fail from removing nearly_one? To debug this it would be good to start with a version that the tests pass for, make one change, then see what fails. Then we can debug which tests failed to see why and how to fix them.

I checked out e5f5048 and added the test values from the prim wiener_lcdf tests here to the mix tests. All the mix tests that check against finite difference differentiation passed, but the prim test that checks the gradients you calculated do not pass. Where did you get the values of the true gradient values you use in the test in prim?  It looks like the only code that changed in that commit were related to the gradient calculations so if they were incorrect I would expect the ad test suite to fail

tbc what I made a branch to show what I did
git pull
git checkout wiener_lpdf/test-vals
## These tests pass
python3 ./runTests.py -j20 ./test/unit/math/mix/prob/ -f wiener_full_lcdf
## These tests fail
python3 ./runTests.py -j20 ./test/unit/math/prim/prob/ -f wiener_full_lc

Only your suggested changes above for wiener4_lccdf yielded errors. The changes I made in wiener4_lcdf are all fine.
I changed the lines in winer4_lccdf to the following three lines:
  const auto exponent = -sign(v) * 2.0 * v * a * w;
  auto prob_grad_w = (v != 0) ? exp(LOG_TWO + log(fabs(v)) + log(a) - log1m_exp(exponent)) : ret_t(1 / w);
  prob_grad_w = (v > 0) ? prob_grad_w * exp(exponent) : prob_grad_w;

Now, all tests should pass. Let's see. Then, you can say, what I shall change next.

Hey Steve, now the errors from before should be fixed and the wildcards are deleted. What next?

Hey @SteveBronder, any news?


Collection of mod_dirs in language_server.py does not work with relative paths

Something like
fortls --debug_rootpath src --debug_completion --debug_filepath src/some.f90 --debug_line 123 --debug_char 456
fails as subdirectories are not collected correctly. In fact in line 479 of langserver.py (tag 1.2.1) the os.path.join is wrong. As far as I can see local variable dirName is the relative path (relative to current working directory). If the provided path in --debug_rootpath is absolute, then dirName is also absolute and the os.path.join just returns its second argument (i.e. dirName). So a simple patch is to replace
self.mod_dirs.append(os.path.join(self.root_path, dirName))
by
self.mod_dirs.append(dirName)
But I guess a proper solution might involve something like normalising all involved paths.

Thanks for the report. Yep, the fix you suggested should work fine and will be included in the next patch.


USHIFT-3177: Remove warnings about not allowed addresses in router se…

…rvice update

Which issue(s) this PR addresses:

Closes #

/lgtm

/test microshift-metal-tests

/test microshift-metal-tests


WindowsApps is in PATH, but system still cannot find the path specified

Brief description of your issue
Followed https://github.com/microsoft/winget-cli/tree/master/doc/troubleshooting
Common Issues Step 4. winget runs by entering & "$env:LOCALAPPDATA\Microsoft\WindowsApps\winget", but error message Program 'winget.exe' failed to run: The system cannot find the path specifiedAt line:1 char:1 is returned by entering winget. Put C:\Users\meow\AppData\Local\Microsoft\WindowsApps\ into path, restarted Powershell, same error message still, winget won't run without specifying the full path.
Full Powershell output:
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindows

PS C:\Users\meow> winget
Program 'winget.exe' failed to run: The system cannot find the path specifiedAt line:1 char:1
+ winget
+ ~~~~~~.
At line:1 char:1
+ winget
+ ~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed

PS C:\Users\meow> C:\Users\meow\AppData\Local\Microsoft\WindowsApps\winget
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

The winget command line utility enables installing applications and other packages from the command line.

usage: winget  [<command>] [<options>]

The following commands are available:
  install    Installs the given package
  show       Shows information about a package
  source     Manage sources of packages
  search     Find and show basic info of packages
  list       Display installed packages
  upgrade    Shows and performs available upgrades
  uninstall  Uninstalls the given package
  hash       Helper to hash installer files
  validate   Validates a manifest file
  settings   Open settings or set administrator settings
  features   Shows the status of experimental features
  export     Exports a list of the installed packages
  import     Installs all the packages in a file
  pin        Manage package pins

For more details on a specific command, pass it the help argument. [-?]

The following options are available:
  -v,--version              Display the version of the tool
  --info                    Display general info of the tool
  -?,--help                 Shows help about the selected command
  --wait                    Prompts the user to press any key before exiting
  --logs,--open-logs        Open the default logs location
  --verbose,--verbose-logs  Enables verbose logging for winget
  --disable-interactivity   Disable interactive prompts

More help can be found at: https://aka.ms/winget-command-help
PS C:\Users\meow> & "$env:LOCALAPPDATA\Microsoft\WindowsApps\winget"
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

The winget command line utility enables installing applications and other packages from the command line.

usage: winget  [<command>] [<options>]

The following commands are available:
  install    Installs the given package
  show       Shows information about a package
  source     Manage sources of packages
  search     Find and show basic info of packages
  list       Display installed packages
  upgrade    Shows and performs available upgrades
  uninstall  Uninstalls the given package
  hash       Helper to hash installer files
  validate   Validates a manifest file
  settings   Open settings or set administrator settings
  features   Shows the status of experimental features
  export     Exports a list of the installed packages
  import     Installs all the packages in a file
  pin        Manage package pins

For more details on a specific command, pass it the help argument. [-?]

The following options are available:
  -v,--version              Display the version of the tool
  --info                    Display general info of the tool
  -?,--help                 Shows help about the selected command
  --wait                    Prompts the user to press any key before exiting
  --logs,--open-logs        Open the default logs location
  --verbose,--verbose-logs  Enables verbose logging for winget
  --disable-interactivity   Disable interactive prompts

More help can be found at: https://aka.ms/winget-command-help
PS C:\Users\meow> C:\Users\meow\AppData\Local\Microsoft\WindowsApps\winget --info
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2134
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
PS C:\Users\meow>

Full Path environment variable:
C:\Program Files (x86)\VMware\VMware Workstation\bin\;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ProgramData\chocolatey\bin;C:\Program Files\Inkscape\bin;C:\Users\User\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Nmap;C:\adb;C:\Program Files\usbipd-win\;C:\Program Files (x86)\Intel\Platform Flash Tool Lite;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Users\meow\AppData\Local\Microsoft\WindowsApps\;C:\Users\meow\AppData\Local\Microsoft\WindowsApps;
Steps to reproduce

Open Powershell
Enter command winget

Expected behavior
Default winget command output
Actual behavior
Error message Program 'winget.exe' failed to run: The system cannot find the path specifiedAt line:1 char:1
Environment
PS C:\Users\meow> C:\Users\meow\AppData\Local\Microsoft\WindowsApps\winget --info
Windows Package Manager v1.5.2201
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.2134
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.2201.0

Winget Directories
-----------------------------------------------------------------------------------------------------------------------
Logs                               %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Diag…
User Settings                      %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\sett…
Portable Links Directory (User)    %LOCALAPPDATA%\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       %LOCALAPPDATA%\Microsoft\WinGet\Packages
Portable Package Root              C:\Program Files\WinGet\Packages
Portable Package Root (x86)        C:\Program Files (x86)\WinGet\Packages

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled

Could you try running the "repair-WinGetPackageManager" cmdlet in the Microsoft.WinGet.Client PowerShell module?
I don't know the root cause yet, but I'd like to see if that might help fix the problem here as a workaround.


Test write_null_portable on PortableWriter [API-1252]

Cpp code has following exceptions in ClassDefinitionWriter
  BOOST_THROW_EXCEPTION(exception::hazelcast_serialization(
              "ClassDefWriter::write_null_portable",
              "Cannot write null portable without explicitly registering class "
              "definition!"));

In theory, it should not be needed in c++ (unlike java), since in c++ class definition can be created from the template.
We need to add tests for write_null_portable and delete unneeded codes .

C++ client doesn't create class definition automatically when write_null_portable is called. After testing some possible scenarios I can say that C++ client behaves pretty much identical to Java client. Before calling write_null_portable, something not null must be written or class definition should be registered explicitly, otherwise exception in question is thrown.

@hakanaktas0 Since this is expected behaviour, we can say that we will not fix anything and close the issue.


borg: binary asset names now depend on version of glibc

package name

borgbackup/borg

aqua version
aqua -v
aqua version 2.29.0 (9ff65378f0c6197e3130a20f6d978b8a3042b463)

Environment

OS (Windows, Linux, macOS, etc): Linux
CPU Architecture (amd64, arm64, etc): amd64

Overview
How to reproduce
Merged this into my config:

registries:
- type: standard
  ref: v4.202.0
packages:
- name<EMAIL_ADDRESS>
🐧❯ aqua i -a
INFO[0000] download and unarchive the package            aqua_version=2.29.0 env=linux/amd64 package_name=borgbackup/borg package_version=1.4.0 program=aqua registry=standard
ERRO[0000] install the package                           aqua_version=2.29.0 env=linux/amd64 error="the asset isn't found: borg-linux64" package_name=borgbackup/borg package_version=1.4.0 program=aqua registry=standard
FATA[0000] aqua failed                                   aqua_version=2.29.0 env=linux/amd64 error="it failed to install some packages" program=aqua

Debug Output
Please set the environment variable AQUA_LOG_LEVEL=debug and run aqua and tell us the debug output.
DEBU[0000] failed to download an asset from GitHub Release without GitHub API. Try again with GitHub API  aqua_version=2.29.0 asset_name=borg-linux64 asset_version=1.4.0 env=linux/amd64 error="status code >= 400" package_name=borgbackup/borg package_version=1.4.0 program=aqua registry=standard repo_name=borg repo_owner=borgbackup
ERRO[0000] install the package                           aqua_version=2.29.0 env=linux/amd64 error="the asset isn't found: borg-linux64" package_name=borgbackup/borg package_version=1.4.0 program=aqua registry=standard
FATA[0000] aqua failed                                   aqua_version=2.29.0 env=linux/amd64 error="it failed to install some packages" program=aqua

Expected Behaviour
Install appropriate variant of borg
Actual Behaviour
Fails to download artifact.
Important Factoids
The "fat binary" assets used to be:

borg-freebsd64
borg-linux64
borg-linuxnew64
borg-linuxnewer64
borg-linuxold64
borg-macos64

Not sure just installing borg-linux64 was ever strictly correct (worked for me 🤷), but anyway, now they are:

borg-freebsd14
borg-linux-glibc228
borg-linux-glibc231
borg-linux-glibc236
borg-macos1012

According to aquaproj.github.io/docs/reference/registry-config/template/#template-variables, the version of glibc is not currently available as a template variable.
Not sure what 14 (BSD) and 1012 (macOS) refer to.
References

aquaproj/aqua-registry:pkgs/borgbackup/borg/registry.yaml
borgbackup.org/releases/borg-1.4.html

new naming convention for fat binaries (include glibc version for linux)

Options I can see:

Install one of the options (quick & easy change to the registry YAML)
Provide glibc version found on the system as template variable (code change in aqua necessary?)
Drop borg from the registry (quick & easy)

https://github.com/aquaproj/aqua-registry/pull/24539

Huh, those tests were indeed red. That's something at least! 😅

This is very troublesome...

Yeah. Including versions of libraries that some binary statically links against may be a bottomless barrel. :/
That said, glibc vs musl is not that rare an occurence. 🤔

See the 00_README.txt that comes with the binaries for details about how they were built.
In case of Linux, these fat binaries include everything needed, except the glibc (which must not be included, because that needs to come from the host OS). We use misc Debian releases, to offer multiple binaries, so users of old Linuxes (often enterprise stuff, like RHEL) can get a binary compatible with their old OS, but users of current Linuxes can also get something more fresh.
freebsd14 means that it is built on "FreeBSD 14" release.
macos1012 means that it is built on macOS 10.12 (which is quite old, but I don't have anything newer yet within vagrant).
Usually, borg binaries built on an older OS (using an older glibc) also work on a newer OS (with a newer glibc), but not vice versa.

Thanks for the details! 🙏
In summary, the quick solution here that should cause the fewest broken installations would be to install borg-linux-glibc228 and borg-macos1012, respectively, and we'd have to update those names whenever the systems used to build borg change (which is, hopefully, less often than new releases 😉).
FWIW, this combination works:
🐧❯ aptitude show libc6 | grep Version:
Version: 2.31-0ubuntu9.16

🐧❯ Downloads/borg-linux-glibc228 --version
borg-linux-glibc228 1.4.0

@reitzig Yes, using a borg built for an older glibc likely makes it work on more target systems (including these of older age, having an older system glibc).
But: the oldest of our build systems (e.g. Debian Buster in case of borg 1.4.x) are likely also the first ones that are not being maintained any more / supported any more by upstream and at some time will just stop working or become a too big pain for us to keep them working.


Temporarily remove go vet from the build command

Addresses #308 . #310 is filed to investigate and re-enable.

Can you elaborate on the issues you're running into with vet? Also, what are the issues we run into that require us to set composites to false? It should always be true. Unless protoc generates proto bindings that violate that style rule? Which I don't think it does?

Yes, composites=false was set in #266, idea from this thread. The issue with vet that inspired this PR is described in #310.

I still don't understand what is not using keyed literals that we need to set composites to false for?
Also, let's confirm he's running into a Docker issue and not make. The log he posted is from Docker build command.

Withdrawing the PR for now, as it's not solving the root cause and I won't be able to get to this by the end of the month. I'll follow up with the reason for the vet directive flag directly with @vtsao


Localization

App is in English at the moment, add translations for German.

Left a few new things open to translate. Will have to do this before releasing a new version.


webhook timeout variable

Webhook timeout by default is set to 30s (as we use AdmissionregistrationV1beta1) and sometimes that causes the request to fail when the number of pods in the cluster is huge.  We fix the webhook error by recreating the webhook manually with a lower timeout value (This does get modified when the operator pod restarts).
We found kubernetes/kubernetes#71508, which talks about how the default client timeout is 30s, so if the webhooks have a timeout equal or greater, the client can give up before the apiserver has, which means the failurePolicy: ignore has no effect.
This PR provides a way to set a default value for webhook timeout which allow the users to configure the timeout time based on their usage.

Also, can we set the default timeout value to 10s as it is the default timeout value in webhook starting from AdmissionregistrationV1?


Check root privileges at the start of leapp execution

Simple check that ends leapp process if it wasn't executed with root privileges.
Jira ref: OAMG-6476

Can one of the admins verify this patch?


Different column widths in the same grid

Hi,
it'd be nice if deckgrid supported different column widths.
You can check an example of what I mean here.

I'm not sure if I understand right, but you're able to define the column width within your CSS.

Yes, but I explained it wrong. The idea is to have certain elements that can take more than one column.
For example if we have two columns of 200px width, could I have an element of 400px that take up both columns?

This is the idea I was trying to explain:

That's not possible with Deckgrid. Deckgrid works a little bit different as Masonry. Masonry gets the elements (after they are rendered) and fix the spaces between this elements. Deckgrid get the data before it's rendered made the columns with the same width and insert the elements equally over all columns. Deckgrid is only the fix for old browser who doesn't support CSS 3 Columns.
Example of CSS 3 Columns: http://cssdeck.com/labs/css-only-pinterest-style-columns-layout

Okay!
thanks Citrullin


Allow ignore changes for node pools

Hi,
Thanks for your contribution. Can you please provide a description of your changes and the use case behind?

I agree that we should ignore changes to the size of the nodepool on the cluster-autoscaler-managed nodepools.
It's difficult to make this code look good now considering the limitations on terraform:

https://github.com/hashicorp/terraform/issues/33236
https://github.com/hashicorp/terraform/issues/24188


Sweep: Replace "first name" and "last name" fields with single field "name" for all the users of the system.Sweep:  (✓ Sandbox Passed)

Description
This pull request replaces the "first name" and "last name" fields with a single "name" field for all users of the system.
Summary

Changes made to Person.java:

Replaced firstName and lastName fields with a single name field

Changes made to createOrUpdateOwnerForm.html:

Replaced input fields for "First Name" and "Last Name" with a single input field for "Name"

Changes made to findOwners.html:

Replaced input field for "Last name" with an input field for "Name"

Changes made to createOrUpdatePetForm.html:

Replaced display of "first name" and "last name" with the display of "name"

Fixes #7.

🎉 Latest improvements to Sweep:

New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To get Sweep to edit this pull request, you can:

Comment below, and Sweep can edit the entire PR
Comment on a file, Sweep will only modify the commented file
Edit the original issue to get Sweep to recreate the PR from scratch

Rollback Files For Sweep

[ ] Rollback changes to  src/main/java/org/springframework/samples/petclinic/model/Person.java
[ ] Rollback changes to  src/main/resources/templates/owners/findOwners.html
[ ] Rollback changes to  src/main/resources/templates/owners/createOrUpdateOwnerForm.html
[ ] Rollback changes to  src/main/resources/templates/pets/createOrUpdatePetForm.html

This is an automated message generated by Sweep AI.


sort file list for deterministic behavior

Currently listdir() causes different file list order on different machines. By sorting the file list based on their paths we can guarantee the orders of the files will be same across different machines.

No need to sort based on filename since parent directory is fixed, so order will remain unchanged regardless of the root directory.

sorted file for ucla, babel stores dataset in a single file.


Typescript Error: Type 'unknown' on fields of Custom Post Types

Describe the bug
Extended (Extra) types for Custom Post Types are not working. Getting responses successfully but not the custom fields. Default fields are showing up okay
To Reproduce
Steps to reproduce the behavior:

Next 13.2 App
NPM installed npm install wordpress-api-client
Set up custom client
Set up custom types extending WPPost
Created a getter function for Custom type Project
Calling the getter function within a Next Page component
Getting all the data and fields and everything is returned as an array of objects.
8. While mapping over each object, cannot find custom-type fields declared for each project object.

Expected behavior
All the default fields for post type AND the custom post type should show up. Added screenshots for better context.
Screenshots
types.ts

client.ts

index.ts - Here I am creating getter functions

page.tsx - Here we see the problem

Here I have marked the ts errors in red
You can also see that there is a green checkmark on {project.title.rendered} this is located correctly as this is one of the default fields.
This is making me crazy! Did I goof up somewhere or is this a bug. Please help me out.
Thank you.

I don't think it's the library's fault.
In my case, WP Custom Fields must be enabled for REST. By default all were false. Check https://learn.wordpress.org/tutorial/wp-rest-api-custom-fields-authentication-and-testing/
That means I had to enable

For each damn field 😞


Benchmarking

Added instructions Dan sent me on how to do benchmarking along with the lua script that enables pipelining.
Updated to latest sbt-revolver (don't need to explicitly add to Build.scala)
Removed scala.version from build.properties since I'm pretty sure it isn't used.
Removed commented out code from colossus-example main apps, which I seem to have broken when I merge the docs PR 😱

Codecov Report

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

@@           Coverage Diff           @@
##           master     #538   +/-   ##
=======================================
  Coverage   84.71%   84.71%
=======================================
  Files          98       98
  Lines        4293     4293
  Branches      331      331
=======================================
  Hits         3637     3637
  Misses        656      656

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3cb941f...7de7c1d. Read the comment docs.

👍


ContextRefresher.refresh() is Making Multiple Calls At Once to Config Server

Hey all. I am using Spring Cloud 3.1.3. I have an application that is scheduled to refresh its context every 30 seconds with an initial 60 second delay. If I point my application to a config server running on my local machine, the feature performs as expected; 60 seconds after application startup, one call is made to my local config server to retrieve application properties, and every 30 seconds the same one call to my local config server is made. However, if I point my application to a config server running in the cloud (AWS), 60 seconds after application startup, three successive calls to the config server are made, and every thirty seconds the same three calls are made back-to-back-to-back.
Here's the relevant application code:
@Scheduled(initialDelayString = "${repoLoadInitialDelayMillis:60000}", fixedDelayString = "${repoLoadFreqMillis:30000}")
public void refresh() {

    Set<String> updatedKeys = contextRefresher.refresh();

    if (requiresReload(updatedKeys)) {
        LOG.info("Updates to oauth2.clients properties detected from config; reloading CustomInMemoryRepo");
        load();
    }
}

The only difference is where the config server is located?  The config client is running locally in both scenarios?  How are you determining 3 successive calls are made.

Yes the only difference is the location of the config server and yes my client was running locally in both scenarios. I could see in both the client's logs and the config server logs that3 successive calls were being made.

Could there be any kind of infrastructure in front of the config server on AWS that might be replicating the request?

That's what I'm thinking was the case. I've since changed how my EC2 instance is running the client application and it's only making one call to config server every 30 seconds as expected. I think this issue can be closed. Thanks!


1.0 documentation updates - overview section

Updating NIFI overview documentation taking into consideration the framework enhancement features introduced in NIFI 1.0

+1.  Merging to master.  This was #580 but haimo closed that and opened this one.
The images are nice but the architecture one with the angle and such might be a bit too busy.  Easy to revisit if others agree.
thanks again haimo

@Haimo-Liu which JIRA was this?

created https://issues.apache.org/jira/browse/NIFI-2209 to account for this.  Will ammend commit entries to reference this then push.


Admin panel linked to new Database.

Having the white-listed server, it has been hard not having a working admin panel.
I think it would be good to have one linked to the new database.

Complain in #staff-general :P. Not really anything that can be done from here as it's a variable that needs to be adjusted by inzidiuz.


How to Add/On board bulk New firewall devices via API to panorama ?

We are trying to add the PAN firewalls to the panorama manually and  we are trying to automate this process .
Can anyone provide API to add bulk devices to panorama  ?

You can add firewalls to panoramas and to device groups. For example:
Add a firewall to Panorama:
from panos.panorama import Panorama
from panos.firewall import Firewall

pano = Panorama("<IP_ADDRESS>", "admin", "password")
fw1 = Firewall(serial="1234567890")
pano.add(fw1)
fw1.create()

Add a firewall to a new device group:
from panos.panorama import Panorama, DeviceGroup
from panos.firewall import Firewall

pano = Panorama("<IP_ADDRESS>", "admin", "password")
dg = DeviceGroup("MyDG")
fw1 = Firewall(serial="1234567890")
pano.add(dg).add(fw1)
dg.create()
fw1.create()

Questions like this are best asked in the new GitHub Discussions. I'll close this issue for now, but you can open a discussion if you have any follow up questions. Thanks!


Server panics if the client sends an empty query

If in the client repl, you type something like this:
> query
2022-12-10T23:39:28-08:00 ERR cmd/fossil/client/client.go:176 > error sending message to server error=EOF

The server has panicked on the other side.

Fixed by 1d570b41a35e4ded3315a1247a2c8cb476185f49


Change TargetFramework to netstandard2.0

fix #29

Took me a while to look at this one, but I finally did and loved it! Thanks a lot for your contribution!


Running pretrained convvit on larger image sizes

Hi,
I am looking to see how well the pretrained base model runs on my own dataset, but the current model is configured for an image size of 224
In the original MAE code, the 'interpolate_pos_embed' function would allow the user to increase the positional embedding to allow for larger image patches
In your linear probing code, that same script is commented out, and (obviously) doesn't function the same way, as there are multiple positional embeddings to take care of
Do you have a function that can allow the pretrained model to run on different image sizes?
Thanks

To allow image resolution different from 224, you need to modify interpolate_pos_embed function. We will release a new codebase which allow finetuning of different resolution.


Add deduplication macro

This is a:

[ ] bug fix PR with no breaking changes — please ensure the base branch is main
[x] new functionality — please ensure the base branch is the latest dev/ branch
[ ] a breaking change — please ensure the base branch is the latest dev/ branch

Description & motivation

This PR aims to fix #335.
Checklist

[x] I have verified that these changes work locally on the following warehouses (Note: it's okay if you do not have access to all warehouses, this helps us understand what has been covered)

[x] BigQuery
[x] Postgres
[x] Redshift
[x] Snowflake

[x] I followed guidelines to ensure that my changes will work on "non-core" adapters by:

[x] dispatching any new macro(s) so non-core adapters can also use them (e.g. the star() source)
[x] using the limit_zero() macro in place of the literal string: limit 0
[x] using dbt_utils.type_* macros instead of explicit datatypes (e.g. dbt_utils.type_timestamp() instead of TIMESTAMP

[x] I have updated the README.md (if applicable)
[x] I have added tests & descriptions to my models (and macros if applicable)
[x] I have added an entry to CHANGELOG.md

Hey @judahrand, just a quick message to let you know I haven't forgotten you - I'm offsite this week but hope to have a look at this when I'm back on deck around the 22nd!


Fix #140, fix #69, fix #185

This PR adds a software SPI implementation. Firstly this removes the absolute necessity for spidev (#140), which also means when it's not present things still work (effectively fixes #185), and also enables any four pins to be used for SPI devices (which don't require the hardware implementation).
The software implementation is simplistic but still supports clock polarity and phase, select-high, and variable bits per word. However it doesn't allow precise speeds to be implemented because it just wibbles the clock as fast as it can (which being pure Python isn't actually that fast).
Finally, because this PR involves creating a framework for "shared" devices (like SPI devices with multiple channels), it made sense to bung Energenie (#69) in as well as this is a really simple shared device.
P.S. My apologies for the ridiculous size of this PR - messing around with the base hierarchy tends to result in such things, but I think after this the base hierarchy should be fairly "done". It might extend in the future (when we get to I2C components and such like) but I don't think there'll be many (any?) more major re-writes. Especially as this PR also greatly simplifies composite device construction (yeah ... this one sprawled quite a bit ...). Oh, and I still haven't written tests for all the new stuff (though I have done some limited testing with actual hardware).

@waveform80 I played with Energenie today and realised the interface uses 0-indexing. Were you aware that the 4-socket Energenie strip is numbered 1 to 4? https://energenie4u.co.uk/catalogue/product/ENER010
The usage in my energenie library was you could provide 1 to 4 for a specific socket, and 0 for all four.

Ahh ... nope, wasn't aware of that product - I'll update it to use 1-4 instead. Not sure about the "all four" thing though ... if someone constructs a device representing socket 1, and then another that represents all four, given that it's impossible to read the state of the socket that leads to interesting issues keeping the states up to date. For now, I'd stick with controlling individual interfaces and leave the "all four" thing for future work.

Just out of curiosity, how come this PR has seemingly modified every single image, even though most of them still look the same?

Good question - the PNGs, SVGs, and PDFs are all generated by docs/Makefile when it detects the source files have changed. I did write the Energenie stuff on my netbook whilst we were at my mother-in-law's for our daughter's first birthday, and that had a fresh checkout of my clone of the repo ... it's possible that messed up the relationship between the source and output's modification timestamps and make decided to regenerate everything as a result (then I just hit "gca" to commit everything as usual and didn't notice a crap-load of images going along for the ride!)


sql: proposals

Motivation

Part of https://github.com/spacemeshos/go-spacemesh/issues/2918

Changes

move proposals storage to SQLite

Test Plan

Unit and system tests
DevOps Notes

[x] This PR does not require configuration changes (e.g., environment variables, GitHub secrets, VM resources)
[x] This PR does not affect public APIs
[x] This PR does not rely on a new version of external services (PoET, elasticsearch, etc.)
[x] This PR does not make changes to log messages (which monitoring infrastructure may rely on)

i am tempted to use two structs for proposals. one is the original but renamed to GossipProposal. it is saved as a BLOB in db, and used to serve fetch requests. one struct is Proposal, which contains BallotID,  Beacon, TXs and Signature. both will be saved under one db table with ID as the primary key. i think its cleaner and makes more sense.
sorry for the back and forth. if you dont feel like doing this, i can do it instead


Upstream: Pull in changes from Hugo v0.79.0

so no explicitly requesting changes.

@chayev But you didn't approve either so it's still waiting for an approval.


chore(deps): upgrade jenkins-x/jx3-pipeline-catalog to version 3.10.150

from: https://github.com/jenkins-x/jx

/test gsm

/retest


Checkout Frontend

@Trisha-tech I want to make a frontend checkout page using react for this  #22 issue

i want to make a frontend checkout page using react for this #22 issue

Hello @R1MO9 , Go for it
All the best

Hello,I am a frontend web developer.I want to work on this too.Can you assign to me also?

Hello, I am a full stack developer with the required tech stack, kindly assign me with this issue so that I can provide my insights and solutions.

Hey @Trisha-tech I would like to work on this issue.


Code Request for SaC-module

I am deeply interested in your work on the SaC-module. Your research has captured my attention, and I believe exploring the code would greatly enhance my understanding. Could you please share access to the SaC-module code? I would sincerely appreciate it.

Hello, the code for SaCM has been uploaded. Its main idea is to use horizontal and vertical convolution to extract different modal information. Please refer to the code for more details. And also, you are welcome to follow my new work https://github.com/WHUlwb/Assisted_learning.

I am deeply interested in your work on the SaC-module. Your research has captured my attention, and I believe exploring the code would greatly enhance my understanding. Could you please share access to the visualization of you feature by t-SNE code? I would sincerely appreciate it.

@vivian1988 Thank you for your interest in my work. T-SNE has been well integrated into "sklearn", and you can directly call upon it to utilize this visualization tool.

Thank you for your reply.
胡薇
@.***

------------------ 原始邮件 ------------------
发件人:                                                                                "WHUlwb/ASD"                                                                                @.>;
发送时间: 2023年12月14日(星期四) 上午9:33
@.>;
<EMAIL_ADDRESS>主题: Re: [WHUlwb/ASD] Code Request for SaC-module (Issue #1)
@vivian1988 Thank you for your interest in my work. T-SNE has been well integrated into "sklearn", and you can directly call upon it to utilize this visualization tool.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: @.***>

<EMAIL_ADDRESS>


Allow peek editor to be disabled

I'd like to be able to disable the peek editor. I don't want to see it or use it ever.
Thanks for a great product.

Can you just avoid using "find all references", "peek definition", etc? We don't have another UI option for "find all references" currently. Can you explain some more about what you want?

I don’t want it to pop up when I use “go to definition“, even if there are multiple definitions.

What would be the expected behavior when there are multiple definitions? There would be no way to reach anything but the first one

So, multiple definitions seem to always happen in cases like this:
function foo() { /* ... */ } // <-- definition 2

export default {
  foo, // <-- definition 1
};

and the only time the peek editor shows up is when it navigates to a different file. Once I'm in that file, at definition 1 in my example above where I always land, activating "go to definition" again brings me to definition 2.
So, going to definitions seems to be a completely independent of the peek editor.
What about multiple definitions requires a visual UI? I'd like to just navigate them as if I were navigating through a chain of bookmarked spots by continually pressing F12.

+1 for:

giving us a way to disable this completely
default to "finding first"; we trust y'alls ability to make a reasonably good guess as to what's first

Mine's completely broken with curried functions in the new version of Code, old worked. Example, I have a function called createUserUnsafe:
.then( ({salt, encryptedPassword}) =>
    createUserUnsafe(
        dbClient,
        newUsername,
        encryptedPassword,
        salt,
        newEmail
    )
)

I COMMAND+Click, and it shows that it has 2 entries, which is not true:

I'm not using TypeScript
I only defined this function once, in the same file.

Rather than fix it to support curried functions, just give us the ability to turn this off, and guess if you find multiple.

at definition 1 in my example above where I always land, activating "go to definition" again brings me to definition 2.

Ok, you describe a mode in which F12 walks you to all definition of that symbol (function foo) but isn't the question then how to you leave that mode?

@jrieken There is no mode to leave. If I'm in a file and I hit F12 on a function call and that function is defined the same file...there is no visual that pops up. The cursor simply jumps to the locally defined function.

There is no mode to leave. If I'm in a file and I hit F12 on a function call and that function is defined in the same file...there is no visual that pops up. The cursor simply jumps to the locally defined function.

Yeah, but that's how it works today. uUnless there are multiple definitions in which case don't pick on randomly but show the peek.

Yes and I'm asking them to pick one and not show the peek editor.
They are already picking one randomly (although, it's not that random) and navigating to that spot right before showing the peek editor.
So, the simple request here is to just not show the peek editor. If other users want the peek editor - it can be enabled by default for those people.

I'm going to work on an AutoHotKey script to do what I want, which is basically this:
If VSCode Window is Active,
When User Hits F12;
Wait 50ms
Send the ESC key;

Adding a setting that reduces many definition to just one is easy if that's what people want. Instead of fiddling with AutoHotKey, how about a PR? Code pointer is this: https://github.com/Microsoft/vscode/blob/763dea187d39c04b68281049814d3b494a408a63/src/vs/editor/contrib/goToDefinition/goToDefinitionCommands.ts#L99

OK, I was looking through the code surrounding the peek editor earlier and I couldn't find anything obvious.
For some reason, that link doesn't work for me - I get a 404 - however, there's enough information there to find the file. Thanks!

I think this is where the decision is made - https://github.com/Microsoft/vscode/blob/987160c70adb3fdab30da30fef7d1c05a74ff858/src/vs/editor/contrib/goToDefinition/goToDefinitionCommands.ts#L139
I have no clue how to get the setting of a global value from within that module, so I'm just leaving this note here in case I can't get it done.

This is a sample for how to add a new setting to the system (https://github.com/Microsoft/vscode/blob/0c27d9b38e1ae2572e32475abde13d29f2eb71bf/src/vs/workbench/browser/parts/editor/breadcrumbsControl.ts#L494-L506) and then use the IConfigurationService to read the value

So, if I actually put some work into doing this - how long can I expect to wait before my pull request is merged?
I might just use my 15-minute AutoHotKey solution for now because it's very simple compared to possibly waiting weeks or months for a merge and/or maintaining my own branch of VSCode...

wait before my pull request is merged?

Hard to make a prediction... The first hurdle (do we want this) is already taken, it's mostly about code quality then.

The peek editor is pretty annoying in my workflow too.. Here's an example:
import React, {Component} from 'react'

class MainComponent extends Component {
  render () {
    return <SubComponent text="Hello World" />
  }
}

const SubComponent = ({text}) => {
  return (

{text}

  )
}

export default MainComponent

If I F12 into SubComponent, it will pull up 2 definitions in the peek editor. One for the word SubComponent in the constant declaration, and the second for...
({text}) => {
  return (

{text}

  )
}

Why would I ever need multiple definitions in this scenario? It's literally calling the function and the function's own declaration 2 different definitions. I have never used the peek editor, only ever dismissed it.
Please, give me an option to let it die.
For a stretch goal, it could be made less intrusive. Take me to the first definition, but put a small tooltip or intellisense context menu thing telling me there are additional definitions, and allowing me to go to the next one.

@10hendersonm That's a bug (https://github.com/Microsoft/TypeScript/issues/24809 or https://github.com/Microsoft/TypeScript/issues/24861) not a inherit problem with peeks

Here's the AutoHotKey script I've been using for a while to automatically hide the peek editor after I hit F12 when VSCode is the active window.
It works great. The peek editor does flicker onto the screen very, very briefly.
SetTitleMatchMode, 2              ; Must be at the top of the file...

#IfWinActive - Visual Studio Code
  F12::
  Send {F12}
  Sleep, 25                       ; Timeout might need to be adjusted...
  Send {Esc}
#IfWinActive

I'm aware that it should act the same way as before, just without the peek editor popping up. To clarify, my question is should the setting affect actions other than Go to Definition? I'm my PR I made it also affect Open Definition to the Side and Go to Type Definition.

Great question, no clue. I never use those, just Command + Click but I know the TypeScript and Python lovers may have good opinions about this.

So just tried this myself and now I get it. I'd vote:

Open Definition to the Side should ignore peek; you're looking to open the source of a class to compare for interfaces, or to work on a source class of a unit test class, it should just open the first it finds.
Go to Type Definition is tricky because it could be the source function, the literal type, where it's defined, where it's imported, yadda yadda... and that's WITHOUT the types you get with typed languages. That should probably stick with peek.

I see. I think the simplest solution will be to add a setting for each of the actions, since it seems like the use cases for the three actions might differ from user to user. I'll update my PR.

When using Find all References I just want to see a list of files. I don't want to peek definition into them. I find peek definition distracting and annoying. Especially when it is "peeking" into code that I'm already in in the current editor. It makes it confusing as to where the code is and what I'm looking at.

Just saw the PR, no reviews since September. Anything we can do to speed up the process ?

@hhu94 if i have component with enhancer export default withDeviceInfo(FilterVacanciesMain); and jumping on him, this window will seem to me

With https://github.com/Microsoft/vscode/issues/70032 I have added a new setting editor.gotoLocation.many with options peek, revealAndPeek, and reveal. The last option is very much related to this issue because it effectively disables peek and reveals the "first" result only.

I suggest "definition hierarchy" peek in another shortcut, as on Eclipse and some others.
This would prevent users from having to config to find a comfortable usage.

It's "editor.gotoLocation.multiple": "goto" now

It's "editor.gotoLocation.multiple": "goto" now

i use this but no reply

Remaining work for May, make F12 go to the next declaration/definition when invoked from within one, see https://github.com/microsoft/vscode/issues/53164#issuecomment-459005930

This is how it will look like

use 'goto' setting
trigger go to def, go to decl, go to implementation on a symbol with multiple results
the first is revealed, status message shows, hitting F12 cycles through them, hitting ESC or selection changes end this

thank you for this

Thanks for the option, the peek window is a really annoying one which breaks my workflow because escape doesn't make it go away. I have to grab my mouse to get it out of the way which is not very user friendly. The other option is pressing enter, but only if you don't press escape 1st. Also the focus (choices) are shown on the right side of the preview, not the point where is was looking.
A simple popup with the filenames+line numbers as choices is better IMHO.

because escape doesn't make it go away

Well, the default is to hide on Esc. Do you the editor.stablePeek setting by any chance?


All wrapped methods should probably reject on socket error

The current wrapping logic runs the risk of creating forever-pending promises in case of socket errors. These socket errors are not otherwise exposed by promise-ftp's API.
I'm getting good mileage out of a change over at my fork which I have published as @motiz88/promise-ftp v2.1.1. It attaches a handler using once('error', ...) and takes care to detach it if the promise is either resolved or rejected the normal way.
I'll happily submit a PR once I know your position on #1 (which is included in my master branch).

I'm a little unclear on the situation which can cause the forever-pending promises.  With that said, go ahead and create the PR, and I'll take a look.

I think this is related to an issue I'm running into as well. If not, let me know. But it appears that the FTP server that I connect to occasionally just dies/becomes unreachable for a small amount of time (it's not my server, so I can't tell why). The promise is never completed or rejected, so my code just hangs for forever until I manually go in and make it quit.

@frehner, I never got a PR for this from @motiz88, but @nmccready created one.  Unfortunately, there were some minor merge conflicts that never got resolved.  I'm no longer actively working on the project that uses this module, so I haven't circled back to try to handle the conflicts myself.  But, if you or anyone else wants to do it, I'd gladly review and merge it.

Sounds good. Thanks for this repo, it's great. I'll try to take a look at it, though I don't know coffee script very well


Reports: Eliminate the possibility of overflow

When test has very large sum number.

@qzhjason Nice catch, thanks!
Then, your fix doesn't compile (unmatched parens) and it would probably be better to have a double mean too.
Can you please fix and rebase your commit?

I'll try to fix it on my local PC.

Could you please squash your commits into a single one?


Fix Wrong use of sync_gradients used to implement sync_each_batch

What does this PR do?
As pointed  @Nightmare-n here, the fix of #29425 was incorrect all this while, due to a misunderstanding of how sync_gradients is used to signal also optimizer step.
TODO:

this is untested, and the unit tests need to be reviewed again

Fixes #29425, #2531
Before submitting

[x] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
[x] Did you read the contributor guideline,
Pull Request section?
[x] Was this discussed/approved via a Github issue or the forum? Please add a link
to it if that's the case.
[ ] Did you make sure to update the documentation with your changes? Here are the
documentation guidelines, and
here are tips on formatting docstrings.
[ ] Did you write any new necessary tests?

Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@muellerzr @Nightmare-n

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

No worries @fabianlim take your time. Patchfixes go out on Fridays usually so you’ve got time 🤗

BTW @fabianlim we squash, so you don't need to force-push 🤗

@muellerzr yes sorry ill stop force-pushing.
I adjusted the unit tests to test the correct behavior.

if sync_each_batch==False , then the closeness check by check_model_parameters is only at the end of the interval (i.e., did_step == True, see below)
otherwise, then the closeness check must be done at every batch.
the closness check is against a baseline model that implements gradient accum (since it flushes its gradients every grad accum num steps)

However regarding why the rtol in the closeness check is required, the following is my (unverified) hypothesis:
If we let A_0, B_0 to be the gradients at batch 0 of replica A and B, and similarly A_1, B_1,

batch 0: mean reduction means both replicas has gradients, say C_0 = (A_0 + B_0) / 2
batch 1 (before reduction), replica has C_0 + A_1 and other replica has C _0+ B_1
(after reduction),  both replicas has  [(C_0 + A_1) + (C_0 + B_1) ] / 2    -------------- > (1)

whereas a straight gradient accum would have

batch 0: same as above
batch 1: both replicas has  C_0 + [A_1 + B_1 ] / 2     -------------> (2)

So the slight differences in the equations (1) and (2), though mathematically equivalent, could have given different numerical results.

with accelerator.accumulate(ddp_model)
    ...

did_step = (((iteration + 1) % 2) == 0) or ((iteration + 1) == len(dataloader))
if accelerator.num_processes > 1:
    check_model_parameters(
        model,
        ddp_model,
        did_step or sync_each_batch,  # syncs at each grad_accum interval of if sync_each_batch==True
        iteration,
        rtol=1e-3,  # needs a relative tolerance due to roundoff errors
    )
if did_step:
     opt.zero_grad()  # flush gradients every accum step
ddp_opt.zero_grad()


error Sync-NAVApp upgrade from BC14 to BC20

Hi,
I'm facing an error at task 11 when upgrading from BC14 to BC20 Onprem (https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/upgrade-to-microsoft-base-app-v20) :

In the event viewer a more detailed error is shown:
erver instance: BC200 Tenant ID: default Environment Name: Environment Type: Production Session type: Background Session ID: 6 User:
CustCORP\criteria Type: Microsoft.Dynamics.Nav.Types.Exceptions.NavSqlException ErrorNumber: 15248 TransactionRolledBack: False MaxVerbosity: Off ErrorCode: -1
SuppressMessage: False ContainsPersonalOrRestrictedInformation: True DiagnosticsSuppress: False
DiagnosticsMessage: Message not shown because the NavBaseException constructor was used without privacy classification
MessageWithoutPrivateInformation: Message not shown because the NavBaseException constructor was used without privacy classification
SuppressExceptionCreatedEvent: False FatalityScope: None ErrorLevel: Error Message: The following SQL error was unexpected:
Either the parameter @objname is ambiguous or the claimed @objtype (INDEX) is wrong. Caution: Changing any part of an object name could break scripts and stored procedures.
Caution: Changing any part of an object name could break scripts and stored procedures. Caution:
Changing any part of an object name could break scripts and stored procedures. Caution:
Changing any part of an object name could break scripts and stored procedures. Caution:
Changing any part of an object name could break scripts and stored procedures. Caution:
Changing any part of an object name could break scripts and stored procedures.
SQL statement: exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$1"', N'$Key2', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$2"', N'$Key3', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$3"', N'$Key4', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$4"', N'$Key5', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$7"', N'$Key8', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$8"', N'$Key9', N'INDEX';
exec sp_rename N'"dbo"."CompName$G_L Account$68b58c83-f442-4d2f-b6a1-ed26a3f1328c"."$9"', N'$Key10', N'INDEX'
StackTrace: at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo) at System.Environment.get_StackTrace() at Microsoft.Dynamics.Nav.Runtime.NavSqlConnection.Throw
Does anyone have any hints why this is happenning?
Thank you!

This is an old GIThub with examples how to migrate via powershell. The issue that you are having is rather specific.
Please join us at:
https://www.yammer.com/dynamicsnavdev/#/threads/inGroup?type=in_group&feedId=48311992320&view=all
or at https://www.yammer.com/dynamicsnavdev/#/threads/inGroup?type=in_group&feedId=5059035
If you are having issues joining yammer let me know. I will forward the request to relevant people.


Add FIS banking apps/sites allow list for less 2FA

Closing as the repo appears to be abandoned
site to add is content.ibanking-services.com


Application cannot be started

Eclipse seemed to export the WAR file fine, and I was able to deploy it through the Tomcat Web Application Manager, but it does not start.
FAIL - Application at context path /cah could not be started

Any more context?

I think I'm having the same problem. The first page loads fine but when the game.jsp file is loaded this happens:
org.apache.jasper.JasperException: Unable to compile class for JSP:
An error occurred at line: [15] in the generated java file: [/var/lib/openshift/555d2d134382ecbefe0000a4/jbossews/work/Catalina/localhost/CAHmave/org/apache/jsp/game_jsp.java]
Only a type can be imported. net.socialgamer.cah.data.GameOptions resolves to a package
An error occurred at line: 402 in the jsp file: /game.jsp
GameOptions.MIN_SCORE_LIMIT cannot be resolved to a type
399:       Score limit:
400:
401:         <%
402:           for (int i = GameOptions.MIN_SCORE_LIMIT; i <= GameOptions.MAX_SCORE_LIMIT; i++) {
403:         %>
404:           <option <%= i == GameOptions.DEFAULT_SCORE_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
405:         <% } %>
An error occurred at line: 402 in the jsp file: /game.jsp
GameOptions.MAX_SCORE_LIMIT cannot be resolved to a type
399:       Score limit:
400:
401:         <%
402:           for (int i = GameOptions.MIN_SCORE_LIMIT; i <= GameOptions.MAX_SCORE_LIMIT; i++) {
403:         %>
404:           <option <%= i == GameOptions.DEFAULT_SCORE_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
405:         <% } %>
An error occurred at line: 404 in the jsp file: /game.jsp
GameOptions.DEFAULT_SCORE_LIMIT cannot be resolved to a type
401:         <%
402:           for (int i = GameOptions.MIN_SCORE_LIMIT; i <= GameOptions.MAX_SCORE_LIMIT; i++) {
403:         %>
404:           <option <%= i == GameOptions.DEFAULT_SCORE_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
405:         <% } %>
406:
407:
An error occurred at line: 412 in the jsp file: /game.jsp
GameOptions.MIN_PLAYER_LIMIT cannot be resolved to a type
409:       <select id="player_limit_template" class="player_limit"
410:           aria-label="Player limit. Having more than 10 players may cause issues both for screen readers and traditional browsers.">
411:         <%
412:           for (int i = GameOptions.MIN_PLAYER_LIMIT; i <= GameOptions.MAX_PLAYER_LIMIT; i++) {
413:         %>
414:           <option <%= i == GameOptions.DEFAULT_PLAYER_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
415:         <% } %>
An error occurred at line: 412 in the jsp file: /game.jsp
GameOptions.MAX_PLAYER_LIMIT cannot be resolved to a type
409:       <select id="player_limit_template" class="player_limit"
410:           aria-label="Player limit. Having more than 10 players may cause issues both for screen readers and traditional browsers.">
411:         <%
412:           for (int i = GameOptions.MIN_PLAYER_LIMIT; i <= GameOptions.MAX_PLAYER_LIMIT; i++) {
413:         %>
414:           <option <%= i == GameOptions.DEFAULT_PLAYER_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
415:         <% } %>
An error occurred at line: 414 in the jsp file: /game.jsp
GameOptions.DEFAULT_PLAYER_LIMIT cannot be resolved to a type
411:         <%
412:           for (int i = GameOptions.MIN_PLAYER_LIMIT; i <= GameOptions.MAX_PLAYER_LIMIT; i++) {
413:         %>
414:           <option <%= i == GameOptions.DEFAULT_PLAYER_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
415:         <% } %>
416:
417:       Having more than 10 players may get cramped!
An error occurred at line: 423 in the jsp file: /game.jsp
GameOptions.MIN_SPECTATOR_LIMIT cannot be resolved to a type
420:       <select id="spectator_limit_template" class="spectator_limit"
421:           aria-label="Spectator limit.">
422:         <%
423:           for (int i = GameOptions.MIN_SPECTATOR_LIMIT; i <= GameOptions.MAX_SPECTATOR_LIMIT; i++) {
424:         %>
425:           <option <%= i == GameOptions.DEFAULT_SPECTATOR_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
426:         <% } %>
An error occurred at line: 423 in the jsp file: /game.jsp
GameOptions.MAX_SPECTATOR_LIMIT cannot be resolved to a type
420:       <select id="spectator_limit_template" class="spectator_limit"
421:           aria-label="Spectator limit.">
422:         <%
423:           for (int i = GameOptions.MIN_SPECTATOR_LIMIT; i <= GameOptions.MAX_SPECTATOR_LIMIT; i++) {
424:         %>
425:           <option <%= i == GameOptions.DEFAULT_SPECTATOR_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
426:         <% } %>
An error occurred at line: 425 in the jsp file: /game.jsp
GameOptions.DEFAULT_SPECTATOR_LIMIT cannot be resolved to a type
422:         <%
423:           for (int i = GameOptions.MIN_SPECTATOR_LIMIT; i <= GameOptions.MAX_SPECTATOR_LIMIT; i++) {
424:         %>
425:           <option <%= i == GameOptions.DEFAULT_SPECTATOR_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
426:         <% } %>
427:
428:       Spectators can watch and chat, but not actually play. Not even as Czar.
An error occurred at line: 447 in the jsp file: /game.jsp
GameOptions.MIN_BLANK_CARD_LIMIT cannot be resolved to a type
444:
445:         Also include
446:         <%
447:           for (int i = GameOptions.MIN_BLANK_CARD_LIMIT; i <= GameOptions.MAX_BLANK_CARD_LIMIT; i++) {
448:         %>
449:           <option <%= i == GameOptions.DEFAULT_BLANK_CARD_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
450:         <% } %>
An error occurred at line: 447 in the jsp file: /game.jsp
GameOptions.MAX_BLANK_CARD_LIMIT cannot be resolved to a type
444:
445:         Also include
446:         <%
447:           for (int i = GameOptions.MIN_BLANK_CARD_LIMIT; i <= GameOptions.MAX_BLANK_CARD_LIMIT; i++) {
448:         %>
449:           <option <%= i == GameOptions.DEFAULT_BLANK_CARD_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
450:         <% } %>
An error occurred at line: 449 in the jsp file: /game.jsp
GameOptions.DEFAULT_BLANK_CARD_LIMIT cannot be resolved to a type
446:         <%
447:           for (int i = GameOptions.MIN_BLANK_CARD_LIMIT; i <= GameOptions.MAX_BLANK_CARD_LIMIT; i++) {
448:         %>
449:           <option <%= i == GameOptions.DEFAULT_BLANK_CARD_LIMIT ? "selected='selected' " : "" %>value="<%= i %>"><%= i %>
450:         <% } %>
451:          blank white cards.
452:
Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:481)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:657)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:357)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

This topic isn't helping any - the OP didn't explain how they finally resolved the issue and none of the suggested solutions seem to be working. I also have found that building is successful in Maven but the .war files produced don't load anything at all, whereas the builds in Eclipse fail but the .war files create the above issue but at least load something.


Adds flexibility to 'Get Favicon' extension URL input so user isn't required to enter scheme

Description

Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Resolved issues from checks.


Un-mut some Frame/VirtualMachine methods

They don't actually require mutable references.

The less mut the better!


Deeplinking

Feature Request:
I it would be great if endpoints could be deep-linked. This could be achieved by putting id attributes or anchors on the page (i.e. endpoint GET /pet/findByStatus could be addressed by /api.html#GET-%2Fpet%2FfindByStatus).
Better yet if there was a way to discover these via the UI.
It might also be nice if searches could be deeplinked to.

Good idea. I'll look into this.


Added support for Browserify/Webpack

This small approach simplify the call when use webpack.
...
import Mask from 'ng-mask';
...

const root = angular
  .module('app', [
    ...
    Mask,
    ...
  ])
  .name;

export default root;

@candreoliveira your attention here 👍


Question : Can I use "draft js" in "react native"?

I want to use "draft js" in "react native".
But I do not know how to do it.
How do I use "draft js" in "react native"?
I do not want to add "draft js render", but I want to add "draft js editor".

I thought I saw a project with draft-js in an RN WebView recently, although I can't find it at the moment, so maybe not. 😞 This might give you a good start, otherwise: https://github.com/facebook/draft-js/issues/138#issuecomment-261180745

I create a web page where there is only a draftjs editor and use webview to show it. It's very buggy. The text disappears as you type it. Maybe this PR will fix the problem: https://github.com/facebook/draft-js/pull/1285

Maybe this could help you: https://github.com/globocom/react-native-draftjs-render

Hi!
I don't think we generally support using Draft.js with RN at this time. Internally at Facebook, folks have made similar components to Draft for React Native, but have not actually been using Draft in RN.
Sorry I don't have better news in this area - would be curious whether the react-native-draftjs-render project solves the problem.

https://github.com/rehashstudio/react-native-draft-js
this project support React Native

https://github.com/rehashstudio/react-native-draft-js only support rendering but I want to  add "draft js editor". in my project. alternative  https://github.com/wix/react-native-zss-rich-text-editor is available but it don't support #tags or @user like autocomplete  like feature can. can any one help me with this and how to achieve this.

I am adding a text-editor feature in my react-native app and https://github.com/rehashstudio/react-native-draft-js only support rendering but I want to add "draft js editor". Alternative https://github.com/wix/react-native-zss-rich-text-editor is available but it don't support #tags or @user like autocomplete like feature can. can any one help me with this and how to achieve this.

Hey man how did you solve this problem?

maybe it will be helpful: https://github.com/DaniAkash/react-native-draftjs


Improve Verification on signing PRs: Detect correct repository and filtering output

cc @kommendorkapten
Description
Currently, verifiers run something like:
REPO=ceremony/YYYY-MM-DD ./scripts/verify.sh

This script runs an entire suite of verification commands that can apply to any type of PR run or repository (incomplete, complete).
https://github.com/sigstore/root-signing/blob/4c151b38b843f47b4bc5db4ad9a6f672d6fc7791/scripts/verify.sh#L55-L66
Instead, there are really only a few types of events verifiers need to look for:

Verification of committed HSM key data only (used for initializing new metadata, no signatures present). This is the key command https://github.com/sigstore/root-signing/blob/4c151b38b843f47b4bc5db4ad9a6f672d6fc7791/cmd/verify/app/keys.go#L182
Verification of some present signatures (for any signing events). This is "verifying staged metadata" in here.
Verification of a full entire-ty of metadata. This is the verify metadata without the staged sub-command.

Idea:

Separate verification commands ./scripts/verify-signing.sh or ./scripts/verify-snapshot-timestamp.sh or ./scripts/verify-metadata.sh, ./scripts/verify-keys.sh, or give a select prompt if we want to maintain the single ./scripts/verify.sh` entrypoint. Document what users are expected to do in the different PR scenarios.
Separate the VerifyCmd to VerifyStagedCmd and VerifyRepositoryCmd to make it clear/subcommands.

Version

@kommendorkapten also brings the point of when verifying newly initialized metadata and we don't expect any sigs, we are also looking to identify other properties than keys: is the data well-formed? what are the expiries? This isn't handled by any of the commands right now.
Also: that probably makes sense under verifyStagedMetadata. Verifying signatures probably should be called verifySignatures at a top-level

In tuf-on-ci:

the signing-event workflow does analysis on individual metadata -- are they valid, correctly signed, etc
online-signing verifies that the online roles are valid
signing tool also does some validation on the bits of metadata that is going to be signed
full repository tests happen after merging and preprod publish: this is too late for singing event PR validation but it is also the first point where the full repository can be validated -- and potentially reverted

The signing event validation can certainly be improved, but I think it makes sense to mostly do that in the signing event workflow.
I am going to close this, please file an issue if there is a specific improvement idea


Svg selection with transparent area

Discussed in https://github.com/Simonwep/selection/discussions/155

Originally posted by roonie007 January 22, 2022
How can I select this SVG element only when the mouse is over the line

What is actually happening, is when ever the mouse enter the SVG RectBound element even on the transparent area the item is selected (check the picture below):

What I am looking for is, how to trigger the selection only when the mouse is over the line ?
Thanks

@Simonwep Any help on this ?

This is out-of-scope for this library, I can only suggest you to implement a fraction of this library where you can draw a shape of your choice... :/


Refactor verify_peer_callback to support asynchronous return.

@markdroth Following up on the PR comments from here, refactoring the c-core API for verify_peer_callback to support an asynchronous callback.
This pretty closely models off of the existing get_metadata plugin code, so I don't think there's too many surprises. @markdroth did mention that we should aim to properly support cancellation from the get-go, but it wasn't really clear to me what this should look like here (there doesn't look to be any code here that anticipates needing to cancel the ssl_channel_check_peer call).

I haven't yet had a chance to look at this code, but I do have a few high-level comments.
First, it turns out that we actually have a policy of requiring a gRFC for core API changes:
https://github.com/grpc/proposal/blob/master/P3-grfcs-for-core-api-changes.md
I wasn't aware of this until recently, or I would have pointed it out before you made the original verify_peer API change.  So we should probably go ahead and put together a gRFC here, not just for the change in this PR but also for the verify_peer API as a whole (i.e., including both this change and the original one).
Second, please sync with @yihuazhang, who is currently working on a design for SPIFFE credentials that introduces a couple of cancellable application call-outs similar to this one.  I believe he is proposing to introduce some helper code to handle the semantics of the application call-out use case correctly, and we should try to reuse that code here.
Third, responding to this comment:

@markdroth did mention that we should aim to properly support cancellation from the get-go, but it wasn't really clear to me what this should look like here (there doesn't look to be any code here that anticipates needing to cancel the ssl_channel_check_peer call).

I suspect this is another case similar to the metadata plugin credentials where we simply failed to think about the need for cancellation when we originally designed the APIs.  The check_peer call should in principle be cancelled whenever the security handshaker shuts down.  As part of this PR, we should fix the security handshaker to cancel the call when the handshaker is shut down.

I am currently working on the design of supporting SPIFFE in gRPC auth stack which contains a general mechanism to support application call-out use case, and I think it will be ready for gRFC review by the end of this week.
Does your use case require HTTPS or SPIFFE-based SSL implementation? if it is SPIFFE-based, my current SPIFFE design may also be useful in your use case.

@yihuazhang Our use-case is similar to SPIFFE but predates it just slightly and is a bit different in the details (similarly we have a non-DNS notion of identity we want to verify, but ours is based on a set of custom X509 extensions rather than a URI SAN). But I suspect that some of what you're putting together could be used for this general verification callback. I don't think I'll be able to do more work on this PR this week anyway, so I'll check out what you're putting together for SPIFFE once you have it ready.

@JackOfMostTrades If I understand correctly, your use case is workload-to-workload mTLS authentication. We are going to refactor grpc SSL credentials into two types: https SSL credentials and SPIFFE credentials (not strictly SPIFFE, but should also support your use case and similar other mTLS use cases). @yihuazhang is driving that effort. More details coming soon.

If I understand correctly, your use case is workload-to-workload mTLS authentication.
Yes, that's exactly correct.
not strictly SPIFFE, but should also support your use case and similar other mTLS use cases
That sounds great! I'll stay tuned!

@JackOfMostTrades
I drafted a gRFC (https://github.com/grpc/proposal/pull/98) that has all the details we discussed before. Could you please take a look (i.e., server_authorization_check) and see if the API is implementable to meet your needs?


Allow ability to pass separator for label;

Allows for the user to pass RANCHER_LABEL_SEPARATOR to override the default , separator.
Ticket

Currently in testing

Tested and can confirm I have had a successful build and deploy with the given fix. \o/


Exposure logging always shows active 13/14 days even while active 14+ days

Avoid duplicates

[x] Bug is not mentioned in the FAQ

[x] Bug is not already reported in another issue

Describe the bug
I have installed the Coronalert app and enabled logging on 29/09/2020. The last few days I noticed the app always mentions Exposure logging was active for 13 of the past 14 days, despite being active for more than 14 days. See the screenshot attached below.
Expected behaviour
I expect the app to say exposure logging was active for 14 out of 14 days.
Steps to reproduce the issue

Install app and enable exposure logging
Wait 14 days with bluetooth enabled
Open Coronalert app
See message shown below

-->
Technical details

iOS Version: iOS 14 and iOS 14.1 (since 20/10/20)
Device: iPhone XR

Additional context
I check the application regularly, but not daily. Hence I do not know for certain if the app showed 14/14 days at some point or not. I have updated iOS from version 14 to 14.1 and I have installed all the updates to the Coronalert app. Beyond this, I have not changed anything to the app or the phone. Bluetooth is always enabled except for brief < 2 minutes intervals from time to time to disconnect other devices.

After multiple days of 13/14, the app now mentions exposure logging was permanently active. I have no idea what changed in these last few days.

Hello
Can you check in:
Settings/ Exposure Notifications / Exposure Logging Status / Exposure Checks
and see if there are any days missing in that list?

Settings -> iPhone Settings app

Yes, the 20th of October is missing even though I used my phone that day.


Bat - For 2 of the 58 jobs displayed on scrapers.peviitor.ro, the location is Romania instead of Croatia

ENVIRONMENT: production
URL: https://scrapers.peviitor.ro
Browser: Microsoft Edge
Device: Laptop
OS: Windows 10
STEPS TO REPRODUCE:

Open the URL in the browser
Run scraper for "Bat" Company
Check the location of the jobs
Open https://careers.bat.com
Check the location of the jobs

EXPECTED RESULTS:
Jobs located in Croatia should not be displayed
ACTUAL RESULTS:
The message "Romania is not a city in Romania" is displayed on scrapers.peviitor.ro for the following jobs:

Production Technician in Croatia
Operator in Croatia
For these 2 jobs, the location is Romania instead of Croatia

The problem is in the database of the Bat company because under the job title "Romania" is written even though the job location is Croatia.

Fixed!


Added serialization utilities from @aztec/foundation

https://github.com/AztecProtocol/aztec3-packages/issues/182
This code passed the test successfully.

I'll repush this PR so CI can run, sorry for delay merging - I'm bringing up with the team how we can have CI run on this in the future


Add stop/break option in replacementPatterns?

Currently, the replacement patterns are applied one by one.
Sometimes, we may want to stop when one of them is executed.

Would you like to have an option to enable that behaviour, and keep the current behaviour as the default one?
Behaviour would be :
for each link in the file, do:
   for each replacement pattern in the config, sorted in config order, do:
       check the link against the pattern:
           if matches and "stop after first matched pattern" option is true => go to next link
           if no match, try with the next pattern
       ...

yes, an option is good


chore(*) protect against error with the useradd instruction

The 'kong' user should now be already created on package creation [1].
The chown and chmod commands are unchanged because these are
specific commands needed to run Kong on OpenShift [2].
[1] https://github.com/Kong/kong-build-tools/pull/339
[2] https://github.com/Kong/docker-kong/pull/243/

I think this is fine and will pass CI after we roll out a GA package that handles user creation. Tentative 👍


Java maven project, too many errors and warnings.

version:
Application: syft
Version:    1.12.2
BuildDate:  2024-09-11T14:12:10Z
GitCommit:  fcd5ec951de6b3fc1f1aa2a36968356d2eb22170
GitDescription: v1.12.2
Platform:   linux/amd64
GoVersion:  go1.22.6
Compiler:   gc

used command:
syft scan dir:. -o cyclonedx=target/sbom-cyclonedx.cdx -vv

results: sbom generated, but with many errors and warns, and no dependencies  in output, hence no relationships at all...
such as:
DEBUG error adding dependency dependencyID=(groupId: org.springframework.boot artifactId: spring-boot-devtools version: ) error=invalid maven pom specification, require non-empty values for groupID: 'org.springframework.boot', artifactID: 'spring-boot-devtools', version: '' mavenID=(groupId: com.wxt.itps.services artifactId: public version: 0.0.1-SNAPSHOT) pomLocation=Location<id=707 RealPath="/pom.xml">

DEBUG error attempting to resolve pom licenses error=unable to resolve pom org.springframework.boot spring-boot-starter-parent 3.2.4: %!w(<nil>) mavenID=(groupId: com.wxt.itps.services artifactId: public version: 0.0.1-SNAPSHOT)

DEBUG error attempting to find sub-group licenses error=unable to resolve pom com.wxt.itps public 0.0.1-SNAPSHOT: %!w(<nil>) mavenID=(groupId: com.wxt.itps artifactId: public version: 0.0.1-SNAPSHOT)

DEBUG unable to convert relationship type to CycloneDX JSON, dropping: "{From:0xc000347280 To:Pkg(name=\"spring-boot-devtools\" version=\"\" type=\"java-archive\" id=\"033e397b919ab6bc\") Type:contains Data:<nil>}"

tried to scan a npm project, also no dependencies element in output, while see many errors in verbose log:
[0006] DEBUG unable to convert relationship type to CycloneDX JSON, dropping: "{From:Pkg(name=\"zrender\" version=\"5.4.4\" type=\"npm\" id=\"31b5925a6366e164\") To:Location<RealPath=\"/pnpm-lock.yaml\"> Type:evident-by Data:<nil>}"

all those logs lack of real helpful information to address underlying problem.

@WestFarmer -- unable to resolve pom org.springframework.boot spring-boot-starter-parent 3.2.4 -- this seems to be a fairly clear message that Syft needs to resolve this POM, but was unable to. This is because Syft does not enable network resolution for anything by default. Maven, however, benefits from network resolution considerably and can be enabled with --enrich flag. (e.g. --enrich all).
That said, you still won't see any dependency relationships: the Java cataloger needs to get these implemented -- that is actively being worked on and should land reasonably soon, though.

Syft needs to resolve this POM

from where ? local maven repository or the final artifact built by maven?
all the jars and poms already in my local maven repository
all the poms already exists in the final artifact built by maven
so this still doesn't make sense

@kzantow
[ggfan@fedora 4A-services-public]$ syft scan dir:. -o syft-json=target/sbom-syft.json -vv --enrich all
unknown flag: --enrich

@WestFarmer this was a feature newly added with syft 1.13, mind updating and trying again?

already in my local maven repository
The --enrich all will enable looking in your local maven. .m2/repository for artifacts; this should help you considerably and should be very fast if no network is required 👍

The next release will include a change that surfaces dependencies for Java artifacts and Maven projects. Please let us know if there are any ways we can improve this!


Cadence name=lts / cadence version=2020.1 is not valid for order XXXXXX

We part of the Get Licence step, we got  a fatal message
fatal: [localhost]: FAILED! => {"changed": true, "cmd": ["/tmp/ansible.97_43q7x/viya4-orders-cli", "license", "--file-path", "/deployments/sas-viya-aks/default/site-config", "--file-name", "license", "9CQSQK", "lts", "2020.1"], "delta": "0:00:01.068394", "end": "2022-08-05 07:25:56.784645", "msg": "non-zero return code", "rc": 1, "start": "2022-08-05 07:25:55.716251", "stderr": "2022/08/05 07:25:55 INFO: no config file found\n2022/08/05 07:25:56 ERROR: asset request failed: {"version":2,"httpStatusCode":400,"message":"Bad Request","details":["98531c7d-fc13-4586-aa41-77127648d2ec"],"errors":[{"message":"Cadence name=lts / cadence version=2020.1 is not valid for order ______"}]}", "stderr_lines": ["2022/08/05 07:25:55 INFO: no config file found", "2022/08/05 07:25:56 ERROR: asset request failed: {"version":2,"httpStatusCode":400,"message":"Bad Request","details":["98531c7d-fc13-4586-aa41-77127648d2ec"],"errors":[{"message":"Cadence name=lts / cadence version=2020.1 is not valid for order _________."}]}"], "stdout": "", "stdout_lines": []}
I have hidden the Order number

You need to select the appropriate cadence version according to your software order as seen below:

You can specify this inside your ansible-vars.yaml file
Ex:
V4_CFG_ORDER_NUMBER:  'xxxxxxxx'  #SAS order number
V4_CFG_CADENCE_NAME: 'lts' # lts or stable
V4_CFG_CADENCE_VERSION: '2022.1' #cadence version

The cadence version in the log shows: cadence version=2020.1 which is not 2022.1 I believe you have a typo. Please verify

That was the issue...thanks for the help


Csharp Client - breaking change, Base URL now required to have an ending slash

I recently upgraded to 14.0.3 (I don't remember from which version) and the runtime from Net50 to Net60. After running the generator, I have all tests failing. After reviewing the generated code, I see that a slash would now be required in the configured base URL. I can modify all my config files, but this is a breaking change.
Older nswag generated code:
var urlBuilder_ = new System.Text.StringBuilder();
urlBuilder_.Append(BaseUrl != null ? BaseUrl.TrimEnd('/') : "").Append("/mypath");

Code generated with 14.0.3:
var urlBuilder_ = new System.Text.StringBuilder();
if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);
// Operation Path: "mypath"
urlBuilder_.Append("mypath");

I think the problem is, that the BaseUrl property is not used. The logik to replace the "/" is now in the property but the methods use the _baseUrl and not the property.
        public string BaseUrl         {             get { return _baseUrl; }             [System.Diagnostics.CodeAnalysis.MemberNotNull(nameof(_baseUrl))]             set             {                 _baseUrl = value;                 if (!string.IsNullOrEmpty(_baseUrl) && !_baseUrl.EndsWith("/"))                     _baseUrl += '/';             }         }
                    var urlBuilder_ = new System.Text.StringBuilder();                     if (!string.IsNullOrEmpty(_baseUrl)) urlBuilder_.Append(_baseUrl);                     // Operation Path: "api/v1/Controller/Method"                     urlBuilder_.Append("api/v1/Controller/Method");


fix: always set controlplane default envs

What this PR does / why we need it:
always set default environment variables for controlplane resource, fix the bug that POD_NAME and POD_NAMESPACE is not set when any env specified in ControlPlane
Which issue this PR fixes
fixes #63
Special notes for your reviewer:
PR Readiness Checklist:
Complete these before marking the PR as ready to review:

[ ] the CHANGELOG.md release notes have been updated to reflect significant changes

Closed this and re-submit in #113 since signing for commits is required.


NoDevice error on Windows when attempting audio playback

I created the following minimal program:
use std::io::{BufReader, Cursor};

use rodio::{Decoder, OutputStream, Source};

fn main() {
    let (_, stream_handle) = OutputStream::try_default().expect("Sound I/O failed");
    let file = BufReader::new(Cursor::new(include_bytes!("test.wav")));
    let source = Decoder::new(file).expect("Sound decoding failed");
    let converted_samples = source.convert_samples();
    stream_handle
        .play_raw(converted_samples)
        .expect("Sound playback failed");
}

On my Windows machine, cargo run produces the following output:
❯ $Env:RUST_BACKTRACE=1; cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.12s
     Running `target\debug\tmp.exe`
thread 'main' panicked at 'Sound playback failed: NoDevice', src\main.rs:12:10
stack backtrace:
   0: std::panicking::begin_panic_handler
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\std\src\panicking.rs:575
   1: core::panicking::panic_fmt
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\core\src\panicking.rs:64
   2: core::result::unwrap_failed
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74/library\core\src\result.rs:1790
   3: enum2$<core::result::Result<tuple$<>,enum2$<rodio::stream::PlayError> > >::expect<tuple$<>,enum2$<rodio::stream::PlayError> >
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74\library\core\src\result.rs:1069
   4: tmp::main
             at .\src\main.rs:10
   5: core::ops::function::FnOnce::call_once<void (*)(),tuple$<> >
             at /rustc/2c8cc343237b8f7d5a3c3703e3a87f2eb2c54a74\library\core\src\ops\function.rs:250
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error: process didn't exit successfully: `target\debug\tmp.exe` (exit code: 101)

When I play back the sound file in VLC, it sounds perfectly fine. I'm assuming the error is thrown here. Am I using rodio correctly? Is this a bug?

I changed my original documentation-based approach to one based on this example.
This works for me:
use std::io::{BufReader, Cursor};

fn main() {
    let (_stream, handle) =
        rodio::OutputStream::try_default().expect("Output stream failed to open");
    let sink = rodio::Sink::try_new(&handle).expect("Sink open failed");

    let file = Cursor::new(include_bytes!("test.wav"));
    sink.append(rodio::Decoder::new(BufReader::new(file)).expect("Decode failed"));
    sink.sleep_until_end();
}

If anyone stumbles upon this thread through a search engine later, I'm not entirely sure why yet but that should do the trick!

I'm sorry for my English... let (_, stream_handle), _ has a very short lifespan and is only valid in the current statement, so rust releases the OutputStream, resulting in no devices behind, and let (_tmp, stream_handle) will work fine. Because Rust thinks that _tmp lifecycle isn't just in the current statement, it's just that there are unused tags

I'm sorry for my English... let (_, stream_handle), _ has a very short lifespan and is only valid in the current statement, so rust releases the OutputStream, resulting in no devices behind, and let (_tmp, stream_handle) will work fine. Because Rust thinks that _tmp lifecycle isn't just in the current statement, it's just that there are unused tags

Good to know, thanks!


[Snyk] Upgrade org.bouncycastle:bcutil-jdk18on from 1.72 to 1.73

This PR was automatically created by Snyk using the credentials of a real user.Snyk has created this PR to upgrade org.bouncycastle:bcutil-jdk18on from 1.72 to 1.73.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 23 days ago, on 2023-04-12.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Fixed in https://github.com/swedenconnect/credentials-support/pull/42