feat:isMemberOfProfile

This PR introduces a new function is_member_of_profile.
Fixes #5

Hello @Avinash-kumar-82 this issue has already been worked on and the issue has been raised for PR by @Manush-2005 first, hence I would like to consider his PR.
And please comment on an issue and only raise PR ones I assign you the issue to avoid these kind of clash going forward.


Fix formatting on source tarballs

Fixes the formatting of the source files to align with the original ask in ART-4155

/lgtm


Static is not properly generated in production

This is where static is generated:
https://github.com/ietf-ribose/bibxml-service/blob/9258b7e4d8fea856e68e084658aba27b1dd17dd9/docker-compose.yml#L65
This may not be happening in prod, because JS references a nonexistent file, causing broken GUI (e.g., no button on this management page.
Currently this only affects JS, but once we use the same mechanism for CSS it will also break CSS.

@strogonoff this is happening here:
https://github.com/ietf-ribose/bibxml-service/blob/9258b7e4d8fea856e68e084658aba27b1dd17dd9/k8s/ws/ws-deployment.yaml#L24
Is there a command to verify that those generated assets are created?

@strogonoff there's also a difference now with the command in k8s, which uses runserver instead of daphne.
https://github.com/ietf-ribose/bibxml-service/blob/9258b7e4d8fea856e68e084658aba27b1dd17dd9/docker-compose.yml#L66-L70
@kwkwan can you help update that?

@strogonoff this is happening here:
https://github.com/ietf-ribose/bibxml-service/blob/9258b7e4d8fea856e68e084658aba27b1dd17dd9/k8s/ws/ws-deployment.yaml#L24
Is there a command to verify that those generated assets are created?

Not really, it is an idempotent command and it can be run at each deployment/instance startup.

The file you referenced also sets DEBUG to True and host to localhost.
I don’t think we actually use this setup in production, because Django would reject requests from non-localhost (unless we have some kind of proxy setup that overrides HTTP Host header, turning off Django’s checks against attacks that rely on header faking, which would be bad).
Additionally, I am not seeing tracebacks on 500 errors, which would happen if we had DEBUG set to True.

In production environment, PRIMARY_HOSTNAME is set to *, DEBUG is set to 0 and the command to start the frontend web application is python manage.py collectstatic --noinput && daphne bibxml.asgi:application -p 8000 -b <IP_ADDRESS>.

Good. Hostname must match dev.bibxml.org though (infosec matter).

I confirmed that static is generated with current Docker Compose setup when DEBUG=0 and Daphne is used, so missing static looks to be production environment specific.

Correction, there’s something going on with static and clean-slate Docker setup, investigating…

The static problem I encountered was related to different behavior of mounted volumes using Docker & Compose on Linux vs. macOS. It’s probably unrelated to modules not being built in production.

I’ve pushed a fix. Note that there’s another management command that needs to be run before collectstatic: https://github.com/ietf-ribose/bibxml-service/blob/main/docker-compose.yml#L70


feature: Remove MB space

Feature Description
The MBS is no longer necessary now that edgeDeployment is created and placed in KubeStellar namespace, and syncerconfigs are created and managed by the Mailbox Controller in the KubeStellar namespace
Proposed Solution
remove the MBS workspace/space creation:

[ ] from the installers,
[ ] from the kubectl plugins,
[ ] and from the documentation

Want to contribute?

[x] I would like to work on this issue.

Additional Context
No response

closing, as not relevant to ks-0.20


<Far Cry 4>

Game Title
Far Cry 4
Game Website
https://www.ubisoft.com/en-au/game/far-cry/far-cry-4
Anti-Cheat Software
Other
Status of the Anti-Cheat
❔ Unconfirmed
Proof of Mention
N/A

I could not find any information suggesting that the game uses any sort of anti cheat


 Parses commands
directly from markdown files to make them executable.

Usage:
  runme [flags]
  runme [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  extension   Check your Runme VS Code extension status
  fmt         Format a Markdown file into canonical format
  help        Help about any command
  list        List available commands
  open        Launch Runme in a headless web client
  print       Print a selected snippet
  run         Run a selected command
  tui         Run the interactive TUI

Flags:
      --allow-unknown                Display snippets without known executor (default true)
      --allow-unnamed                Allow scripts without explicit names
      --background                   Enable running background blocks as background processes
      --chdir string                 Switch to a different working directory before executing the command (default "/home/raki")
      --entries int                  Number of entries to show in TUI (default 5)
      --env-order stringArray        List of environment files to load in order. (default [.env.local,.env])
      --exit                         Exit TUI after running a command
      --filename string              Name of the README file (default "README.md")
      --git-ignore                   Whether to respect .gitignore file(s) in project (default true)
  -h, --help                         Help for runme
      --ignore-pattern stringArray   Patterns to ignore in project mode (default [node_modules,.venv])
      --insecure                     Run command in insecure-mode
      --load-env                     Load env files from local project. Control which files to load with --env-order (default true)
      --log                          Enable logging
      --log-file string              Log file path (default "/var/tmp/runme.log")
      --project string               Root project to find runnable tasks
  -s, --server string                Server address to connect runner to
      --tls string                   Directory for TLS authentication (default "/home/raki/.config/runme/tls")
  -v, --version                      Version of runme

Use "runme [command] --help" for more information about a command.

Feedback:
  For issues and questions join the Runme community at https://discord.gg/runme
~ $ runme -v
runme version 0.0.0 (unknown) on unknown
~ $ runme --version
runme version 0.0.0 (unknown) on unknown
~ $

maybe show 3.2.3 right?
https://github.com/stateful/runme/issues/181 again?

Hi @officel, thank you for reporting the issue, to confirm, could you please let me know the output of the following command?
which runme

Hi! @pastuxso
$ type runme
runme is /home/linuxbrew/.linuxbrew/bin/runme
$ which runme
/home/linuxbrew/.linuxbrew/bin/runme
$ file /home/linuxbrew/.linuxbrew/bin/runme
/home/linuxbrew/.linuxbrew/bin/runme: symbolic link to ../Cellar/runme/3.2.3/bin/runme
$ file /home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3/bin/runme
/home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3/bin/runme: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /home/linuxbrew/.linuxbrew/lib/ld.so, Go BuildID=uqf2BEOOxodv1MYM1M16/_KXiAzet_3tMV07rEyu8/chxS_Q4hfn-lRgZG5ZMW/AxI4xMY_j5ye4nc5XMgF, stripped

OK?

nnnn
https://github.com/stateful/runme/pull/517
https://github.com/Homebrew/homebrew-core/blob/master/Formula/r/runme.rb

:raised_hands: Thank you @officel, I wanted to make sure you are using the binary from the homebrew installation, with your feedback I'll check what's happening.

I replicated the issue on my side, It even happens if you do it from the sources. It will be planned to be solved in our next sprint.
You're on your own. Failures are expected so don't create any issues, please!
==> Fetching runme
==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/72e857d3a3bb647ff7d4b0a0f817d8c452cb080f/Formula/r/runme.rb
Already downloaded: /home/cristian/.cache/Homebrew/downloads/c3ab7464f7627c3bb41ba50b69bb6b5cc471cb69afe42102e3676f949a140dfd--runme.rb
==> Downloading https://github.com/stateful/runme/archive/refs/tags/v3.2.3.tar.gz
Already downloaded: /home/cristian/.cache/Homebrew/downloads/799f0dfb19af3149944f2206fdb975ad798845cf1bdfb6848df51cfbbe8af59f--runme-3.2.3.tar.gz
==> Reinstalling runme
==> go build -o /home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3/bin -ldflags=-s -w -X github.com/stateful/runme/internal/version.BuildDate=2024-03-17T22:30:36Z -X github.com/stateful/runme/internal/version.BuildVersion=3.2.3 -X github.com/stateful/runme/internal/version.Commit=Homebrew
==> Caveats
zsh completions have been installed to:
  /home/linuxbrew/.linuxbrew/share/zsh/site-functions
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3: 8 files, 29.3MB, built in 1 second
==> Running `brew cleanup runme`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

@officel I think you can install runme from source for now, In the next release it will generate a new bottle.

 $ export HOMEBREW_NO_INSTALL_FROM_API=1
 $
 $ brew reinstall -s runme
==> Tapping homebrew/core
Cloning into '/home/linuxbrew/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1914453, done.
remote: Counting objects: 100% (139/139), done.
remote: Compressing objects: 100% (110/110), done.
remote: Total 1914453 (delta 92), reused 54 (delta 29), pack-reused 1914314
Receiving objects: 100% (1914453/1914453), 722.35 MiB | 5.20 MiB/s, done.
Resolving deltas: 100% (1364978/1364978), done.
Tapped 3 commands and 7021 formulae (7,370 files, 799.8MB).
Warning: building from source is not supported!
You're on your own. Failures are expected so don't create any issues, please!
==> Fetching runme
==> Downloading https://github.com/stateful/runme/archive/refs/tags/v3.2.3.tar.gz
Already downloaded: /home/raki/.cache/Homebrew/downloads/799f0dfb19af3149944f2206fdb975ad798845cf1bdfb6848df51cfbbe8af59f--runme-3.2.3.tar.gz
==> Reinstalling runme
==> go build -o /home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3/bin -ldflags=-s -w -X github.com/stateful/runme/v3/internal/version.BuildDate=2024-03-17T22:30:36Z -X github.com/stateful/runme/v3/internal/version.BuildVersion=3.2.3 -X github.com/stateful/runme/v3/internal/version.Commit=Homebre
==> Caveats
Bash completion has been installed to:
  /home/linuxbrew/.linuxbrew/etc/bash_completion.d
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/runme/3.2.3: 8 files, 29.4MB, built in 1 second
==> Running `brew cleanup runme`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
 $
 $ runme -v
runme version 3.2.3 (Homebrew) on 2024-03-17T22:30:36Z

It seems to be ok. Thanks!

Awesome, thanks to you @officel :+1:


Feat/angular 10

Description
Upgrade to Angular 10 and address audit issues
What's included?

Updated Angular core and material to version 10
Ran audit fix

Test Steps

[ ] Avoid error trying to update webdriver by setting the following in your environment: export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD='true'
[ ] npm run serve
[ ] Verify demos still work as expected
[ ] npm run serve:prod
[ ] Verify demos still work as expected
[ ] npm run build:lib
[ ] Verify builds to completion

General Tests for Every PR

[ ] npm run serve:prod still works.
[ ] npm run tslint passes.
[ ] npm run stylelint passes.
[ ] npm test passes and code coverage is not lower.
[ ] npm run build:lib still works.

Screenshots or link to StackBlitz/Plunker

Any ETA on this?

🎉


⚠ GitLab Server has degraded performance

In 9ce9156, GitLab Server (https://gitlab01.its-telekom.eu) experienced degraded performance:

HTTP code: 200
Response time: 8759 ms

Resolved: GitLab Server performance has improved in bb2fe6d.


Update KB number and URL for February 2018

.NET 3.5 Dockerfile updates for February 2018 patch.

@dotnet-bot test this please


Use logrus for gorm logging

Add a gorm logger implementation that wraps a logrus.Logger
Use this new logger for all gorm.DBs created by db.Factory
Finally, export the new logger as glogrus.Logger for reuse across the
org

Another option is to export the logger from github.com/acorn-io/z/zgorm. I'm not convinced it's prettier that way, but here's what it would look like for comparison.


[ETFE-3056]: added MovementReviewAnswers page/controller/navgiation

This now includes content changes to the invoice details page and a movement details check answers page.


Is UGUI objects supported

I noticed UGUI's button is not affected by FSR3 when observing with eyes.
Is ugui object upscaled by fsr3?
and how could I determine the actual rendered resolution?

Hi,
This is expected and is what you'll typically want. FSR2/3 Upscaling is meant to be used only on 3D elements in the scene, while you'll want 2D UI elements to be rendered at full native resolution. This is what most games with dynamic resolution scaling do, in order to keep the UI sharp and crisp. This happens naturally with FSR2/3 Upscaling because the upscaling component is applied to the 3D scene camera, while UI is handled separately and gets drawn after the 3D scene camera is done.
The actual internal rendering resolution is logged by the FSR3 Upscaler component when it is initialized. Looks for a line in the log saying "Setting up FSR3 Upscaler with render size: 1280x720, display size: 1920x1080" or similar. This line gets logged any time you change the FSR quality mode as well, or any other setting that requires a restart of FSR's systems.
There is also a function in the Fsr3Upscaler class named GetRenderResolutionFromQualityMode that will return the expected render resolution, given a display resolution and quality mode as inputs.


Add support for enabling traces

Adding support for enabling the tracing feature.

Our controller already has a compile time flag to enable tracing, you must set OPENTELEMETRY_ENDPOINT_URL as an env var.
Updating Dockerfile to use latest stable version of Rust and Alpine
Update telemetry.rs code and crates for better telemetry and trace pattern usage.
Update k8s-openapi and kube-rs crates
Update code to work with updates crates.

Added OPENTELEMETRY_ENDPOINT_URL environment variable to the Helm chart deployment https://github.com/tembo-io/app-deploy-dev/commit/df712eaef2dfc6293ac804daf5085cf619be70fd
This will need to be added for staging and production deployments as well before we merge.


Make deps consistent with hworker

Review, please.

This change is

@dangra do we need something from this PR to be moved to https://github.com/scrapinghub/kumo-stack-hworker/pull/5? If not, I'll close this one.

@vshlapakov move pyodbc and scipy


⚠ Bofrost.be has degraded performance

In 567d327, Bofrost.be (https://www.bofrost.be) experienced degraded performance:

HTTP code: 200
Response time: 1290 ms

Resolved: Bofrost.be performance has improved in 5a7c5d6 after 13 minutes.


Wrong transfer rate

My speed test returns this result
"the transfer rate 3121.395, the percent 50.0, the speed unit is SpeedUnit.Mbps. "
I am pretty sure my Internet speed is not 3121.395 Mbps.

I'm getting this on iOS (iPhone 11, iOS v13.6), but my Android results look pretty realistic.


Correct line 329 so it doesn't loose list of items

In CollectionController on line 329 you have
usersCollection.Concat( collectionsResponse.Items ) this however does not ADD the items to the existing collection Instead it creates a new IEnumerable, which it promptly drops on the floor

Thank you for finding and fixing this.  I apologize I did not see your PR until just now as I was out for a while.


Remove 'Use the new cluster tools' banner

On the cluster dashboard page, we show a banner at the top - User the new Cluster tools to manage ...
We can remove this banner now.

Ticket #9229 - Test Results - ✅
Verified w/ HA Helm Rancher on v2.7-5f98b0f28bc8a48366e9ced8f0a0fea3d826d90d-head:

Fresh install of Rancher v2.7-head
Navigate to Cluster Explorer > local > Cluster Dashboard
Verified - Use the new cluster tools... banner has been removed; as expected

Screenshot:


feat: speedup library_search by using two DiscrTrees

Previously, library_search used a single DiscrTree. There is a cached DiscrTree covering the whole library (and which is cached to disk), and then when we call library_search, we traverse the declarations in the current file, adding those into that DiscrTree.
This PR speeds up that process by using a second independent DiscrTree for the declarations in the current file. This means that the cached tree for the library does not need to be "edited in place", and so we save some time.
On the test file on my computer this speeds up from around 10.0s to around 8.2s. When calling library_search low down in a large file we should expect larger gains.
The PR also does some refactoring work on DeclCache, which will be useful if/when we install global caching for other lookup tactics such as propose or rewrites.

bors merge


Update Help Page, Improve Visualisation Exports, and Enhance User Messaging

Summary
This PR includes updates to the LIGYSIS web application to improve user experience, enhance visualisation outputs, and provide clearer guidance for users. Key changes include updates to the help page, improvements in ChimeraX and PyMOL exports, adjustments to user messaging, and removal of outdated or unnecessary details.
Key Changes
1. Help Page Updates

Revised the help page to reflect the updated combined input file size limit (50MB).
Clarified the compatibility of structure file formats (mmCIF and PDB) and their requirements.
Updated the example results image to showcase bovine rhodopsin.

2. Visualisation Export Enhancements

PyMOL Exports:

Implemented HETATM-specific colouring for better ligand and molecule distinction.
Applied hide sticks, name N+O+C to simplify visualisation.
Included custom atomic colouring schemes derived from ChimeraX/JMol for enhanced visual clarity.

ChimeraX Exports:

Added rib and style all stick for improved structural clarity.
Applied color byhet and removed hydrogen atoms (del H) to produce cleaner visuals.

3. User Messaging Improvements

Updated the home page to emphasise that the service is open to commercial users as well as academic users.
Adjusted session cookie messaging to clarify their usage and how to modify settings in the browser.
Removed the display of job IDs on user results pages to streamline the interface and improve readability.

I merged the latest changes from the master branch. Tried out @JavierSanchez-Utges's new features and my own from pdb-uploads PR #6. Everything looks good in local version and www-dev instance.


Config for Humanoid environment.

Hi Archit,
Thanks for sharing the code of this great work.
I would like to ask if you can provide the config file of off-policy DADS for Humanoid environment. It seems to me that the configuration for off-policy DADS would be a bit different from the numbers specified in the paper. It would be helpful if we can have access to it. Thanks!

Hi,
I have added both the on-policy and off-policy configuration files. Hope it helps!

This is great. Thanks! Just one additional question: is there any guideline in balancing the agent and the dynamic model training steps (e.g., what metrics to look at)?

The training steps for dynamics models is decided based on dimensionality / size of the state-space (so smaller state-space, fewer steps).
The agent steps are decided somewhat by how much data is being added to the buffer in every iteration. We want to take as many steps possible without overfitting. I have no strong metrics or guidelines but the initial intuition was to take about 4 steps for every step collected (in expectation of course).


[Blog]: ADD VUE.JS DOCUMENTATION RESOURCE FOR WEB-DEV

Description

This issue is about adding Vue.js framework's official documentation.
It's one of the trending front end JavaScript framework for building user interfaces and single-page applications.

Screenshot

Published Link

Official Documentation of Vue.js: https://vuejs.org/

🔄 Websites
Other
Checklist ✅

[X] I checked and didn't find similar issue
[X] I am from GSSoC23
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue (blank for no)

Add this in framework card and also move react docs from webdev to frameworks. Consider adding few more relevent resources.

Yeah sure @Astrodevil, i will make the work done as per your request!


added another fact

Short description of what this resolves:
Changes proposed in this pull request:

Fixes: #

Thank you for taking the time to contribute! This is sincerely appreciated. 😇
(Powered by GitMate.io)


client styles not applied deterministically

Client Component style are currently breaking when rendered after the initial load. For example, the following bug can be seen in mdxts where some styles are not being applied when the component is rendered on focus/hover:

Interestingly, the first code block on that page does work correctly and will inject the appropriate styles once it has been hovered. This seems to be a case where the cache may be incorrect for the first instance and following instances break.

The fix for this ended being to always render the generated style elements:
export const CopyButton = ({
  value,
  className,
  css: cssProp,
}: {
  value: string
  className?: string
  css?: CSSProp
}) => {
  const active = useContext(PreActiveContext)
  const [copied, setCopied] = useState(false)
  const [classNames, styleElements] = css({
    all: 'unset',
    ...cssProp,
  })

  if (active === false) {
-    return null
+    return styleElements
  }

  return (
    <button
      className={className ? `${className} ${classNames}` : classNames}
      onClick={() => {
        navigator.clipboard.writeText(value)
        setCopied(true)
        setTimeout(() => setCopied(false), 1000)
      }}
    >
      {copied ? 'Copied!' : 'Copy'}
      {styleElements}
    </button>
  )
}


New Proposal: JSON Reference (JRef) media type

This PR adds a proposal for a JRef media type. I chose not to include commentary in the spec on why I made the decisions I made because I don't think that kind of thing belongs in a specification, but I will create an issue soon as a place to describe my vision and why I made certain choices.
I wrote this in formal spec language, but it's not in I-D format and it's not necessarily complete. It should be complete enough for people to get the idea. It can be converted to I-D format later if necessary.
Disclaimer (adapted from @handrews):

As a "new proposal PR", this PR is for accepting a baseline from which to start discussions.  As noted in the README, merging this PR does not indicate an endorsement by the JSON Schema Org, nor does it necessarily mean that it will ever be submitted to the IETF.  Those things depend on the outcome of further discussions of this and other proposals.
Therefore for this and other such PRs:
Please do!

Check that you can get the general idea of the proposal from what's currently written, even if not all details are perfectly clear
Check for paragraphs/wording that is difficult to understand
Check for anything that's flat-out wrong

Please do not...

Suggest substantive changes.  Please go ahead and file an issue for that!  (if possible, tag it with the jref label, but if GitHub won't let you, I'll take care of that)  You do not need to wait for the PR to merge before filing discussion issues
*>  Raise questions about scope and direction in general.  Please also file issues for those things without waiting for the PR to merge!  As they are larger concerns than any one proposal you should not tag them with this proposal's label

@jdesrosiers how do you read $href? From the way this is written, I expect you pronounce the $.  I don't pronounce it in my head; I only read "h-ref".
In a lot of places you have "a $href," which is slightly jarring to me.  I think I prefer "an $href."  Maybe that's just me.
Going back to read https://github.com/json-schema-org/referencing/issues/7 for now to get some context.  That's the only thing that jumped out at me.

I pronouce it "dollar-h-ref". In conversation I often drop the "dollar" when everyone knows what I'm talking about, but I think of $ in all the keywords as being pronounced as "dollar".

@jdesrosiers it turns out that the build system looks for draft-whatever.md, and I can't figure out how to exclude a file.  So I think it makes sense to either rename this just jdesrosiers-jref.md or apply the following patch which will build cleanly.  It's the minimal boilerplate plus adjusting heading levels to what the build wants and putting the title in the initial YAML.  Whichever you prefer is fine with me:
diff --git a/draft-jdesrosiers-jref.md b/draft-jdesrosiers-jref.md
index 8453406..bd0049a 100644
--- a/draft-jdesrosiers-jref.md
+++ b/draft-jdesrosiers-jref.md
@@ -1 +1,14 @@
-# JRef Specification
+---
+title: JRef Specification
+docname: draft-jdesrosiers-jref-latest
+submissionType: IETF
+category: info
+ipr: trust200902
+
+author:
+ -
+    ins: J. Desrosiers
+    name: Jason Desrosiers
+    country: U.S.A.
+
+--- abstract
@@ -3 +15,0 @@
-## Introduction
@@ -10 +22,3 @@ resource.
-NOTE: This document is written as a spec and therefore doesn't have commentary
+--- note_Note_to_Readers
+
+This document is written as a spec and therefore doesn't have commentary
@@ -15 +29,3 @@ information see https://github.com/json-schema-org/referencing/issues/7.
-## Media Type
+--- middle
+
+# Media Type
@@ -19 +35 @@ The JRef media type is identified as `application/reference+json` and uses the
-### Fragments
+## Fragments
@@ -31 +47 @@ implementations MUST raise an error.
-### Profiles
+## Profiles
@@ -35 +51 @@ This media type allows the "profile" media type parameter as defined by [RFC
-## The "reference" Type
+# The "reference" Type
@@ -37 +53 @@ This media type allows the "profile" media type parameter as defined by [RFC
-### Syntax
+## Syntax
@@ -54 +70 @@ has a `$href` property and the value of that property is a string.
-### Following References
+## Following References
@@ -86 +102 @@ semantics of the media type of the referred to document.
-## Values
+# Values

Done. I went with renaming. I considered using a prefix other than "draft", but I couldn't think of a good word, so I went with your suggestion of dropping the prefix altogether.


Multiple instantiations of class on same mock

Hello,
I have a lambda that loops through 7-8 AWS accounts and assumes a role in each and then runs ListSecretsCommand using aws secretsmanager with SDKv3.
However, I am unable to efficiently set up the mock for ListSecretsCommand due to the fact that I do not pass it anything during instantiation. So I'm only able to set up my mock like:
for(const env of myEnvs) {
        secretsClientMock.on(ListSecretsCommand).resolves({
            SecretList: myAccountsSecretList.map(secretName => {
                return { Name: `${env}${secretName}` }
            })
        })
    }

However, this loop causes it to only resolve the LAST value passed into the resolves(). It will not set up a watcher for EACH item in the loop? Is there a way around this? I do not know the exact ordering of myEnvs at all times (yes I could sort them but updating the code for a test is /vomit).
Ideally I could set a bunch of mock resolves and it wouldn't matter what order it would just match them 1:1 as they appear

However, this loop causes it to only resolve the LAST value passed into the resolves(). It will not set up a watcher for EACH item in the loop?

This is possible with resolvesOnce:
const mock = mockClient(S3Client);
mock.on(HeadObjectCommand).resolvesOnce({VersionId: "1"}).resolvesOnce({VersionId: "2"});

const s3 = new S3Client();

console.log(await s3.send(new HeadObjectCommand({Bucket: 'bucket', Key: 'key'})));
console.log(await s3.send(new HeadObjectCommand({Bucket: 'bucket', Key: 'key'})));

I do not know the exact ordering of myEnvs at all times

In this case, you should use callsFake() to produce dynamic response:
const mock = mockClient(S3Client);
mock.on(HeadObjectCommand).callsFake((input) => {
  return {VersionId: input.Key + "Version"};
});

const s3 = new S3Client();

console.log(await s3.send(new HeadObjectCommand({Bucket: 'bucket', Key: 'key1'})));
console.log(await s3.send(new HeadObjectCommand({Bucket: 'bucket', Key: 'key2'})));

Please reopen if that does not answer your question.


[C++] Remove superfluous static constexpr definitions

Since C++17, static constexpr members are automatically considered inline.

Rationale for this change

What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

This will probably fail on MinGW (as fixed elsewhere by https://github.com/apache/arrow/pull/42236/commits/3ec393929390c58b37f35be83350f56fae2a8df5), but let's try anyway. @felipecrv

Weirdly, MinGW seems to pass, but we should try again after #42236 is merged (perhaps a type_id member reference in a test makes it fail?).

I rebased with #42236 now merged, let's see what entails.

... and indeed MINGW fails.

Ok, it seems that even an explicit inline qualifier doesn't help. This seems to be a bug in the MINGW64 port of gcc, so we'll have to live with it until we upgrade or demote that compiler in CI. @kou

For reference, the linker error:
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/arrow/compute/kernels/CMakeFiles/arrow-compute-vector-test.dir/vector_nested_test.cc.obj:vector_nested_test.cc:(.text$_ZN5arrow7compute12SwapListViewINS_12ListViewTypeEiEEvPNS_9ArrayDataExx[_ZN5arrow7compute12SwapListViewINS_12ListViewTypeEiEEvPNS_9ArrayDataExx]+0x117): undefined reference to `__imp__ZN5arrow12ListViewType7type_idE'
D:/a/_temp/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/14.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/arrow/compute/kernels/CMakeFiles/arrow-compute-vector-test.dir/vector_nested_test.cc.obj:vector_nested_test.cc:(.text$_ZN5arrow7compute11SetListViewINS_12ListViewTypeEiEEvPNS_9ArrayDataExT0_S5_[_ZN5arrow7compute11SetListViewINS_12ListViewTypeEiEEvPNS_9ArrayDataExT0_S5_]+0x12f): undefined reference to `__imp__ZN5arrow12ListViewType7type_idE'

Some special handling is probably required for static inline members of dllexport classes. CLang handles them properly, but gcc doesn't, apparently.


Cannot use stubs for multipart requests with binary data with Spring Boot 2

Observed result
The WireMock server responds with an 500 error instead of the stub mapping for a multi-part request with binary data after the upgrade from Spring Boot 1 to Spring Boot 2.
java.lang.IllegalStateException: No multipart config for servlet
	at org.eclipse.jetty.server.Request.getParts(Request.java:2331)
	at org.eclipse.jetty.server.Request.getParts(Request.java:2319)
	at com.github.tomakehurst.wiremock.servlet.WireMockHttpServletRequestAdapter.safelyGetRequestParts(WireMockHttpServletRequestAdapter.java:295)
	at com.github.tomakehurst.wiremock.servlet.WireMockHttpServletRequestAdapter.getParts(WireMockHttpServletRequestAdapter.java:279)
	at com.github.tomakehurst.wiremock.verification.LoggedRequest.createFrom(LoggedRequest.java:70)
	at com.github.tomakehurst.wiremock.stubbing.InMemoryStubMappings.serveFor(InMemoryStubMappings.java:76)
	at com.github.tomakehurst.wiremock.core.WireMockApp.serveStubFor(WireMockApp.java:164)
	at com.github.tomakehurst.wiremock.http.StubRequestHandler.handleRequest(StubRequestHandler.java:50)
	at com.github.tomakehurst.wiremock.http.AbstractRequestHandler.handle(AbstractRequestHandler.java:47)
	at com.github.tomakehurst.wiremock.servlet.WireMockHandlerDispatchingServlet.service(WireMockHandlerDispatchingServlet.java:108)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)

Steps to reproduce
I have created a repository which demonstrates the minimal version of this problem here:
https://github.com/jmewes/wiremock-issue-1007
Environment

WireMock version: 2.19.0 (which depends on Jetty  9.2.24.v20180105)
Spring Boot version:  2.0.5.RELEASE (which depends on Jetty 9.4.12.v20180830)

Related issues

https://github.com/tomakehurst/wiremock/issues/952
https://github.com/tomakehurst/wiremock/issues/407
https://github.com/tomakehurst/wiremock/pull/887
https://stackoverflow.com/a/36489026/2339010

With this patch the described scenario would work for us:
diff --git a/src/main/java/com/github/tomakehurst/wiremock/servlet/WireMockHttpServletRequestAdapter.java b/src/main/java/com/github/tomakehurst/wiremock/servlet/WireMockHttpServletRequestAdapter.java
index bd0e5f3..808c6c9 100644
--- a/src/main/java/com/github/tomakehurst/wiremock/servlet/WireMockHttpServletRequestAdapter.java
+++ b/src/main/java/com/github/tomakehurst/wiremock/servlet/WireMockHttpServletRequestAdapter.java
@@ -36,6 +36,7 @@ import java.io.IOException;
 import java.io.InputStream;
 import java.nio.charset.Charset;
 import java.util.*;
+import javax.servlet.MultipartConfigElement;
 import javax.servlet.ServletException;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.Part;
@@ -275,6 +276,8 @@ public class WireMockHttpServletRequestAdapter implements Request {
                 String contentTypeHeaderValue = from(contentTypeHeader().values()).join(Joiner.on(" "));
                 InputStream inputStream = new ByteArrayInputStream(getBody());
                 MultiPartInputStreamParser inputStreamParser = new MultiPartInputStreamParser(inputStream, contentTypeHeaderValue, null, null);
+                MultipartConfigElement multipartConfigElement = new MultipartConfigElement((String)null);
+                request.setAttribute("org.eclipse.jetty.multipartConfig", multipartConfigElement);
                 request.setAttribute(org.eclipse.jetty.server.Request.__MULTIPART_INPUT_STREAM, inputStreamParser);
                 cachedMultiparts = from(safelyGetRequestParts()).transform(new Function<javax.servlet.http.Part, Part>() {
                     @Override

Is this an acceptable solution?

Thanks for posting this. I'll try and find time to take a look this week. At face value your solution looks good, but I'd like to consider it a little more before committing to it.

We've stumbled into the same problem updating our embedded jetty engine to 9.4.10 (.v20180503). Running internal tests using wiremock to stub external systems resulted in the same issue. Can confirm that the patch above will fix our problem.

Thanks @tomakehurst


transitGatewayID in @aws-cdk/aws-ec2 not creating in Ref! in synth template

I'm submitting a

[X] :beetle: bug report
[ ] :rocket: feature request
[ ] :books: construct library gap
[ ] :phone: security issue or vulnerability => Please see policy
[ ] :question: support request => Please see note at the top of this template.

What is the current behavior?
If the current behavior is a :beetle:bug:beetle:: Please provide the steps to reproduce

The ec2.CfnTransitGatewayAttachment has a property TransitGatewayId. While the object resolves to the correct logical ID, the correct Ref element is not being generated by synth resulting in "TransitGatewayId: TransitGateway" and a rollback.
const TransitGateway = new ec2.CfnTransitGateway(this, 'Transit_Gateway', {
      description: "Transit Gateway",
      vpnEcmpSupport: 'enable',
      defaultRouteTableAssociation: 'enable',
      defaultRouteTablePropagation: 'enable',
      tags: [{ key: 'Name', value: "Transit Gateway" }],
    });

const TransitGatewayAttachmentEgress = new ec2.CfnTransitGatewayAttachment(this, 'TransitGatewayAttachmentEgress', {
      transitGatewayId: TransitGateway.logicalId,
      vpcId: egressVPC.vpcId,
      subnetIds: [egressVPC.privateSubnets[0].subnetId, egressVPC.privateSubnets[1].subnetId],
      tags: [{ key: 'Name', value: "TG-Egress-Private_SubNet-Attachment"}],
    });
    TransitGatewayAttachmentEgress.addDependsOn(TransitGateway);

What is the expected behavior (or behavior of feature suggested)?
I receive a ref element for the transit gateway logical ID

What is the motivation / use case for changing the behavior or adding this feature?
Fix missing Ref element for TransitGatewayId:

TransitGatewayAttachmentEgress:
    Type: AWS::EC2::TransitGatewayAttachment
    Properties:
      SubnetIds:
        - Ref: EgressVPCPriavteEgressVPCSubNetSubnet1Subnet9F809618
        - Ref: EgressVPCPriavteEgressVPCSubNetSubnet2SubnetBE3E19B4
      TransitGatewayId: TransitGateway
      VpcId:
        Ref: EgressVPC08D3162E
      Tags:
        - Key: Name
          Value: TG-Egress-Private_SubNet-Attachment
    DependsOn:
      - TransitGateway

Please tell us about your environment:

CDK CLI Version: "@aws-cdk/core": "^0.36.0",
Module Version: "@aws-cdk/aws-ec2": "^0.36.0"
OS: [OSX Mojave]
Language: [TypeScript]

I think that your are looking for ref (TransitGateway.ref):
const TransitGatewayAttachmentEgress = new ec2.CfnTransitGatewayAttachment(this, 'TransitGatewayAttachmentEgress', {
      transitGatewayId: TransitGateway.ref /* ref */,
      vpcId: egressVPC.vpcId,
      subnetIds: [egressVPC.privateSubnets[0].subnetId, egressVPC.privateSubnets[1].subnetId],
      tags: [{ key: 'Name', value: "TG-Egress-Private_SubNet-Attachment"}],
    });
    TransitGatewayAttachmentEgress.addDependsOn(TransitGateway);

@jogold you're absolutely right! I had tried that locally, but must have made a mistake, it works as intended. A bit confusing that it does not have another more explicit property, but definitely working now. Thanks for your help.


Give ability to change theme of the editor

https://github.com/fortran-lang/playground/blob/0b87b12fd6b07b8545f9c7cb84388cc24fedc0dc/frontend/src/Editor.js#L5
Can be changed to the light theme, because in some situations the dark theme can be unreadable.
It would be useful to have an option to choose light or dark mode depending on your preferences.
Suggestions
for example by using this theme:
import "ace-builds/src-noconflict/theme-solarized_light";

Assign me this issue

@milancurcic  @Kartikey353  What is the progress for in the theme. I am a experienced in React framework and have build projects using crud operation. I want to join to in the fortran playground project. I would love to hear from you back..

Hi @Jay9874, welcome and thank you for your interest. I don't know if @Kartikey353 has any work in progress on this, there's no PR open at least. If you'd like to tackle this, that would be very welcome.

Hi @rajkumardongre, yes the issue is open and a PR would be very welcome!


Proxy property in setter has never type

Bug Report

🔎 Search Terms

Proxy property in setter has never type
Type 'any' is not assignable to type 'never'.(2322)
Typing Proxy Constructor Proxy Handler
Typing ProxyConstructor
Typing ProxyHandler

🕗 Version & Regression Information

This is a crash (misbehavior)

⏯ Playground Link

Playground link with relevant code
💻 Code

const myObj = {
  num: -1,
  arr: [1, 2, 3],
  str: '',
};

const proxy = new Proxy(myObj, {
  set(target, prop: keyof typeof myObj, value) {
    /* none of these works */
    // Ver. 1
    if (prop in target) target[prop] = value;
    // Ver. 2
    target[prop] = value;
    // Ver. 3
    target[prop as keyof typeof myObj] = value;
    // Ver. 4
    switch (prop) {
      case 'num':
      case 'str':
        target[prop] = value;
        break;
    }

    /* while these works */
    // Ver. 5
    switch (prop) {
      case 'num':
        target[prop] = value;
        break;
      case 'str':
        target[prop] = value;
        break;
    }
    // Ver. 6
    switch (prop) {
      case 'num':
        target[prop] = value;
        break;
      default:
        target[prop] = value;
        break;
    }

    return true;
  },
});

console.log('proxy : ', proxy);

🙁 Actual behavior
With TypeScript 4.5.4 (current latest) and currently Nightly version, this code is throwing error Type 'any' is not assignable to type 'never'.(2322) for the version 1,2,3,4 yet for version 5 and 6 no error is reported. If we remove one of the num prop or str, all the errors are gone.
Is there an explanation for this design?
Also asked on stack overflow
🙂 Expected behavior
We can use all of version 1,2,3,4 without having this TS2322 error.

Is there an explanation for this design?

Yes.  See #30769.  In most of your setups, the type of prop is not narrowed down from "num" | "str" | "arr"; since you're writing to target[prop] rather than reading from it, that produces an intersection (not a union) of all the possible types it could refer to.  If there's no overlap, the intersection collapses to never, because there's no possible value that works for all of them.

Bug Report
🔎 Search Terms

Proxy property in setter has never type
Type 'any' is not assignable to type 'never'.(2322)
Typing Proxy Constructor Proxy Handler
Typing ProxyConstructor
Typing ProxyHandler

🕗 Version & Regression Information

This is a crash (misbehavior)

⏯ Playground Link
Playground link with relevant code
💻 Code
const myObj = {
  num: -1,
  arr: [1, 2, 3],
  str: '',
};

const proxy = new Proxy(myObj, {
  set(target, prop: keyof typeof myObj, value) {
    /* none of these works */
    // Ver. 1
    if (prop in target) target[prop] = value;
    // Ver. 2
    target[prop] = value;
    // Ver. 3
    target[prop as keyof typeof myObj] = value;
    // Ver. 4
    switch (prop) {
      case 'num':
      case 'str':
        target[prop] = value;
        break;
    }

    /* while these works */
    // Ver. 5
    switch (prop) {
      case 'num':
        target[prop] = value;
        break;
      case 'str':
        target[prop] = value;
        break;
    }
    // Ver. 6
    switch (prop) {
      case 'num':
        target[prop] = value;
        break;
      default:
        target[prop] = value;
        break;
    }

    return true;
  },
});

console.log('proxy : ', proxy);

🙁 Actual behavior
With TypeScript 4.5.4 (current latest) and currently Nightly version, this code is throwing error Type 'any' is not assignable to type 'never'.(2322) for the version 1,2,3,4 yet for version 5 and 6 no error is reported. If we remove one of the num prop or str, all the errors are gone.
Is there an explanation for this design?
Also asked on stack overflow
🙂 Expected behavior
We can use all of version 1,2,3,4 without having this TS2322 error.

Thank you for explaining me all these, @fatcerberus.
I did see "This conditional type returns never when it should return the true branch" (https://github.com/microsoft/TypeScript/issues/31751) in the "not a bug" part, but it seems irrelevant.
And you are right, now I understand it's an intersection. (it can be "string" and can be "number" so it must be intersection of "string" and "number", meanly, "never"). However,,
There are two more doubts I didn't call out:

What is the correct pattern to achieve this purpose, except "as any"? how can I fix it? I don't want this to take you a lot of time. Throwing some links would be more than helpful to me.
after removing the property "str" or "num", the type of target[prop] changed to number | number[] or string|number[]. Shouldn't (one of)these be "never" as well?


Move coinbase to header

Delivers https://www.pivotaltracker.com/story/show/157214052
Respective specs PR: https://github.com/aeternity/protocol/pull/66
(For easing review, commit "Add mining account pubkey to header" is the same - rebased - as in past RFC PR #1165 )
TODO:

[x] Investigate and fix "aec_conductor_tests:block_candidate_test_/0: Get block candidate" unit test failure
[x] Investigate integration test make test failures
[x] Ensure full CI run passes
[x] Ensure Python UAT tests pass - see auxiliary CI workflow running on 05636c8e that is equivalent to 5a05048b UPDATE: Python UAT tests job passed
[x] Ensure system tests pass

Auxiliary CI job https://circleci.com/gh/lucafavatella/epoch/3812 on d8284d54 that is equivalent to dd08cc1a (I cherry-picked system test fix 3d2e8257 from master) UPDATE: Passed except long_chain.stay_in_sync - failing independently from this PR

[x] Double check test coverage UPDATE: I see unit test coverage of block mining reward to miner in aetx_tests
[x] Release notes
[x] Bump DB folder for environments
[x] Check if any updates to https://github.com/aeternity/protocol needed further to PR https://github.com/aeternity/protocol/pull/66 UPDATE: Content of PR 66 updated, list of reviewers updated.
[x] Check if any updates to https://github.com/aeternity/epoch/wiki needed

UPDATE: Refreshed reference to specs (wiki commit 2bf790ba - suboptimal comparison UI link
UPDATE: Updated HTTP examples in wiki (changes)

[ ] (Probably) Re-rebase on current master
[ ] Squash-and-merge with commit message:

Move coinbase to header
The mining reward is now applied after the application of transactions - it used to be applied before (because of coinbase tx as first tx).
No API for querying the blocks mined by a certain miner is added - it used to be possible to query that by piggybacking on the txs-per-account query.

There is no need to rebase to master (nothing relevant got merged).
I let CI run system tests though I consider this ready for review.

I will address comments in separate PR so not to delay merging of most of the code.


not_swagger_resource

When i run: rake swagger:docs
the result is : 1.0: 0 processed / 18 skipped
looking deeper into the swagger code i can see that klass.methods.include?(:swagger_config) has not been applied to the controller class in question.  I can see that generate_doc has the correct controllers to traverse over e.g.
{:processed=>[],
:skipped=>
[{:action=>:skipped, :reason=>:empty_path},
{:action=>:skipped, :path=>"api/v1/tokens", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/cache", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/deals", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/locations", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/campaigns", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/members", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/vouchers", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/addresses", :reason=>:klass_not_present},
{:action=>:skipped, :path=>"api/v1/orders", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/nav_items", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/nav_routes", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/auth", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/states", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"api/v1/banners", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"rails/mailers", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"rails/info", :reason=>:not_swagger_resource},
{:action=>:skipped, :path=>"rails/welcome", :reason=>:not_swagger_resource}]}
generator.rb
129: return {action: :skipped, path: path, reason: :not_swagger_resource} if !klass.methods.include?(:swagger_config) or !klass.swagger_config[:controller]

I'm having the same issue.
Theog did you find a solution?

I am also having this problem.

me too, guys did u found solution to this ?

Unfortunately I did not, have removed swagger for the time being.

Try this one
RAILS_ENV=production rake swagger:docs

This normally happens when there is a config issue. If you can provide an example then I can take a look at that.

@richhollis
How did this get resolved?  I have the same issue and the klass.methods doesn't include :swagger_config


Link broken for Abstracts on COMBINE21 page

On https://combine-org.github.io/events/ link for abstract submission goes to a submission confirmation page.
@chofski are there short urls now for these?

I think that is because the form is closed. Not familiar with Google forms so no idea.
I havn't generated the short URLs as not needed for the website, but feel free to create some (although no idea why they are needed now).

Ok, I've changed that now on the Abstracts form. It was set as closed on the "Responses" tab.
Re short urls, it was just for the registration announcement mail, but a hyperlink can be put in instead.


Issue with password protected ssh files

Hello, I set up my git to use a password-protected ssh key w/ a ssh-add agent.
When trying to run cargo generate I get SSH errors.
[ethan ~/prgming/wasm-example]$ cargo generate --git https://github.com/rustwasm/wasm-pack-template

⚠   Unable to load config file: /home/ethan/.local/share/cargo/cargo-generate.toml
Error: ⛔   Git Error: authentication required but no callback set; class=Ssh (23); code=Auth (-16)

[ethan ~/prgming/wasm-example]$ cargo generate --git git@github.com:rustwasm/wasm-pack-template
⚠   Unable to load config file: /home/ethan/.local/share/cargo/cargo-generate.toml
💡   Using private key: `$HOME/.ssh/id_rsa` for git-ssh checkout
Error: ⛔   Git Error: Failed to authenticate SSH session: Unable to extract public key from private key file: Wrong passphrase or invalid/unrecognized private key file format; class=Ssh (23)

Here is my ~/.gitconfig

gitconfig
[ethan ~/prgming/wasm-example]$ cat ~/.gitconfig

[url<EMAIL_ADDRESS>        insteadOf = https://github.com/
[user]
        name = EthanHindmarsh
        email =<EMAIL_ADDRESS>        signingkey = 9D74F79E7386BF75501DEA8FE8325E9DA8304F95
[push]
        gpgSign = false
[gpg]
        program = gpg2
[receive]
        advertisePushOptions = true
[commit]
        gpgsign = true
[init]
        defaultBranch = master

I believe the
[url<EMAIL_ADDRESS>        insteadOf = https://github.com/

is causing issues with the http url, and the password on my ssh key is causing issues with the ssh url
Is there any way for me to ignore my .gitconfig or use my ssh-add agent?
Thanks 👍

Hey @EthanHindmarsh,
Thanks for the detailed report.
So one thing is and remains a problem, that is protected ssh keys that are loaded via ssh-add, see #384
The other issue with the insteadOf gitconfig is already adressed in #520 and will be released quite soon with v0.13.0
You can already beta test this on the main branch if you like to.
Early feedback would indeed be very much appreciated.

Hey @EthanHindmarsh,
Thanks for the detailed report. So one thing is and remains a problem, that is protected ssh keys that are loaded via ssh-add, see #384
The other issue with the insteadOf gitconfig is already adressed in #520 and will be released quite soon with v0.13.0 You can already beta test this on the main branch if you like to.
Early feedback would indeed be very much appreciated.

Oh nice😁
I tried searching for either of these myself and didn't see any open issues at a glance, will close this now👍


Client is raising Redis::Cluster::NodeMightBeDown when Redis Cluster is observed to be healthy

Issue
A small but non-trival percentage of Redis::Cluster::NodeMightBeDown is seen on some of my Sidekiq jobs. I understand that this error is raised in the find_node method after 3 retries where @node.reload! is called on each retry in an attempt to fix the @topology.clients and @slots hash.
Setup
For context, the affected Redis server is a 3-shard Redis Cluster. But looking at the observability metrics, we are fairly confident that the cluster state was healthy during the incident window (~2 hours). If the cluster state were unhealthy, the impact would have been more much severe.
We also configure REDIS_CLIENT_MAX_STARTUP_SAMPLE=1.
Part of the stack trace:
[redis-cluster-client (0.8.2) lib/redis_client/cluster/router.rb:201:in `rescue in find_node'
 redis-cluster-client (0.8.2) lib/redis_client/cluster/router.rb:198:in `find_node'
 redis-cluster-client (0.8.2) lib/redis_client/cluster/router.rb:159:in `assign_node'
 redis-cluster-client (0.8.2) lib/redis_client/cluster/router.rb:60:in `send_command'
 redis-cluster-client (0.8.2) lib/redis_client/cluster.rb:35:in `call_v'
 redis-clustering (5.2.0) lib/redis/cluster/client.rb:85:in `block in call_v'
 redis-clustering (5.2.0) lib/redis/cluster/client.rb:104:in `handle_errors'
 redis-clustering (5.2.0) lib/redis/cluster/client.rb:85:in `call_v'
 redis (5.2.0) lib/redis.rb:152:in `block in send_command'
 redis (5.2.0) lib/redis.rb:151:in `synchronize'
 redis (5.2.0) lib/redis.rb:151:in `send_command'
 redis (5.2.0) lib/redis/commands/strings.rb:95:in `set'

I'm running on the following gem versions

redis-cluster-client on v0.8.2
redis-client on v0.22.2
redis on v5.2.0

Investigation details
We observed an increase in incoming new TCP connection on 1 of the 3 VMs containing a master redis-server process. This would match the 3 @node.reload! retries which would open a new connection for calling CLUSTER NODES and close it thereafter.
I've ruled out server-side network issues since the redis-client would raise a ConnectionError  when that happens. I've verified this while attempting reproduce this locally with a Redis-Cluster setup configured with very low maxclients and tcp-backlog values. I ended up with RedisClient::Cluster::InitialSetupError when trying to reload the nodes.
I've been unable to locally reproduce this behaviour (will update when I do). The client suggests that the server is down but the server seems fine. Could there be a form of server response that could lead to an incomplete client/slot map?
To the maintainers, in your experience developing this client library, was this (small percentage of NodeMightBeDown with a seemingly healthy cluster) behaviour something that could have happened?
Linking issue for reference: https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/3715

Could there be a form of server response that could lead to an incomplete client/slot map?

I think the setting of REDIS_CLIENT_MAX_STARTUP_SAMPLE=1 has a trade-off between the load of servers and the reliability of the cluster state information. When a node temporarily has a stale state, our client may ends up with a mess by that node. So I configured the environment variable to a large size value on our test cases came along with unhealthy states.

#245

https://github.com/redis-rb/redis-cluster-client/blob/628276b0266aaa66c49c8d19467e4135a5070567/test/test_against_cluster_broken.rb#L84-L93

To the maintainers, in your experience developing this client library, was this (small percentage of NodeMightBeDown with a seemingly healthy cluster) behaviour something that could have happened?

I experienced that our CI was flaky when nodes replied inconsistent responses by CLUSTER NODES command. But it was almost on start-up phase.
Was there possibility that something was being happened in your cluster bus even if the state was healthy? Or there may be some bugs in our client. I'll look into it later. Unfortunately, since I use redis gem v4 in my work, I have no experience to use redis-cluster-client gem with a long-running cluster in a production environment.

https://github.com/redis/redis/issues/10979

We found the redis cluster service ip is the same as the one of the pod ip (lead node). When the request was sent to this pod, it was actually sent to the service, which might redirect to any of the pods.

Thanks for sharing the links. I found the first one during initial stages of investigation too but it is not entirely relevant as we deploy the Redis cluster in VMs with fixed dns name (no chance of the service/pod IP confusion).

Was there possibility that something was being happened in your cluster bus even if the state was healthy?

It could be possible. For context, the cluster's cluster-node-timeout is set to 5000ms. The actual production Redis Cluster has 3 shards, each containing 1 primary and 2 secondary, totalling 9 VMs and redis-server processes (apologies for the discrepancy above, I wanted to keep the issue description simpler). We observed that for 8 of the 9 redis-server processes, there was a drop in rate of pings received and pongs sent by ~12% or 1/9. More details in https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/3714#note_2040420223 if you are curious.
I suspected what could have happened for us:

During RedisClient::Cluster initialisation, there was a 1/3 chance of sending CLUSTER NODES to the affected master redis-server process which returns a complete non-error response but with an unknown amount of fail? flags. Those rows get ignored when parsing the CLUSTER NODES response.
The resulting @topology.clients map is incomplete since the node info list is incomplete. Also, @slots would be incomplete.
Subsequent recovery through retrying was not successful since the sample of 1 always selects the same instance to fetch an updated CLUSTER NODES state.

Note: we lost the metrics and logs for the affected VM unfortunately, so there is some inference to be done here.

In any case, I think the lesson here is to sample more master nodes and be mindful of the  trade-off since users could see a spike in Redis command traffic during deployments.

@slai11 I've fixed the behavior related to this issue. One is the mitigation for the frequency of queries with CLUSTER NODES command, and another one is the enhancement for the recoverability from the state of cluster down.

@supercaracal thank you for the improvements! I think this issue can be closed for now (I'm not sure what is your workflow for that).
It is hard to reproduce the events of the incident separately to validate the fixes. But I'll update if we do encounter it again 👍

Feel free to reopen this issue when happning again.


Working with subdomains

I want to create a subdomain in the meanjs app.
main : example.com
subdomain: team.example.com
subdomain: dashboard.example.com
where team and dashboards are modules in meanjs.
how do i do this ?

this really ties down to your URL route handling (whether server-side or client-side).
some references to check are https://www.npmjs.com/package/express-subdomain and angular's ui-router setup

@lirantal , i have no idea how to manipulate the code from your given references.
can you elaborate more on this.
its really urgent for me.

there's no built in support in MEAN.JS for subdomain routines but you can go ahead and check the code examples on https://github.com/bmullan91/express-subdomain


Tilemap editor sprite preview needs to show transparent background

Tilemap editor sprite preview needs to show transparent background

This has been fixed.


Update for Gleam v0.24's <> operator

Hello!
The latest Gleam release has added a new syntax, the <> operator.
Could we update this library to support it please? 🙏
https://github.com/gleam-lang/gleam/blob/6202f1b7b2aa15767b5a45410e870060befb4fa3/compiler-core/src/parse.rs#L847
https://github.com/gleam-lang/gleam/blob/6202f1b7b2aa15767b5a45410e870060befb4fa3/compiler-core/src/parse.rs#L2735
Thanks!

I can take a look at this 🙂
It looks like <> is supported in patterns in cases - is it supported in guards expressions too?

Thank you!
Not yet, no.

Just merged @the-mikedavis' PR for this feature; will do a proper v0.24 release tomorrow morning


Error: Server at xyz not available\n at Client.memcachedCommand [as command]

getting the error:
Getting data from memCache failed severity:error f.err:{"stack":"Error: Server at xyz not available\n at Client.memcachedCommand [as command] (/service/node_modules/memcached/lib/memcached.js:306:70)\n at Client.get (/service/node_modules/memcached/lib/memcached.js:830:10)\n at /service/repository/data/Repo.js:32:35\n at new Promise ()\n at Repo.get (/service/repository/data/Repo.js:13:16)\n
Client which is connecting is  npm memcached
Twemproxy version: 0.5.0
Environemnt: Running twemproxy inside kubernetes
When checked for twemproxy stats no server ejections all the memcached servers are operating normally.
Any lead on how to solve the above error would be really helpful

Can you post the config file used for twemproxy with as much detail as possible?
Did you disable tls for the elasticache cluster? - See https://github.com/twitter/twemproxy/issues/583 - twemproxy currently does not support tls (for memcached and redis)
Are you able to connect to those memcache hosts directly from the kubernetes cluster?
Can you post logs, preferably at loglevel 6(informational) or a numerically larger value (nutcracker -v 6 -o /var/log/nutcracker.log)

Twemproxy conf file
memcached:
listen: <IP_ADDRESS>:22121
hash: fnv1a_64
distribution: ketama
preconnect: true
auto_eject_hosts: true
server_retry_timeout: 2000
server_failure_limit: 2
timeout: 1000
tcpkeepalive: true
backlog: 1024
servers:
- 0.xyz-service.svc.cluster.local:11211:1 0
- 1.xyz-service.svc.cluster.local:11211:1 1
- 2.xyz-service.svc.cluster.local:11211:1 2
- 3.xyz-service.svc.cluster.local:11211:1 3
- 4.xyz-service.svc.cluster.local:11211:1 4
- 5.xyz-service.svc.cluster.local:11211:1 5
We are not using elasticsearch cluster...  it is like having a onprem memcached on kubernetes and twemproxy in kubernetes.
Yes i am able to connect to memcached hosts.
Strange part is after some time, not sure about the time, the error is going away... looks like the server reconnect feature.
When i checked the npm module code
https://github.com/3rd-Eden/memcached/blob/master/lib/memcached.js
Line number: 311,312,313 this the causing the error.
Is there anything to do with the server retries or our config is correct and we have set the following in the client
poolsize: 70
retries: 3,
retry: 1000,
reconnect: 60000
Please guide us if we are using the correct twem proxy config and client config

Do you start twemproxy and your application at the same time? Are you sure twemproxy has finished starting up when you connect to it (should finish in a few seconds)
Also, what do the logs from twemproxy say (can be enabled with nutcracker -v 6 -o /path/to/logfile.log)


DisplayConfig new API: *Overfill functions

The overfill factor in the render manager config affects the render target sizes as well as projection matrix calculations. The current DisplayConfig API does not take this into account. Instead, the render manager implements a parallel DisplayConfig API internally that adjusts the projection and viewport sizes to match the overfilled targets. We need to move this into core to prevent duplication and drift.
However, we can't just change the DisplayConfig to automatically take overfill into account when returning projection matrices or surface sizes - that would break existing apps that make assumptions about those sizes, and some applications may want to know the actual physical hardware surface sizes in some scenarios.
Therefor, I suggest we add parallel functions to the API for those methods that would return a different result when the overfill factor is taken into account. These methods should include the word "overfill" in the name to make it clear what the distinction is.
Currently, the following methods need overfill versions:

osvrClientGetRelativeViewportForViewerEyeSurface gets overfill version osvrClientGetRelativeOverfillViewportForViewerEyeSurface
osvrClientGetViewerEyeSurfaceProjectionMatrixd gets overfill version  osvrClientGetViewerEyeSurfaceOverfillProjectionMatrixd
osvrClientGetViewerEyeSurfaceProjectionMatrixf gets overfill version  osvrClientGetViewerEyeSurfaceOverfillProjectionMatrixf
osvrClientGetViewerEyeSurfaceProjectionClippingPlanes gets overfill version  osvrClientGetViewerEyeSurfaceOverfillProjectionClippingPlanes

Note that the eye surface projection matrix in RenderManager has some additional arguments that are not taken by Core, and I don't think they can be easily factored out of the calculation because there are switches based on which space the user wants to render into.
Another approach to modifying the functions would be to add an optional boolean telling whether to take overfill into account.  Not sure which approach is better.


feat: Show fee rebate on order matching fee

fixes #2376

An improvement overall, although the summary screens are not getting any simpler.

Agreed, I've created a ticket for that https://github.com/get10101/10101/issues/2417


Cannot run sample app with error Task 'wrapper' not found in project ':core-sample-app'.

Cannot run sample app with error Task 'wrapper' not found in project ':core-sample-app'.
btw, your sample app is wonderful (installed by 10.0.5.apk)

add
gradle-wrapper.properties
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-6.5-all.zip

You'll get this error if trying to open the sample project direct (android-youtube-player/core-sample-app) in Android Studio when you need to open the root project (android-youtube-player) and run the sample app from there.


Review T005

Details

Talktorial ID: 005
Title: Compound clustering
Original authors: Calvinna Caswara, Gizem Spriewald
Reviewer(s): Jaime Rodríguez-Guerra, Dominique Sydow
Date of review: 2020.09.08

Content review

Potential labels or categories (e.g. machine learning, small molecules, online APIs): small molecules, cheminformatics, clustering
One line summary: Compound clustering in pharmaceutical research is often based on chemical or structural similarity between compounds to find groups that share properties as well as to design a diverse and representative set for further analysis.
[X] The table of contents reflects the talktorial story-line; order of #, ##, ### headers is correct
[X] URLs are linked with meaningful words, instead of pasting the URL directly or linking words like here.
[X] I have spell-checked the notebook
[X] Images have enough resolution to be rendered with quality, without being too heavy.
[X] All figures have a description
[x] Markdown cell content is still in-line with code cell output (whenever results are discussed)
[X] I have checked that cell outputs are not incredibly long (this applies also to DataFrames)
[X] Formatting looks correctly on the Sphinx render (bold, italics, figure placing)

Code review

Time it took to execute (approx.): <3mins
[X] Variable and function names follow snake case rules (e.g. a_variable_name vs aVariableName)
[X] Spacing follows PEP8 (run Black on the code cells if needed)
[X] Code line are under 99 characters each (run black -l 99)
[X] Comments are useful and well placed
[X] There are no unpythonic idioms like for i in range(len(list)) (see slides)
[X] All 3rd party dependencies are listed at the top of the notebook
[X] I have marked all code cell with output referenced in markdown cells with the label # TODO: CI
[ ] I have identified potential candidates for a code refactor / useful functions
[X] All import ... lines are at the top (practice part) cell, ordered by standard library / 3rd party packages / our own (teachopencadd.*)
[X] I have update the relative paths to absolute paths.
List here unfamiliar libraries you find in the imports and their intended use:

Other issues

[x] stringer ?
[x] Make sure output is deterministic!

@dominiquesydow ready for rereview if needed!

Good! Merging then. We can polish details in the final, global review!


Revert snapshot.go changes

#1294  👈
feature/proof-of-stake

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @lazynina and the rest of your teammates on  Graphite


helm function getHostByName only returns single ip even if multiple exist

Output of helm version: version.BuildInfo{Version:"v3.12.0", GitCommit:"c9f554d75773799f72ceef38c51210f1842a1dea", GitTreeState:"clean", GoVersion:"go1.20.3"}
Output of kubectl version: irrelevant
Cloud Provider/Platform (AKS, GKE, Minikube etc.): irrelevant but local k8s 1.25.6
I'm trying to create NetworkPolicies in my helm chart by supplying connections via variables. But apparently helm fails to correctly resolve a multi A-record DNS entry.
  - to:
    - ipBlock:
        cidr: {{ getHostByName somehost.local | quote }}
      ports:
        - protocol: TCP
          port: 80

This results in:
  - to:
    - ipBlock:
        cidr: "<IP_ADDRESS>"
      ports:
        - protocol: TCP
          port: 443

even if the host actually has <IP_ADDRESS> and <IP_ADDRESS> as its a records.

getHostByName  is provided by sprig


Project > Change Request > Budget details are not updated after editing the change request

Roles: All
Describe the bug
Project > Change Request > Budget details are not updated after editing the change request
Steps to Reproduce

Login to root user
Create a project and change status Early conversions to Active
Create a Change Request with Budget types
Add budget partner in Partnership
Click on the Budget button and add the budget amount
Click on the Change request  view button and edit the budget details
Approved the change request

Excepted Result
Budget should be updated when the user edit it from the Change request
Actual Result
Budget details are not updated after editing the change request
See video -
https://user-images.githubusercontent.com/5212585/147073053-54fd7bb0-d206-4a3b-ac21-3c8b2a7f2b36.mp4
FYI: @ParkeBrown @michaelmarshall
cord-field# 7c3a772

It changes to $500 if you refresh the page right @iPiyushPatel?

No, @CarsonF
Budget value($500) is changed only for ChangeRequests, but it's not reflected in Project Details.


Custom types are not replaced with values from customTypeMapping

Summary
I try to use code generation via apollo gradle plugin. CustomType.kt generates, have all CustomType in it, but not get replaced from customTypeMapping values even if I attach adapter.
Description
I use apollo gradle plugin on server application built with spring boot.
I have multiple schema files and multiple queries.
I have configuration in my build.gradle.kts:
apollo {
    generateKotlinModels.set(true)

    service("datocms") {
        sourceFolder.set("$projectDir/src/main/graphql/datocms")
        rootPackageName.set("com.web.bff.queries.datocms")
    }

    service("shopify") {
        sourceFolder.set("$projectDir/src/main/graphql/shopify")
        rootPackageName.set("com.web.bff.queries.shopify")
    }

    service("api") {
        customTypeMapping.put("BigDecimal", "java.math.BigDecimal")

        sourceFolder.set("$projectDir/src/main/graphql/api")
        rootPackageName.set("com.web.bff.queries.api")
        suppressRawTypesWarning.set(true)
    }
}

I put custom adapter for my apolloclient for service "api":
ApolloClient.builder()
        .serverUrl(config.serverUrl)
            .addCustomTypeAdapter(CustomType.BIGDECIMAL, bigDecimalAdapter)
        .okHttpClient(okHttpClient)
        .build()

And I apollo plugin generated the code for CustomType.kt:
enum class CustomType : ScalarType {
  BIGDECIMAL {
    override fun typeName(): String = "BigDecimal"

    override fun javaType(): Class<*> = kotlin.Any::class.java
  },

  ID {
    override fun typeName(): String = "ID"

    override fun javaType(): Class<*> = kotlin.String::class.java
  }
}

As you can see, BigDecimal is kotlin.Any, however in config I said:
customTypeMapping.put("BigDecimal", "java.math.BigDecimal")
However, ID is kotlin.String
Any help is much appreciated.
Version
Plugin version I use is 1.3.0

@martinbonnin do you think if this issue can be related to the gradle plugin?

@sav007 it could be. I've seen such issues in the past. It was because a gradle MapProperty is empty by default (and not unset). But this was fixed as far as I know (at https://github.com/apollographql/apollo-android/blob/4a3bae8728a42d57a66fbf216d76f95636f8948f/apollo-gradle-plugin/src/main/kotlin/com/apollographql/apollo/gradle/internal/DefaultCompilerParams.kt#L25). I've added a test there: https://github.com/apollographql/apollo-android/pull/1991. But it seems to behave as expected.
@ahar, can you try putting the customTypeMapping in the apollo {} block directly ? Also tell us what version of Gradle are you using ?

Hello @martinbonnin !
re: try putting the customTypeMapping in the apollo {} block directly
I've tried that before, didn't work. Tried one more time - the same thing.
re: gradle version
------------------------------------------------------------
Gradle 6.0.1
------------------------------------------------------------

Build time:   2019-11-18 20:25:01 UTC
Revision:     fad121066a68c4701acd362daf4287a7c309a0f5

Kotlin:       1.3.50
Groovy:       2.5.8
Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM:          11.0.5 (Oracle Corporation 11.0.5+10-LTS)
OS:           Mac OS X 10.14.4 x86_64

By the way, I found there is new version 1.3.1. Updated to 1.3.1 - the same thing.
Thank you for diving in!

Can you try setting customTypeMapping instead of just putting values ?
customTypeMapping.set(mapOf("BigDecimal" to "java.math.BigDecimal"))

I would actually expect .put to work but maybe something else is happening

@martinbonnin I've tried. Works like a charm.
Thank you for quick response!

That's definitely a weird behaviour. I'll try to dig a bit more see what we can do.

@martinbonnin Looking at you suggestion of putting customTypeMapping into apollo {} I have come across an issue.
In a single gradle module I have 3 service defined with a single customTypeMapping inside apollo {}and I get the following compilation error: .../type/CustomType.java:12: error: duplicate class: type.CustomType.
I get type.CustomType.java generated three times.
I'm using
gradle:  6.1.1
apollo: 2.2.1
agp: 4.0.0
Is there a way around this?

@mos8502 yep, looks like this putting it in apollo {} directly isn't a good solution.
The solution is to use customTypeMapping.set() instead of customTypeMapping.put():
apollo {
    generateKotlinModels.set(true)

    service("api") {
        customTypeMapping.set(mapOf("BigDecimal" to "java.math.BigDecimal"))

        sourceFolder.set("$projectDir/src/main/graphql/api")
        rootPackageName.set("com.web.bff.queries.api")
        suppressRawTypesWarning.set(true)
    }
}

@mos8502 yep, looks like this putting it in apollo {} directly isn't a good solution.
The solution is to use customTypeMapping.set() instead of customTypeMapping.put():
apollo {
    generateKotlinModels.set(true)

    service("api") {
        customTypeMapping.set(mapOf("BigDecimal" to "java.math.BigDecimal"))

        sourceFolder.set("$projectDir/src/main/graphql/api")
        rootPackageName.set("com.web.bff.queries.api")
        suppressRawTypesWarning.set(true)
    }
}

@martinbonnin unfortunately even if I define customTypeMapping per service I get the same duplicate class error :(

Sorry might have missed to use set instead of put 🤔

Sorry might have missed to use set instead of put 🤔

@martinbonnin using set whether it is per service or at apollo {} level yields the same result: duplicate class

Can you use different package names for your different services? The layout should look like:
src/main/graphql/service1/net/sample1/schema.json
src/main/graphql/service1/net/sample1/query.graphql
src/main/graphql/service2/net/sample2/schema.json
src/main/graphql/service2/net/sample2/query.graphql
src/main/graphql/service3/net/sample3/schema.json
src/main/graphql/service3/net/sample3/query.graphql

Also it's very unlikely that all your services need the exact same customTypeMapping. Unless they're using the same schema in which case, you're better off using a single service.

There are three distinct schemas in my case but the customTypeMapping is the same for all. But regardless the issue is that CustomTypes is generated in the same package in a single gradle module

You can control the location of CustomTypes by putting your different schema in different subdirectories, that should generate net.sample1.type.CustomType, net.sample2.type.CustomType, etc... If that's not the case, can you share your directory layout and apollo {} block?

@martinbonnin the schemas were in different subdirectories, CustomType was regardless generated int the same package for all. The issue was that with the previous version of apollo the code for queries were generated into a package matching the directory structure.
With new version that I'm integrating this doesn't seem to be the case anymore. Adding rootPackageName solves the problem however and all code is generated in the right package.
Thanks for all the help


ARROW-7841: [C++] Use ${HADOOP_HOME}/lib/native/ to find libhdfs.so again

This is a regression bug of e12d2851fe60a3628d900f432950dc321db65ff9 .

@ursabot crossbow submit test-conda-python-3.7-hdfs-2.9.2

I just created a 0.16.1 patch release version in JIRA (and added this issue to it) since it seems likely that we will accumulate some regressions over the next couple of weeks

@kou @kszucs is there a weakness in our testing that caused this regression to slip through? Anything we can do to prevent it from happening again?

https://github.com/apache/arrow/pull/6432


sunodo dapps build --network <network>

Requirements:

[ ] Should not require remote access to the sunodo-api;
[ ] The build should local and be based on a ./Dockerfile and ./ as context over a local docker daemon
[ ] The image name should have registry.sunodo.io/<generated-app-name> by default
[ ] ...

duplicated for #11


Add Node methods and tests

Add missing properties and method for Node interface.
Add tests for all methods.

This looks great; thanks!


[FEATURE] Support text embedding processor

Not sure if I missed something in the org.opensearch.client.opensearch.ingest.Processor class, but it seems there's no constructor for the text embedding processor as specified here. But, looking at the OpenAPI spec, it seems it's missing from there as well.
Am I missing something? Does the Java client depend on the OpenAPI spec?

Am I missing something? Does the Java client depend on the OpenAPI spec?

Not yet. We have a PR up for that from @Xtansia and fully expect that to get finished and merged shortly. #366 - Take a look?

But, looking at the OpenAPI spec, it seems it's missing from there as well.

Can you contribute it to the spec? You can also hand-roll the code in opensearch-java for it now if you want it in faster.

here's the spec PR: opensearch-project/opensearch-api-specification#304


Issue on Linux

Hi,
it's not working on Linux
on setConfig giving an error

setConfig error: LIBUSB_ERROR_BUSY

Seem libusb is busy. I'm not quite familiar with Linux. Sorry

@Sunbreak this not only for a single device, this error we getting for all devices.
I think the issue with claimInterface on this is we always getting a false response

Have you tried libusb with C program? I used to debug problems with C/C++

Can you please share a C Code to send data to USB, I can check from my side.
my Device detail Vendor:Device = 0483:5743

hi,
I have found that the issue with libusb_detach_kernel_driver ( libusb_device_handle *dev,int interface) in Linux needs to detach it from the driver first to claim interface.

Instead of explicitly detaching device from kernel driver permanently which can cause problems for other applications using same device over kernel driver libusb_set_auto_detach_kernel_driver() should be preffered as it automatically detaches/attaches device when needed.


Commit big suspend

Adding commit after suspendBig method is invoked,
@shuangzhou , @JonathanShaw , @terenceingram, @MingtaoSun   could you please have a look.

Looks good.


setup error

when i try to setup localy i get this error

<EMAIL_ADDRESS>install C:\Users\Mohamed\Desktop\ya rab\node_modules\socket.io\node_
modules\socket.io-client\node_modules\ws
(node-gyp rebuild 2> builderror.log) || (exit 0)

C:\Users\Mohamed\Desktop\ya rab\node_modules\socket.io\node_modules\socket.io-cl
ient\node_modules\ws>node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp
-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild
/

<EMAIL_ADDRESS>postinstall C:\Users\Mohamed\Desktop\ya rab
./node_modules/bower/bin/bower install

'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR<EMAIL_ADDRESS>postinstall: ./node_modules/bower/bin/bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>postinstall script.
npm ERR! This is most likely a problem with the chat package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./node_modules/bower/bin/bower install
npm ERR! You can get their info via:
npm ERR!     npm owner ls chat
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.2.9200
npm ERR! command "C:\Program Files\nodejs\\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd C:\Users\Mohamed\Desktop\ya rab
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     C:\Users\Mohamed\Desktop\ya rab\npm-debug.log
npm ERR! not ok code 0
any help please ?

on a windows machine open up package.json and remove the 'postinstall' bit from here:
scripts": {
"postinstall": "./node_modules/bower/bin/bower install",
"start": "node server.js"
},
install bower (if you don't have it already) manually by running npm install bower -g and in the project's root folder execute bower install. - this will install the frontend dependencies.


[ODB] forbidden or invalid file name

Hello,
Is there a fine document to indicate the invalid file name
Thank you for help
--
What i found:
https://support.office.com/en-us/article/Invalid-file-names-and-file-types-in-OneDrive-OneDrive-for-Business-and-SharePoint-64883a5d-228e-48f5-b3d2-eb39e07630fa
https://support.microsoft.com/en-us/help/2933738/restrictions-and-limitations-when-you-sync-sharepoint-libraries-to-you

I believe the second link is the most accurate documentation we have on the matter.


Update the Appconfiguration management plane sdk API Version to 2023-03-01

Contributing to the Azure SDK
Please see our CONTRIBUTING.md if you are not familiar with contributing to this repository or have questions.
For specific information about pull request etiquette and best practices, see this section.

There are two renaming suggestions. Please resolve them following this guidance: https://github.com/Azure/autorest.csharp/blob/feature/v3/docs/mgmt/polishing.md#rename-a-type

The two naming comments are addressed. Pls take another look. Thanks!


[Bug]: npm could not resolve dependency

What happened?
Can not create new project from npx create-react-app new-test-app --template complete-web-app
Could not resolve dependency.
Version
v1.1.15
What browsers are you seeing the problem on?
No response
Relevant log output
Creating a new React app in /home/sj/vscode/test-react-app/new-test-app.

Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts with cra-template-complete-web-app...

added 1496 packages in 2m

259 packages are looking for funding
  run `npm fund` for details

Initialized a git repository.

Installing template dependencies using npm...
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving<EMAIL_ADDRESS>npm WARN Found<EMAIL_ADDRESS>npm WARN node_modules/typescript
npm WARN   peer typescript@">= 2.7" from<EMAIL_ADDRESS>npm WARN   node_modules/fork-ts-checker-webpack-plugin
npm WARN<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm WARN     node_modules/react-dev-utils
npm WARN   2 more (tsutils, the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peerOptional<EMAIL_ADDRESS>|| ^4" from<EMAIL_ADDRESS>npm WARN node_modules/react-scripts
npm WARN<EMAIL_ADDRESS>from the root project

added 413 packages, removed 31 packages, and changed 41 packages in 44s

271 packages are looking for funding
  run `npm fund` for details

Removing template package using npm...

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving<EMAIL_ADDRESS>npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/typescript
npm ERR!   peer typescript@">= 2.7" from<EMAIL_ADDRESS>npm ERR!   node_modules/fork-ts-checker-webpack-plugin
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/react-dev-utils
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!       node_modules/react-scripts
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer<EMAIL_ADDRESS>|| >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta" from<EMAIL_ADDRESS>npm ERR!   node_modules/tsutils
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@typescript-eslint/eslint-plugin
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!       node_modules/eslint-config-react-app
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!         node_modules/react-scripts
npm ERR!       1 more (eslint-plugin-jest)
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!     node_modules/@typescript-eslint/type-utils
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!       node_modules/@typescript-eslint/eslint-plugin
npm ERR<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR!         node_modules/eslint-config-react-app
npm ERR!         1 more (eslint-plugin-jest)
npm ERR!     1 more (@typescript-eslint/typescript-estree)
npm ERR!   1 more (the root project)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peerOptional<EMAIL_ADDRESS>|| ^4" from<EMAIL_ADDRESS>npm ERR! node_modules/react-scripts
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Conflicting peer dependency<EMAIL_ADDRESS>npm ERR! node_modules/typescript
npm ERR!   peerOptional<EMAIL_ADDRESS>|| ^4" from<EMAIL_ADDRESS>npm ERR!   node_modules/react-scripts
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR!
npm ERR! For a full report see:
npm ERR! /home/sj/.npm/_logs/2024-03-17T09_21_16_712Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Hi @sergey-belous, sorry for the late reply.
I've published a new release (v1.1.16) that includes a fix described in https://github.com/facebook/create-react-app/issues/13080#issuecomment-1515280885. Let me know if it solves all your issues.
I'll soon publish a new template for a complete React app configuration using Vite as suggested by the React community.
Sadly Create React App seems like a dead project, but I won't stop the support for this template yet.

Going to close this one due to inactivity. Feel free to re-open in case the problem recurs.


Missing feature - Stack

Z-Index isnt updated by multiple drag elements
Need stack feauture:
https://jqueryui.com/draggable/#visual-feedback

Add a 👍  reaction to this issue if you would like to see this feature added. Do not add +1 comments — They will be deleted.

Thanks for this feature request. I feel like this feature could be implemented outside of Draggabilly, using events.


Add installation instructions

Added installation instructions for theme
cc: @choldgraf @mmcky
closes https://github.com/executablebooks/meta/discussions/264

Codecov Report

Merging #88 (2fea2d3) into master (8d072ad) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   73.12%   73.12%
=======================================
  Files           2        2
  Lines         227      227
=======================================
  Hits          166      166
  Misses         61       61

Flag
Coverage Δ

pytests
73.12% <ø> (ø)

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

Continue to review full report at Codecov.

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

thanks @hamelsmu sorry this took so long to merge.


ARROW-5555: [R] Add install_arrow() function to assist the user in obtaining C++ runtime libraries

Note that this function doesn't install anything: it provides context-dependent advice and for some platforms recommends commands to run. In future versions, we may want to make it do more, but this is a useful starting point.
In addition to this function, this patch also:

Updates the README with installation instructions, including for Windows (assuming https://github.com/apache/arrow/pull/4622)
Adds a Makefile to facilitate local package dev, building, testing, etc. (https://issues.apache.org/jira/browse/ARROW-5328)
Fixes an UTF-8 issue in the DESCRIPTION
A few other cleanups

Revised, PTAL.

Thanks.


lol

i was poking around the internet to cargo a direct to http stream because >muh corp vended libraries
lmao
guess who i see

const createChatCompletion = async () => {
	const messages: ChatCompletionRequestMessage[] = [
		{ role: 'user', content: 'what is the meaning of life?' }
	];
	const headers = {
		['Content-Type']: 'application/json',
		['Authorization']: `Bearer ${API_KEY}`,
	};
	const data = {
		'model': 'gpt-3.5-turbo',
		'messages': messages,
		'temperature': 0.9,
		'stream': true,
	};

	const response = await axios({
		method: 'post',
		url: 'https://api.openai.com/v1/chat/completions',
		headers: headers,
		data: data,
		responseType: 'stream',
	});

	response.data.on('data', (chunk: any) => {
		console.log(chunk.toString());
	});
	response.data.on('end', () => {
		console.log('Streaming completed');
	});
};

if anyone comes by


Deadlock when first creating rust-ext objects on threads

Magnus can cause a deadlock when creating the same type of instance on multiple threads. I've gone ahead and reproduced this issue in a separate repo which can be referenced. The reproduction must be run several times to hit the timing of it although it's possible a sleep in the Lazy once block might help cause it to hit every time.
The reason this happens is due to how rb_protect works when calling into a closure. When it calls out it may choose to yield control back to ruby which may then activate a different thread. rb_protect is called when initialization the lazy type in magnus is called. This can create a competition for two locks. One is the Once lock that the code block is running and the other lock is the GVL.

Adding in a sleep to the Lazy code does indeed cause the deadlock to hit every time. I've added this in as well.

Ooof. Thank you for reporting this, and thanks so much for the reproduction. I'm sure this one was a tricky one to track down, so I really appreciate the effort.
I fixed this in fb833092e39badc98d6c5934ad0edbb8c94facfe, and back ported to the 0.6 branch too.
I am planning to put out a 0.6.4 with the fix, but CI is failing*, and I want to try and figure out what's up with that before doing the release.
* weirdly just for macOS arm, Ruby 3.1.5, Rust 1.78, which I can actually test locally and it works just fine, so probably just GitHub's runners being weird

I published the 0.6.4 release. I narrowed down the CI failure to a feature Magnus' tests rely on, but users generally won't touch, so I don't think it's worth blocking the release on.

Thank you! I'll get this integrated right away! :) I really appreciate your quick turnaround on this.

I cannot reproduce it now, thank you again!


Proposal: use struct methods instead of functions for resources

I'm wondering if we should use struct methods for the generic resources by default, to avoid potential name clashes as we move over more resources to this format. Here's an example for the DynamoDB resource.
What do you think @tim775?

Works for me.  In those cases where we have logic shared between resources I guess they would still be the 'old style' package functions which seems ok too.

@xeger FYI if you have any thoughts on this.

What @tim775 said; seems reasonable & doesn't preclude us from sharing logic.


⚠ SpeakUpConference.com has degraded performance

In 0e3c751, SpeakUpConference.com (https://www.speakupconference.com) experienced degraded performance:

HTTP code: 200
Response time: 5052 ms

Resolved: SpeakUpConference.com performance has improved in 295244e after 16 minutes.


provide validation plugin extension

As a follow up on mesosphere/marathon#2905 we would like to have a plugin that can be used for validating an app.
The plugin should get the complete app (including all attributes) passed, so it can inspect it, validate it, and accept or decline.
The plugin could be called from the same plugpoints as the authorization plugin does (create app, delete app, update app and so on).
A few examples of validation:

check for insane upgrade strategies
check for healthcheck frequencies
check for the use of certain constraints
check for the use of certain labels

kind regards,
Harry

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3168. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.

Note: This issue has been migrated to https://jira.mesosphere.com/browse/MARATHON-3168. For more information see https://groups.google.com/forum/#!topic/marathon-framework/khtvf-ifnp8.