home-manager: unstable-2024-02-20 -> unstable-2024-02-24

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for home-manager is: A Nix-based user environment configurator
meta.homepage for home-manager is: https://nix-community.github.io/home-manager/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-02-24 in filename of file in /nix/store/b6a0828bb9z09zln29xpvxg86lfd507z-home-manager-unstable-2024-02-24

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
home-manager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/b6a0828bb9z09zln29xpvxg86lfd507z-home-manager-unstable-2024-02-24 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A home-manager https://github.com/r-ryantm/nixpkgs/archive/fd5b0d42916675a3e9b72ada558a3c074cb363ea.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/fd5b0d42916675a3e9b72ada558a3c074cb363ea#home-manager

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/b6a0828bb9z09zln29xpvxg86lfd507z-home-manager-unstable-2024-02-24
ls -la /nix/store/b6a0828bb9z09zln29xpvxg86lfd507z-home-manager-unstable-2024-02-24/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

1 package built:

home-manager

Maintainer pings
cc @AndersonTorres for testing.

@NixOS/nixpkgs-merge-bot merge

I will migrate this to by-name. Please do not merge.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for home-manager is: A Nix-based user environment configurator
meta.homepage for home-manager is: https://nix-community.github.io/home-manager/
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found unstable-2024-02-27 in filename of file in /nix/store/z3m5qv368xk3a1v7h8i3jy5s8zwr66fm-home-manager-unstable-2024-02-27

Rebuild report (if merged into master) (click to expand)

1 total rebuild path(s)

1 package rebuild(s)

First fifty rebuilds by attrpath
home-manager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/z3m5qv368xk3a1v7h8i3jy5s8zwr66fm-home-manager-unstable-2024-02-27 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A home-manager https://github.com/r-ryantm/nixpkgs/archive/1df30804086f0125d207ba0be859c16848e87d59.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/1df30804086f0125d207ba0be859c16848e87d59#home-manager

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/z3m5qv368xk3a1v7h8i3jy5s8zwr66fm-home-manager-unstable-2024-02-27
ls -la /nix/store/z3m5qv368xk3a1v7h8i3jy5s8zwr66fm-home-manager-unstable-2024-02-27/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

1 package built:

home-manager

Maintainer pings
cc @AndersonTorres for testing.


Caching dio download() results does not work

dio.download() override options.responseType = ResponseType.stream, which is not supported by dio-http-cache.
As a consequence, it is impossible to use the dio download() api call with dio-http-cache.
Possibly related to #65.

Thanks for your issue. Duplicate of #65

Thanks for your issue. Duplicate of #65


Error in loading the files using the folder name

RuntimeError: DataLoader worker (pid(s) 23356, 25560, 18820, 14240, 3768) exited unexpectedly.

hello, could you please provide more information?


Setting up the project and its dependencies

Fixes: #1

I had already pushed the initial code for project setup with Vite along with adding -

Vuetify
Vue-router
Pinia.

In this PR,

I have added EsLint + Prettier to the project
Also added the scripts

npm run lint for showing all the EsLint errors
npm run format for formatting the entire project using the rules set in the .prettierrc file
and formatted the code previously pushed using EsLint and Prettier rules.

Added Vue-i18n to the project, made a local folder to set up localization & to contain data for several languages

@tachyons @abstrekt @ayan-biswas0412
can you please review it.

Could you follow conventional commits format ?

Could you follow conventional commits format ?

Sure, I will keep it in mind from now on.

Please follow the conventional commit format to pass the ci check

Sure I have also added husky and commitlint for it.

Please follow the conventional commit format to pass the ci check

Sure I have also added husky and commitlint for it.

but still the ci is failing


Support white background terminals

This library assumes that is being used in a dark background terminal.
It would be great to be able to use it in white background terminal:

There seem to be many hard-code color values, for example, the name of the scheme being printed in white in the above screenshot, from here: https://github.com/FedeClaudi/Term.jl/blob/4ab195d85c274e7cc869c1dc5bbce39778b5b5b7/src/theme.jl#L94-L105
Similarly, there are lots of hard-coded values in errors.jl and logs.jl, which unfortunately makes the otherwise very nice install_term_logger and install_term_stacktrace impossible to use. All of these colors should refer to something configurable in the color scheme

There should be a switch to turn off all color, for monochrome or reduced-color terminals. The framed backtraces and such would be quite nice to have, but they should be rendered black on white (or white on black) in such environments

It would be nice to have a built-in colorscheme that is tested for readability on white background terminals.

The cherry on top would be to detect the background color of the terminal (e.g. via the COLORFGBG environment variable) and to choose the default scheme based on that.

Hey,
Thanks for opening this issue, it's a very good point.
I completely agree, all the hardcoded color values should be offloaded to the theme to allow complete customization.
Further, there should be a few pre-defined themes for light/dark and readability, as you suggest.
It seems like a fairly easy fix, perfect for someone that wants to actively contribute to Term 😄
Would you be interested in working on a PR?

Interested, yes 😀. Available, probably not (or at least I shouldn't).
Maybe I won't be able to help myself, so let's see. But if someone else wants to jump in, it would save me from the procrastination hole. 😉

Hahah, it seems like we're on the same boat here!
Let's leave it open and see who gives in first 😉

Fixed by https://github.com/FedeClaudi/Term.jl/pull/158


add description tag to test definition

Describe the feature
Would like to add description to tests.
tests:
  - dbt_utils.expression_is_true:
      name: test_name
      description: “test_description"
      expression: '= X'
      config:
        where: “X= N"

Describe alternatives you've considered
Using name as declarative as possible of whats being tested is not enough.
Additional context
As the package can store test results in database, table description would be nice.
Who will this benefit?
Better understanding for any test being executed. Normally 6 months after deployment no dev-team members remembers the why. Having a more declarative way of the intent on test will help maintainability in the long run
Are you interested in contributing this feature?
Have never contributed, and not even know where to start, if some guidance is given then definitely.

shaking

Please, this feature is too necessary.


create unauthenticated api without TokenInterceptor or context

In some cases you need a plain retrofit service (especially, when you're calling some authentication apis). Since the AuthRestAdapter (as well as the retrofit.RestAdapter) uses caching for all created apis, it would be nice to use this on AuthRestAdapter to handle all calls, including unauthenticated ones.
A workaround for now is to add an empty Imlementation of the TokenInterceptor (or any other tokeninterceptor)
I'll add an additional method to the AuthRestAdapter to create unauthenticated Services without the retroauth "magic".

This is a bug, since it is crashing, when trying to set null instead of the TokenInterceptor

provided a "createUnauthenticated" method, which you can use to create plain retrofit services


Crash: there is a gap in the ledgerstate

All nodes on our network died at the same time with the panic:
panic: there is a gap in the ledgerstate 18074 vs 18073

iota-core.log

We got a new log message with trace level:
2024-02-21T17:56:39Z    TRACE   Protocol.Engine0                        engine error (err=notarization: failed to create commitment for slot 174: failed to commit ledger: failed to apply diff to mana manager for slot 174: failed to resolv
e AccountOutput for 0x2f44b2a2de26aa75704e9af6abf3b01c73dd6b86cfc9b8f6b48151b7f0485123 in slot SlotIndex(174): unspent account output OutputID(0x833b9286d197563a7dbff7ac425352b63a8f3601ddd23d04e1536ad5349194b2930000000000:147) not found:
state not found)

Maybe some side-effect, The faucet doesn't work anymore (although the iota-core running is healthy):
2024-02-22T07:29:11Z	INFO   	Faucet	You can now access the faucet website using: http://<IP_ADDRESS>:8091
2024-02-22T07:29:11Z	INFO   	INX   	Starting NodeBridge ...
2024-02-22T07:29:11Z	INFO   	Faucet	The deposit address of the faucet is rms1xqqwdacty60umamke0qdxw5ats8573gvmlvezzy7gjgepnfqm8hmf0qpqgl6v2jp
2024-02-22T07:29:11Z	INFO   	Profiling	You can now access the profiling server using: http://<IP_ADDRESS>:6060/debug/pprof/
⇨ http server started on [::]:8091
2024-02-22T07:29:11Z	WARNING	Shutdown 	Critical App self-shutdown: faucet plugin hit a critical error: reading faucet address balance failed: rms1xqqwdacty60umamke0qdxw5ats8573gvmlvezzy7gjgepnfqm8hmf0qpqgl6v2jp, error: unable to fetch output 0x2df69538923850b9ebab7fe7cd11461dc85071ac0ee67019fef69cf49b5b0a609e0000000100: Get "inx:///api/core/v3/outputs/0x2df69538923850b9ebab7fe7cd11461dc85071ac0ee67019fef69cf49b5b0a609e0000000100": rpc error: code = Unknown desc = failed to get output 0x2df69538923850b9ebab7fe7cd11461dc85071ac0ee67019fef69cf49b5b0a609e0000000100 from the Ledger: key not found: code=500, message=Internal Server Error; waiting (max 300 seconds) to finish processing ...
2024-02-22T07:29:11Z	INFO   	INX      	Stopped NodeBridge

Faucet on implicit account creation address rms1yrswzks7gkygmsgfnsca28pf28v9070fxp7dhar2jtjufszzhy72jtj9uq5 -> output 0x6ec5490dcfe08845a03d5104d12c5a9cdc4ae9bb09f2c29fbf63cad902c4e6b52f0000000000

Transitions output 0x6ec5490dcfe08845a03d5104d12c5a9cdc4ae9bb09f2c29fbf63cad902c4e6b52f0000000000 into an account with block 0x62563a94713841353f2fc8d702475020464c11c9ab653d0390feecbe2ddc329d36000000

Block { header: BlockHeader { protocol_version: 3, network_id:<PHONE_NUMBER>403946014, issuing_time:<PHONE_NUMBER>608317000, slot_commitment_id: SlotCommitmentId { id: "0x302c75d12193ca88df756c7ffbc8be9f0d394ec602ce5cdcd3f43cf02e3849bd33000000", slot_index: SlotIndex(51) }, latest_finalized_slot: SlotIndex(51), issuer_id: AccountId(0xe5a0ba77adfd7cb1a917d000a214afe2f905a982510b4c9dbb0a3a4b6260f4ac) }, body: Basic(BasicBlockBody { strong_parents: Parents([BlockId { id: "0xd0b511f269239f0f991c6dcbe3b31353659c00c9475d7a7ade49f5c9e121493f36000000", slot_index: SlotIndex(54) }]), weak_parents: Parents([]), shallow_like_parents: Parents([]), payload: OptionalPayload(Some(SignedTransactionPayload { transaction: Transaction { network_id:<PHONE_NUMBER>403946014, creation_slot: SlotIndex(54), context_inputs: ContextInputs([CommitmentContextInput(SlotCommitmentId { id: "0x302c75d12193ca88df756c7ffbc8be9f0d394ec602ce5cdcd3f43cf02e3849bd33000000", slot_index: SlotIndex(51) }), BlockIssuanceCreditContextInput(AccountId(0xe5a0ba77adfd7cb1a917d000a214afe2f905a982510b4c9dbb0a3a4b6260f4ac))]), inputs: [UtxoInput(0x6ec5490dcfe08845a03d5104d12c5a9cdc4ae9bb09f2c29fbf63cad902c4e6b52f0000000000)], allotments: ManaAllotments([ManaAllotment { account_id: AccountId(0xe5a0ba77adfd7cb1a917d000a214afe2f905a982510b4c9dbb0a3a4b6260f4ac), mana: 579500 }]), capabilities: Capabilities { bytes: [], _flag: PhantomData<iota_sdk::types::block::payload::signed_transaction::transaction::TransactionCapabilityFlag> }, payload: OptionalPayload(None), outputs: [AccountOutput { amount:<PHONE_NUMBER>, mana: 99473904, account_id: AccountId(0xe5a0ba77adfd7cb1a917d000a214afe2f905a982510b4c9dbb0a3a4b6260f4ac), foundry_counter: 0, unlock_conditions: UnlockConditions([AddressUnlockCondition(Ed25519Address(0xe0e15a1e45888dc1099c31d51c2951d857f9e9307cdbf46a92e5c4c042b93ca9))]), features: Features([BlockIssuerFeature { expiry_slot: SlotIndex(4294967295), block_issuer_keys: BlockIssuerKeys([0xe0e15a1e45888dc1099c31d51c2951d857f9e9307cdbf46a92e5c4c042b93ca9]) }]), immutable_features: Features([]) }] }, unlocks: Unlocks([SignatureUnlock(Ed25519Signature { public_key: 0x8809a9f44d6f5574892d7ecffd080335de6a9bd444738b463a92dac3837457d2, signature: 0x036acae6ab857cfcdbf416b34c866941eef51d27ed3566c38094d76d41459cafb88aa152b224f59f3a9ccf654510ba616e8321544415f82fc081f73a986d9708 })]) })), max_burned_mana: 579500 }), signature: Ed25519Signature { public_key: 0x8809a9f44d6f5574892d7ecffd080335de6a9bd444738b463a92dac3837457d2, signature: 0x522f837786768c4ee3ab42d3d959d7a86b72aff66ab4b2ed19afdfaef2bbfce75a5d6599f3f703cf7668984f77017b19195a607dbca41f697e4348407b4a7a0a } }

api/core/v3/blocks/0x62563a94713841353f2fc8d702475020464c11c9ab653d0390feecbe2ddc329d36000000/metadata would say TransactionFailureReason::DirectUnlockableAddressUnlockInvalid but I think this is wrong?
Node crashes shortly after

When we try to transition an implicit account to full account by providing additional basic outputs as a source of Mana using the CLI wallet, the transaction has invalid signatures, but still gets accepted.
docker-network-node-1-validator-1  | 2024-02-22T14:46:01Z TRACE  Protocol.Engine0                    Ledger.TransactionAttached (tx=TransactionID(0xedc951cd9ebce48a0ccb1dce22fa2aad012ee9d0d5099f6b722d52640973746d28000000:40))
docker-network-node-1-validator-1  | 2024-02-22T14:46:01Z TRACE  Protocol.Engine0                    MemPool.SignedTransactionSignaturesInvalid (signedTx=SignedTransactionID(0x4a7cfabe2ae92894e189a6a1da36d55277c0e8ed02c3dd5fcbda51ad4a6012cf28000000:40) tx=TransactionID(0xedc951cd9ebce48a0ccb1dce22fa2aad012ee9d0d5099f6b722d52640973746d28000000:40)
...
docker-network-node-1-validator-1  | 2024-02-22T14:46:01Z TRACE  Protocol.Engine0                    MemPool.TransactionSolid (tx=TransactionID(0xedc951cd9ebce48a0ccb1dce22fa2aad012ee9d0d5099f6b722d52640973746d28000000:40))
...
docker-network-node-1-validator-1  | 2024-02-22T14:46:02Z DEBUG  Protocol                            BlockReceived: BlockID(0x7864cf6bfc0d0e3894b60f010a79ef26a66b1469bf14c149573c641fec5f04e928000000:40)

docker-network-inx-indexer-1       | 2024-02-22T14:46:02Z INFO   Indexer Applying accepted transaction 0xedc951cd9ebce48a0ccb1dce22fa2aad012ee9d0d5099f6b722d52640973746d28000000 at slot 40 with 0 new and 8 consumed outputs took 0s
...
docker-network-node-1-validator-1  | 2024-02-22T14:46:02Z TRACE  Protocol.Engine0                    MemPool.TransactionAccepted (tx=TransactionID(0xedc951cd9ebce48a0ccb1dce22fa2aad012ee9d0d5099f6b722d52640973746d28000000:40))

This results in the implicit account output being removed from the UTXO ledger but no new account output being created somehow, so when we try to commit the slot, we can't retrieve the implicit account output that we need, and commitment fails. On the next slot, the node crashes due because there is a gap in the committed slot.


Wrong calendar displaying when using Buddhist calendar

When using Buddhist calendar in macOS system preference

Year in calendar is showing correctly (in Buddhist year) but a calendar loaded data from Buddhist year (2561) which is not correct, because it should load from Gregorian year (2018).

As you can see above, 14 Aug should be Tuesday not Friday.
The problem is solved if I changed Calendar in system preference to Gregorian and reopen application.

Unfortunately, Itsycal only works properly with the Gregorian calendar. This is by design because it is the only calendar I can personally support.


Use FormattingHelper#format_money in entitled_to_sick_pay outcome in SSP

We're trying to standardize on using this method to format money objects.
The effect of this is to leave off the decimal point and the pence when the
value is a whole number of pounds.
@lutgendorff confirmed that this was probably just an accidental difference and
so I'm fixing it here.

Looks good to me.


Only Global API Key?

Why is this only useable with global API keys, unless it's something that Cloudflare forces, I don't see the reason for it?
Regular API Tokens are much better since you can heavily restrict the permissions on those.

The reason for this is that some Worker Kv functions cannot be accessed through the API token when I write this driver. My original design is to use the API token way to do the authentication but I found out the permission sets offered by Cloudflare are not enough to do some functions. If memory serves, creating a namespace is not allowed through API token. I understand this is not ideal. I will check whether those functions can be accessed through API token now.


fix main readme TOC

Signed-off-by: Tihomir Surdilovic<EMAIL_ADDRESS>Many thanks for submitting your Pull Request :heart:!
Please specify parts this PR updates:

[ ] Specification
[ ] Schema
[ ] Examples
[ ] Extensions
[ ] Roadmap
[ ] Use Cases
[ x] Community
[ ] TCK
[ ] Other

What this PR does / why we need it:
small fix to the main readme TOC
Special notes for reviewers:
Additional information (if needed):

super small fix to main readme TOC . no need to review in meet


worker goes into error after CP departed

Bug Description
after https://github.com/canonical/k8s-operator/issues/74
I just juju remove-application k8s and got error state on both workers
maksim@darmbeliaev:~$ juju status
Model          Controller              Cloud/Region         Version  SLA          Timestamp
canonical-k8s  k8s-machines-contoller  localhost/localhost  3.4.2    unsupported  17:15:17+02:00

App         Version  Status  Scale  Charm       Channel      Rev  Exposed  Message
k8s-worker  1.30.0   error       2  k8s-worker  latest/edge   34  no       hook failed: "cluster-relation-departed"

Unit           Workload  Agent  Machine  Public address  Ports  Message
k8s-worker/0   error     idle   1        <IP_ADDRESS>           hook failed: "cluster-relation-departed"
k8s-worker/1*  error     idle   2        <IP_ADDRESS>           hook failed: "cluster-relation-departed"

Machine  State    Address       Inst id              Base          AZ  Message
1        started  <IP_ADDRESS>  manual:<IP_ADDRESS><EMAIL_ADDRESS>    Manually provisioned machine
2        started  <IP_ADDRESS>  manual:<IP_ADDRESS><EMAIL_ADDRESS>    Manually provisioned machine
4        started  <IP_ADDRESS>  manual:<IP_ADDRESS><EMAIL_ADDRESS>    Manually provisioned machine

Relevant log output
unit-k8s-worker-1: 17:12:59 ERROR unit.k8s-worker/1.juju-log cluster:2: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3022, in _run
    result = subprocess.run(args, **kwargs)  # type: ignore
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-k8s-worker-1/relation-get', '-r', '2', '-', 'k8s-worker/1', '--format=json')' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 596, in <module>
    ops.main.main(K8sCharm)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 544, in main
    manager.run()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 520, in run
    self._emit()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 509, in _emit
    _emit_charm_event(self.charm, self.dispatcher.event_name)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 143, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 352, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 851, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 941, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/charms/reconciler.py", line 35, in reconcile
    self.reconcile_function(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 477, in _reconcile
    self._join_cluster()
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 439, in _join_cluster
    if self.collector.joined(relation):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/k8s/src/token_distributor.py", line 72, in joined
    data = relation.data[self.charm.unit].get("joined")
  File "/usr/lib/python3.10/_collections_abc.py", line 824, in get
    return self[key]
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 1705, in __getitem__
    return super().__getitem__(key)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 806, in __getitem__
    return self._data[key]
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 790, in _data
    data = self._lazy_data = self._load()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 1589, in _load
    return self._backend.relation_get(self.relation.id, self._entity.name, self._is_app)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3095, in relation_get
    raw_data_content = self._run(*args, return_output=True, use_json=True)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3024, in _run
    raise ModelError(e.stderr) from e
ops.model.ModelError: ERROR permission denied

unit-k8s-worker-1: 17:12:59 ERROR juju.worker.uniter.operation hook "cluster-relation-departed" (via hook dispatching script: dispatch) failed: exit status 1
unit-k8s-worker-1: 17:12:59 INFO juju.worker.uniter awaiting error resolution for "relation-departed" hook
unit-k8s-worker-1: 17:13:09 INFO juju.worker.uniter awaiting error resolution for "relation-departed" hook
unit-k8s-worker-1: 17:13:09 INFO unit.k8s-worker/1.juju-log cluster:2: Applying Proxied Environment Settings
unit-k8s-worker-1: 17:13:09 INFO unit.k8s-worker/1.juju-log cluster:2: Ensuring k8s snap version
unit-k8s-worker-1: 17:13:10 WARNING unit.k8s-worker/1.cluster-relation-departed snap "k8s" has no updates available
unit-k8s-worker-1: 17:13:10 INFO unit.k8s-worker/1.juju-log cluster:2: Applying K8s requirements
unit-k8s-worker-1: 17:13:10 INFO unit.k8s-worker/1.juju-log cluster:2: Check if k8ds is ready
unit-k8s-worker-1: 17:13:10 INFO unit.k8s-worker/1.juju-log cluster:2: Status context closed with: []
unit-k8s-worker-1: 17:13:10 ERROR unit.k8s-worker/1.juju-log cluster:2: Uncaught exception while in charm code:
Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3022, in _run
    result = subprocess.run(args, **kwargs)  # type: ignore
  File "/usr/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '('/var/lib/juju/tools/unit-k8s-worker-1/relation-get', '-r', '2', '-', 'k8s-worker/1', '--format=json')' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 596, in <module>
    ops.main.main(K8sCharm)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 544, in main
    manager.run()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 520, in run
    self._emit()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 509, in _emit
    _emit_charm_event(self.charm, self.dispatcher.event_name)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/main.py", line 143, in _emit_charm_event
    event_to_emit.emit(*args, **kwargs)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 352, in emit
    framework._emit(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 851, in _emit
    self._reemit(event_path)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/framework.py", line 941, in _reemit
    custom_handler(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/charms/reconciler.py", line 35, in reconcile
    self.reconcile_function(event)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 477, in _reconcile
    self._join_cluster()
  File "/usr/lib/python3.10/contextlib.py", line 79, in inner
    return func(*args, **kwds)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/./k8s/src/charm.py", line 439, in _join_cluster
    if self.collector.joined(relation):
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/k8s/src/token_distributor.py", line 72, in joined
    data = relation.data[self.charm.unit].get("joined")
  File "/usr/lib/python3.10/_collections_abc.py", line 824, in get
    return self[key]
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 1705, in __getitem__
    return super().__getitem__(key)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 806, in __getitem__
    return self._data[key]
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 790, in _data
    data = self._lazy_data = self._load()
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 1589, in _load
    return self._backend.relation_get(self.relation.id, self._entity.name, self._is_app)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3095, in relation_get
    raw_data_content = self._run(*args, return_output=True, use_json=True)
  File "/var/lib/juju/agents/unit-k8s-worker-1/charm/venv/ops/model.py", line 3024, in _run
    raise ModelError(e.stderr) from e
ops.model.ModelError: ERROR permission denied

Additional context
No response

See https://github.com/canonical/k8s-operator/issues/74


REF: refactor **kwargs usage

related issue: https://github.com/pydata/pandas/issues/8597.
among changes:
tests/test_generic.py downcast is misspelled donwcast, but no error is raised, because of how **kwargs is used.
core/categorical.py:sort na_position is not passed to self.order.
core/categorical.py:fillna Categorical.fillna does not support inplace as opposed to say Series.fillna or DataFrame.fillna, but **kwargs being there causes below code to just silently ignore passed argument:
>>> ca = pd.Categorical([0, 0, 2, 2, 3, np.nan])
>>> ca.fillna(0, inplace=True)
[0, 0, 2, 2, 3, 0]
Categories (3, int64): [0 < 2 < 3]
>>> ca
[0, 0, 2, 2, 3, NaN]
Categories (3, int64): [0 < 2 < 3]

This test is basically testing that you can specify any keyword argument and it is just silently ignored. I cannot think of any case that this would be a good idea, or has any use case.
multiple instances where *args or *kwargs are not passed to inner function or have any use at all, as can be seen in the PR diff.

@behzadnouri can you rebase this

@jreback rebased

merged via https://github.com/pydata/pandas/commit/38021ca83d5c85d27236ebc04865f936d2a82f99
thanks!


Docs outdated

I was trying the examples on https://polkadot.js.org/docs/api/start/api.consts
eg : api.consts.balances.creationFee.toNumber(), but it didn't exist. So I went looking for maybe a name change or something but in this file on git https://github.com/polkadot-js/docs/blob/ecbd8bf064d631f4d120595b8cedc932ff4cfb90/docs/substrate/constants.md
there is nothing in balances besides existentialDeposit.

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.


Typo "Azure functions"→"Azure Functions"

https://docs.microsoft.com/en-us/azure/media-services/previous/media-services-dotnet-how-to-use-azure-functions

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

@Juliako - Could you review the proposed update to your article?
For reference, the internal cloud style guide says this:
"Use Azure Functions as necessary to distinguish it as an Azure service. It's OK to use just Functions when the context makes it clear you're referring to the Azure service [after using Azure Functions on first reference].
To refer to something built using Functions or in a generic reference, use lowercase function app."
Thanks.

#sign-off


Media: Remove usage of title attribute on resources

Context
Summary
Remove title from resources, in all places in the codebase. Including in templates and fixture data.
Relevant Technical Choices
Move migration of title and alt to server level.
To-do

User-facing changes

Testing Instructions

QA

[ ] This is a non-user-facing change and requires no QA

This PR can be tested by following these steps:

UAT

[ ] UAT should use the same steps as above.

This PR can be tested by following these steps:

Reviews
Does this PR have a security-related impact?

Does this PR change what data or activity we track or use?

Does this PR have a legal-related impact?

Checklist

[x] This PR addresses an existing issue and I have linked this PR to it in ZenHub
[x] I have tested this code to the best of my abilities
[x] I have verified accessibility to the best of my abilities (docs)
[x] I have verified i18n and l10n (translation, right-to-left layout) to the best of my abilities
[x] This PR contains automated tests (unit, integration, and/or e2e) to verify the code works as intended (docs)
[x] I have added documentation where necessary
[x] I have added a matching Type: XYZ label to the PR

Fixes #8286

After looking at Percy I wonder whether we should do the alt -> title fallback on the server now.

// In Stories_Media_Controller::get_item()
$data['alt'] = ! empty( $data['alt'] ) ? $data['alt'] : $data['title'];

This way the alt text for a newly uploaded image is not empty, but we still don't have to use title on the client.
WDYT?

$data['alt'] = ! empty( $data['alt'] ) ? $data['alt'] : $data['title'];

I am bit worried about doing this for existing attachments, as it may mean that alts are not updated etc. But I think we should do this for new attachments. Which would fix the e2e screenshot.

$data['alt'] = ! empty( $data['alt'] ) ? $data['alt'] : $data['title'];

I am bit worried about doing this for existing attachments, as it may mean that alts are not updated etc. But I think we should do this for new attachments. Which would fix the e2e screenshot.

How would they not get updated?
For new attachments you mean during upload?

I don't like the alt field not being the real value. I feel like it make for problems down the line, as the value isn't real. API are meant to represent the data, not fudge it for the sake of render.

For new attachments you mean during upload?

Yeah I do.
If we are doing to do this, we will also have to consider uploads handing by wp.media

In f006a79052b502aa4c597dd60ffd5500b4330050 and 0636a478948634d1656a6cc761aa54c6bb6f4ea6, I update the attachment to prefill the attachment with an alt the title value if not set. This way going forward, the database will be correct with the default alt value.

Note that there's a merge conflict now


100% Messages Configurable

As you can see http://prntscr.com/s13l5u, the commands are green and where it says Running v"version", it's the default colors, these are unchangeable...

Yeah these messages aren't configurable - the name of the plugin & the version aren't locale dependant.

but i dont want that a player see that so pls add a perm

Why?
What are you getting out of hiding your permissions plugin?

You kind of insult every developer by hiding the plugin name (and version) from others.
Some if not most devs do work on those plugins in their free time, which often also costs money for them (Hosting own CI servers, licenses and such stuff)
Not everyone donates to the dev to support them and this kind of exposure is the most they often get.
So hiding what plugin you use and who made really takes away the small expose some devs often have.
It also isn't that big of a deal. What would showing the plugin name cause to you? If everything is setup should it be safe to use and there shouldn't be any exploits or similar.

I want a professional Server

And there a server hoster to support luckperms

Hiding plugins achieves 0% of that.
I know plenty of professional servers that don't even block /plugins.
Plugins and how you configure/hide them is not how you make your server professional. It's the time and effort you put into the server itself. The concept, the game play, the worlds/maps, etc. etc. etc.

Mhh it is professional lock if no one know any plugin that is a ideal server

Answer me one question then:
What about hiding a popular plugin's name makes your server more professional?
Your point makes no valid sense and I refer to my previous post: Hiding what plugin is used and who made it is basically insulting the dev.
LP isn't that small I know. But some plugins are and this kind of exposure is often the only method a developer has to share his plugin.
And wow.... a host.... You are aware that hosts not always give money or similar in return, right? They either give a discount on their products for the partner, or in some cases even nothing.
Also, not everyone wants to have a Sponsor, because this often comes with certain requirements and obligations to do, which some wouldn't like.
The point is, that hiding plugins is in no way professional.
Your server is in no way professional if it uses already existing plugins and is yet another SkyBlock server with creative and Prison Mines.

I've written a post on that exact topic a while back: https://mcserverrant.weebly.com/rants/why-you-shouldnt-hide-your-plugins


Regression: Fix U2F modal bug - backport introduced issue into 1.15

although double check that 1.15 is actually affected.

Originally posted by @zeripath in https://github.com/go-gitea/gitea/issues/18040#issuecomment-997990906

Well ... The backport #18042 seems to have introduced the bug it was about to fix in Gitea 1.15. As far as I can reproduce locally, Gitea 1.15 was not affected before that PR was merged, but starting with the merge (commit 91f5be889af4081b05d63aadecb1373689e1f57c), I can reproduce the issue / all modals pop up.
Reverting the backport appears to be fine.
Noticed this a few days ago, but was bumped by a user reporting this on Codeberg after 1.15.8+ was deployed.

The report is about the application tab, but "Security" (U2F) and "Applications" tab functionality seems to be affected equally.

The report is about the application tab, but "Security" (U2F) and "Applications" tab functionality seems to be affected equally.

Opposite, I can reproduce it before #18042 but cannot after it.

Looking at release/v1.15:
https://github.com/go-gitea/gitea/blob/6eaebda1b58040376d002b7e593dd6a2fc255030/web_src/js/index.js#L2959-2986
The id of the modal to look for should be on the modal-id attribute which matches the form.
The only place that there is a form with the id delete-registration is in security_u2f.tmpl is only ever loaded once in security.tmpl.
To my eyes that looks right and I can't see how #18042 is incorrect.

I just checked git.disroot.org which also runs Gitea 1.15.8, and I can reproduce the bug there, too.
I can't say much about the code or the background of this bug, only that I can reproduce on different instances including local development and that it's not only my machine, because we got a user report, too. The issue wasn't present for me before. I doubt I can provide more information, as I'm not that familiar with web frontend stuff. :shrug:

Just to clarify in case this lead to confusion: I'm only talking about the 1.15 branch. I can confirm that the bug is fixed on current main, but the backport seems unnecessary / broken to me.

If I download a copy of 1.15.8 direct from gitea.io I can't reproduce this bug - my worry is that because the Javascript file changed we're seeing yet another issue with cached javascript resources.
I can't reproduce this bug on codeberg right now on chrome or firefox.

Is Codeberg behind some CDN? Is there any cache policy?

Hmm, but why would this allow for local reproducibility by switching back and forth between resources? Or on Disroot Gitea which I only opened to confirm?
No, Codeberg has no special caching policy, and it's not specific to Codeberg anyway.

I can reproduce on all mentioned instances (Codeberg, Disroot, local) with both recent Firefox 95.0.2 and Chromium 90.0.4430.212.

Is there any further info I can try to provide?

Maybe press CTRL-F5 to forcibly reload js resources. Or check in your console what the function looks like.
If I go to codeberg and look index.js (prettified) for delete-button I see:
                $(".delete-button").on("click", Tu),

which maps to
            function Tu() {
                const e = $(this);
                let t = "";
                e.attr("modal-id") && (t += `#${e.attr("modal-id")}`);
                const i = $(`.delete.modal${t}`);
                return i.find(".name").text(e.data("name")),
...

Whereas on 1.15.7 I see:
            function Tu() {
                const e = $(this);
                let t = "";
                e.attr("id") && (t += `#${e.attr("id")}`);
                const i = $(`.delete.modal${t}`);
                return i.find(".name").text(e.data("name")),
...

My suspicion is that the JS you're seeing is still the 1.15.7 version and that's the cause of the problem.

Not the u2f UI, but others: emails, tokens, and etc. in user setting. @zeripath

Ah. I see. We should revert then!

Revert PR approved @lunny

Fixed by #18107


Slight improvement with CLI

I've replaced manual argument parsing with argparse as I've found the current way a bit error-prone. Side-effect is that SIO now has a nice help option using -h or --help.

Note that the random small changes are my editor trimming off spaces at the end of the line.


Specify how to deal with invalid input

Resolves https://github.com/jotaen/klog/issues/163 (see https://github.com/jotaen/klog/discussions/162 originally).
@vladdeSV what do you think? Would that cover the question sufficiently?
I’m not 100% sure whether this should only be recommended (SHOULD) or mandatory (MUST). If it was mandatory, it could be interpreted that e.g. a syntax highlighter would have to stop working completely if there is an invalid token in the file, but that wouldn’t be very helpful. A recommendation would avoid that, as it leaves some room for “common sense”, while still having a clear opinion basically.

@vladdeSV 👀 😝
(Not urgent, though, just in case you didn’t see it.)

Ah! Missed this.
I have not put too much though into this, but my syntax highlighter does its best to highlight whatever it can, even if there are errors in the file… meaning the syntax highlighter wouldn't be spec compliant :P
I don't think this is a big deal. However, I'm not really sure I am the right person to ask. Sorry!

I’ve slightly rephrased it. I think for a syntax highlighter things are a bit different than for applications that evaluate the data.
I think a syntax highlight should help users write the data, so it naturally has to deal with partial or otherwise invalid syntax. However, an application that sums up the total time, for example, shouldn’t just disregard invalid portions of the data.


feat(SR) : Support SCOORD3D point annotations and IDC bounding box annotations

This PR adds the support for SCOORD3D point annotations and IDC bounding box annotations. It depends on OHIF PR https://github.com/OHIF/Viewers/pull/3631, that enables modes to inject customizations in the dicom sr extension. It defines a function that will convert IDC SR annotations to OHIF/Cornerstone compatible ones.
For now, just POINT SCOORD3D annotations and IDC SR bounding boxes are supported, but other annotations will be included in near future. This PR handles SCOORD3D point annotations by projecting them to all images that are distant less than a threshold value, actually set to 0.1. It is important to note that one SCOORD3d can create multiple SCOORD annotations.

It defines a function that will convert IDC SR annotations to OHIF/Cornerstone compatible ones.

As a correction, there is nothing specific to IDC in the samples that were shared for the purposes of developing this functionality. Those SR samples that follow DICOM standard were prepared by IDC, but that's where connection with IDC ends. Those samples follow the standard, without introducing any tool- or project-specific conventions to be relied upon.
I think what you are trying to say in the above is that OHIF/Cornerstone has implementation-specific conventions/requirements, and cannot use standard DICOM SR annotations without applying some transformation to those first.
cc: @dclunie


Fix Possible Congestion Scenario in SPM

Which issue does this PR close?

Closes #12300.
Rationale for this change

Please see the issue.
What changes are included in this PR?

Are these changes tested?

Are there any user-facing changes?

@alamb, you might be more familiar with these parts of the code. Do you have any ideas about this solution, or perhaps you could suggest a different approach?

I'm afraid I don't have capacity to review this, and am not likely to in the foreseeable future, however, one thing to be aware of is that SortPreservingMerge must be stable. Therefore if the first stream is not ready it must wait for it to be so, before it can proceed

I’ve incorporated the final feedback. If there aren’t any more suggestions, I think we are good to merge this PR once the tests pass.


Interpretation of attack results

Thanks for this amazing repo on evaluating differet prompts, and I am keen to apply it to more LLMs 🤗
I tried to evaluate the prompt attack following your example, and obtained the following output:
(0.0, "Aѕ a sentiment classifier, determine whether the following text is 'positive' or 'negative'. Please classify: \nQuestion: {content}\nAnswer:  ", 0.0, 0.0)
I would like to know how to intepretate these numbers, and more importantly how can I obtain the evaluation results like in promptbench/prompt_attack/README.md? Since I haven't found related information in your documents. Am i missing something?
Thank you very much!

Hi,
Thanks for bringing this issue to us! We have modified the code, please clone the most recent repository and see if there are any further issues.
Currently, the output will be:
...

--------------------------------------------------
Current prompt is:  As a sentiment classifier, determine whether the following text is 'positive' or 'negative'. Please classify:
Question: {content}
Answer  and true is true :
Current accuracy is:  1.0
--------------------------------------------------

{'original prompt': "As a sentiment classifier, determine whether the following text is 'positive' or 'negative'. Please classify: \nQuestion: {content}\nAnswer:", 'original score': 1.0, 'attacked prompt': "As a sentiment classifier, determine whether the following text is 'positive' or 'negative'. Please classify: \nQuestion: {content}\nAnswer  and false is not true :", 'attacked score': 1.0, 'PDR': 0.0}

Thanks four your updates


Azure OpenAI  is not support

I write the Azure OpenAI key in the file OAI_CONFIG_LIST, but it's error:
Error:  No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.

Edit the openai key to be azure. See here: https://github.com/microsoft/autogen/blob/main/notebook/agentchat_groupchat_research.ipynb

I edit the app.py code, write the config_list hard in code ,but it's alse error
@cl.on_chat_start
async def on_chat_start():
  try:
    #config_list = config_list_from_json(env_or_file="OAI_CONFIG_LIST")
    config_list = [
    {
        "model": "gpt-4",
        "api_key": "<key>",
        "api_base": "https://xxx.openai.azure.com/",
        "api_type": "azure",
        "api_version": "2023-07-01-preview"
    },
    {
        "model": "gpt-3.5-turbo",
        "api_key": "<key>",
        "api_base": "https://xxx.openai.azure.com/",
        "api_type": "azure",
        "api_version": "2023-07-01-preview"
    }
    ]

2023-11-03 03:02:58 - Your app is available at http://localhost:8000
Task:  hi
GC messages:  0
Query_Agent (to chat_manager):
hi

Error:  No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=). If your API key is stored in a file, you can point the openai module at it with 'openai.api_key_path = '. You can generate API keys in the OpenAI web interface. See https://platform.openai.com/account/api-keys for details.
is not support "api_version": "2023-07-01-preview"?

I write my .env as follow:
OPENAI_API_TYPE="azure"
OPENAI_API_KEY="<azure openai key>"
OPENAI_API_BASE="https://<azure colleciton>.openai.azure.com/"
OPENAI_API_VERSION="2023-07-01-preview"

then it' work


(PDB-4277) Add logback logstash encoder

This commit adds a dependency on net.logstash.logback/logstash-logback-encoder
which is described in the PuppetDB documentation as a tool for transforming
log messages into JSON format:
https://puppet.com/docs/puppetdb/6.2/logging.html#json-text
Prior to this commit, the required library was missing from the uberjar. The
library is managed by clj-parent as Puppet Server includes it.

We also noticed yesterday afternoon that this is broken in pe-puppetdb where the net.logstash.logback/logstash-logback-encoder library is present. The reason being that the encoder depends on the jackson-databind library that we blacklisted in PDB-4236.

This PR needs to re-add jackson-databind, a dependency we removed for security reasons. Since we have some updated versions available we should be able to do this but we will have to investigate that.

I'd like to have an alternative here - jackson-databind is going to continue to have CVE's because of it's very nature. Is there a logstash appender that doesn't need databind?

Test PASSed

The only other JSON encoder for logback that immediately seems promising is from logback-contrb: https://github.com/qos-ch/logback-contrib/wiki/JSON
However, it also uses jackson-databind to serialize objects :(

CLA signed by all contributors.

Well, I guess we'll be adding jackson-databind back. Boo.

Test FAILed

Test FAILed

Test PASSed


Unbreak my build

Cleaning up dependencies, a little code formatting, some example improvements, and overall configuration

Coverage remained the same at 91.72% when pulling 1a32c2fe9668313ca88494dff8b9ada37352dbf4 on unbreak-my-build into 116b65f982fed11a90840d77caab37b59d1ecfed on master.


[KARAF-5604] Speed up descriptor generation

Profiling has turned out two more inefficiencies:

calling log.debug() with a concatenated string -- we end up wasting time constructing the string, which is never logged
aether's DefaultArtifact(String) is extremely slow due to Pattern.compile() it contains

retest this please


/ft  returns no results

If the command is given to the bot is /ft <keyword>, it returns no results.
E.g.

It looks like that this is caused by a space prepended to the search term.

@radiantly Thanks for reporting! Have fixed the issue. Kindly verify.

Thanks, works now! :+1:


Couldn't connect from Fedora 38 to Fedora 39

xrdp version
<IP_ADDRESS>
Detailed xrdp version, build options
xrdp <IP_ADDRESS>
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2020 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --build=x86_64-redhat-linux-gnu
      --host=x86_64-redhat-linux-gnu
      --program-prefix=
      --disable-dependency-tracking
      --prefix=/usr
      --exec-prefix=/usr
      --bindir=/usr/bin
      --sbindir=/usr/sbin
      --sysconfdir=/etc
      --datadir=/usr/share
      --includedir=/usr/include
      --libdir=/usr/lib64
      --libexecdir=/usr/libexec
      --localstatedir=/var
      --runstatedir=/run
      --sharedstatedir=/var/lib
      --mandir=/usr/share/man
      --infodir=/usr/share/info
      --enable-fuse
      --enable-pixman
      --enable-painter
      --enable-vsock
      --enable-ipv6
      --with-socketdir=/run/xrdp
      --with-imlib2
      build_alias=x86_64-redhat-linux-gnu
      host_alias=x86_64-redhat-linux-gnu
      CC=gcc
      CFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
      LDFLAGS=-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -specs=/usr/lib/rpm/redhat/redhat-package-notes
      LT_SYS_LIBRARY_PATH=/usr/lib64:
      PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig

  Compiled with OpenSSL 3.0.9 30 May 2023

Operating system & version
Fedora 38
Installation method
dnf / apt / zypper / pkg / etc
Which backend do you use?
I do have both installed don't know which one is being used (tigervnc and xorgxrdp)
What desktop environment do you use?
KDE
Environment xrdp running on
on Physical Desktop Computer
What's your client?
It is not working with many RDP clients, I tried with Remmina and KRDC
Area(s) with issue?
Other
Steps to reproduce
I just installed xrdp and tigervnc-server on a remote computer. After installation, I added port 3389 to the firewall settings.  I tried to connect to the PC using Remmina and it showed a login screen but after that, just a black screen with some crossed cursor showed up.,
✔ Expected Behavior
Should have connected successfully.
❌ Actual Behavior
Black screen with X sign.

Anything else?
xorg.ini
https://paste.centos.org/view/deb312aa
sesman.ini
https://paste.centos.org/view/81a666a5
xrdp.log
https://paste.centos.org/view/e45caecb
xrdp-sesman.log
https://paste.centos.org/view/d8ccfb6d

I created a new user on remote it works fine with that user, but I am not getting it. I have already tried with other users but was not working.

I can't see any problems in your log other than the one you've highlighted.
A couple of possibilities:-

You might be trying to use the same user on an RDP session and the console at the same time. This isn't supported on systemd-based systems. See the FAQ
If you restart the xrdp service, any session already active will remain working but you will no longer be able to reconnect to it. Symptoms are the same as 1)

Restart the system, check no-one is logged on to the console and try again.

Yeah you’re right, I was trying with the same user I was login with ssh.
thanks


⚠ Samsung has degraded performance

In 049e3dc, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2579 ms

Resolved: Samsung performance has improved in 534c6d9.


Replace deprecated-kwargs with removed-kwargs

We use deprecated-kwargs error code for removed kwargs. So, it's better to replace it with removed-kwargs.
Right now, there is no usecase for deprecated-kwargs error code but we can add it again in the future if we need it.
Selected Reviewer: @samuelcolvin`

please review

For the record, can you link the issue/describe why this is needed?

There is no issue for this. So, I've updated the PR description.


Fix deprecation warnings

Update node version

Update version of packages

Update version of runner

Update version of actions

Update dist


[APIView] Null in Comment Model

https://github.com/Azure/azure-sdk-tools/blob/main/src/dotnet/APIView/APIViewWeb/Pages/Shared/_CommentThreadInnerPartial.cshtml#L55
If comment is null in comment model, fix historical data or update code to handle nulls in historical data.

Resolved


hobbes: 2020-03-10 -> 2020-05-19

Motivation for this change
Moving to more recent compiler versions.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[x] macOS
[x] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[x] Determined the impact on package closure size (by running nix path-info -S before and after)
[x] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@grahamcofborg build hobbes

Result of nixpkgs-review pr 88205 1

1 package built:
- hobbes


Need to support pushes too

policial.io will need to support pull_request hooks and also pushes. So we can generate things like badges.

Not sure how we are going to do this. I think we will have to clone the entire repo, using a sha, and run the command in all files.
Does that make sense?

To inspect the entire repo linters can be enabled on a CI server directly. Policial will remain responsible for pull requests only for now.


stop the shim from treating gradient-center as a color stop

A partial fix for #10. Ideally, the background-position property should also be taken into account. This may come in another commit somewhere down the line ;)

Thanks for contributing and spotting what was causing that bug!
Agreed with the fix, but the terminology is confusing. This is not the background-position property, this is the center point of the gradient. Could you fix that please?

done.

Thanks! Also please remove the console.log() or add a check if the console object exists? (and make it console.warn). i.e. self.console && console.warn && console.warn("text here");

I've gone ahead and made an implemented functionality to specify the gradient's center position. That commit would supersede this one, so, I'd like to close this PR.

Hello,
I think this PR broke RGBA colors. Could you please look into it?
Thanks.

 It'd help in tracking down the issue

It's very weird. It was magically fixed on its own, without a Chrome update even. So odd. But less to debug!

Hmm, that's odd... If it happens again, please grab a screenshot and put it here. I can try to trace it.


[Refactor] Use map to instead storage.java's props

What type of PR is this：

[ ] bug
[ ] feature
[ ] enhancement
[x] refactor
[ ] others

Which issues of this PR fixes ：

Fixes #6833
Problem Summary(Required) ：

Use map to instead storage.java's props

[FE PR Coverage check]
:heart_eyes: pass : 27 / 30 (90.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/persist/Storage.java
27
30
90.00%

[FE PR Coverage check]
:heart_eyes: pass : 31 / 34 (91.18%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/persist/Storage.java
31
34
91.18%

[FE PR Coverage check]
:heart_eyes: pass : 19 / 19 (100.00%)
file detail

path
covered line
new line
coverage

:large_blue_circle:
com/starrocks/persist/Storage.java
19
19
100.00%


feat(module/asg): Update Lambda runtime to Python 3.11

Description
PR delivers:

changes in Lambda runtime (from Python 3.8 to 3.11)
improvements in Lambda code (reformat code, remove target exceptions, adjust lines to 120 characters)

Motivation and Context
Resolves #42.
How Has This Been Tested?
Code was tested in the lab and via ChatOps.
Types of changes

New feature (non-breaking change which adds functionality)

Checklist

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

/idempotence paths="examples/combined_design_autoscale examples/isolated_design_autoscale examples/centralized_design_autoscale"


ValueError: Exif might be wrong. Got incorrect value type to decode.

Hi there,
Got this error with my photos taken with my DMC-FT5 Panasonic Camera.
ValueError: Exif might be wrong. Got incorrect value type to decode.
tag: 40962
type: 9

Which links to the comment here in your code
Attached is a sample code and photo to replay the bug.
Thanks for your lib which is very handy I intend to use it for my project lycheesync but if it can't recognize my own photos It will be a no go. I hope you can fix it, but I think the code is not commented for no reason.
Good luck with this one and thanks again for your lib !
attachement.zip

In haste, why error occurred.
It looks the value type is saved as SLONG. Correct type of tag "40962(Exif IFD)" should be SHORT or LONG.

http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf

I'll think how to avoid it on this weekend.

Why SLONG is commented out is no value uses SLONG as it's type in exif document.
http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf
Clear the comment marks and run the code : )

Hi, thanks for your quick reply !
Obviously Panasonic is not very good at reading the specs ;)
I could clear comments and run the code for my own use (no doubt it will work) but obviously users of my project will just:
 pip install piexif

As I said if it crash for all Panasonic camera users, it will be a no go.
For backward compatibility, SLONG is supported by other tools like imagemagic.
Is your answer a way to tell me that you won't support SLONG in your lib ?

pip install... I got it.
I'll fix it and upload a new version on PyPI in a few days.

Thank you !

Done : )

Wonderfull ! Thanks a lot ! Now I can release my script next version ;)


SetEditing to false in ViewWillDisappear

Where SetEditing is discussed it would be helpful to note you need to accommodate for when the user navigates to another view controller before editing is done. This is easily handled by adding SetEditing to false in an override of the ViewWillDissapear method:
    public override void ViewWillDisappear(bool animated)
    {
        base.ViewWillDisappear(animated);
        SetEditing(false, false);
    }

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

ID: 335d3efa-e7f8-9b1e-e968-a8dd94a34d2a
Version Independent ID: b7168841-0dab-b370-ae57-45d2f3eed201
Content: Editing Tables with Xamarin.iOS - Xamarin
Content Source: docs/ios/user-interface/controls/tables/editing.md
Product: xamarin
Technology: xamarin-ios
GitHub Login: @davidortinau
Microsoft Alias: daortin

Thanks for submitting an issue and we apologize for the delayed response. The requested updates haven't been made since the creation of the issue, and the timeline for resolution may vary based on resourcing, so the issue is being moved to an internal repo to better track it.


Enhance Indicators : Set Text and Background from one color

Hi
First, thank you very much for this wonderful project! I'm in the process of migrating from AvalonEdit which is cool too but the WPF based code is a problem for me.
I'm trying to apply some highlights for Liquid language included in HTML document. I succeeded to do this but it would be awesome if it was possible to add the possibility to colorize Text AND Background color, based on the ForeColor. I think this wouldn't require too much effort to get the same result as below

It would require a new IndicatorStyle so that the ForeColor specified would be used by text and the Alpha to create the background color

I understand what you're trying to do, but I don't understand why you think Scintilla isn't capable of it or why indicators would be necessary. A style can have a ForeColor and a BackColor (among other things). Why not just use the BackColor to achieve what you want?

I'm already using HTML lexer (and Cpp for JavaScript) and I read it was not possible to change the behavior of an existing lexer.
I found that using indicators allowed me to "add" additional behavior (the one for Liquid syntax).
Is there a better way to handle this scenario?

Ah, I see. Your issue then is that there is not a purpose-built lexer for Liquid fragments in HTML documents and you're trying to work around that by using indicators to do custom styling over top of the built-in HTML lexer....
Ya, you're trying to do something it wasn't designed for. :)
If you want that level of control over your styling then you need to write a custom lexer.

Ok, I understand. My question was just to know if it was possible to add a new IndicatorStyle as described. That will help me to achieve my goals and could be useful for others too

In that case, the answer is that ScintillaNET is a wrapper around the Scintilla native component. Our project only makes that native Scintilla component easily callable from .NET, but doesn't provide any features of our own. To add new indicator styles would be a request for the native Scintilla team.

ok, that makes sense!
Thank you very much!


Inconsistency between systems

This is quite strange issue. I have project that I'm running on Docker. I've installed on Windows latest version, same in Docker machine. However on Windows I'm not getting all the errors fixed whereas on Linux I do.On Linux I've also got this "Files that were not fixed due to internal error:" error (which shows the file with problem) whereas on Windows this error does not happen. Is it normal or maybe something in broken and causes inconsistency in verifying files?

No, it shouldn't.
https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2042#issuecomment-230360160

Ok, so the question is what is going on? I believe other developer using Windows got some files fixed and I haven't on Windows (but have in Linux) - I'm talking about exact same files. I've also removed cache file manually just to make sure it's not a cache problem but it seems it isn't. Is there any way there's some strange bug?
I've updated to latest v.1.12 dev branch and on windows I've got something like this:
In all above steps I'm running php-cs-fixer --verbose fix command

I've run 1.12.dev on Windows. I've got something like this:

.......F........FF...........................I............................FI......I.F...............F.............F......F.....F...................F.....F....F...........FIF.....................F....F
.......F....F.....F....F....FFF.......II..II.........FF..........I..F...F..........I.....F

So some files were fixed, some were invalid

I've run 1.12 dev on Windows. I've got something like this:

IIIIIIIIIIIIII

So I'm getting Invalid file syntax, but php-cs-fixer shows no details

For exactly same files I run fixer on Linux (after fixing on Windows) and I'm getting something like this:

...........................................................................F......................................................................................................................................................FFFF........................................................F...FF.....................F.................F......

Now I again run fixer on Linux and I'm getting nothing so it seems now everything is correct.

Exact output for this is:

Loaded config from "/usr/share/nginx/html/.php_cs".
Legend: ?-unknown, I-invalid file syntax, file ignored, .-no changes, F-fixed, E-error
Fixed all files in 2.289 seconds, 6.000 MB memory used

So it seems somehow that on Windows php-cs-fixer is not able to fix. Upgrading into 1.12-dev as you see haven't changed this. This is exact same as on 1.11.4

As you could imagine without information about the files we cannot guess anything.
Please, took one F and one I file from your Windows run.
make sure there are not modified on Unix.
on both env, run: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/2042#issuecomment-230360160
Also, -vvv could be a bit helpful during running the fix command.

BTW, be extra sure that the reason is not that GIT your Windows converts unix line endings for Windows one and then you are running PHP CS Fixer to convert them back to unix

@keradus I probably now what's happening, in file that is not fixed on Windows, I use scalar type hinting introduced in PHP 7. On Windows I have PHP 5.6.0 installed, whereas on Linux I have PHP 7. So the question is - does php-cs-fixer needs PHP version installed in same version as files that are checked? If I remove int type hinting, now the file is correctly fixed on Windows
In requirements there is only info about 5.3.6 version. If version of PHP should be exact same, I would recommend adding this into readme because many developers are using virtual machines and probably many might have such situation.
There is also a problem with -vvv option, If I use it on list of files on Windows I'm getting this file listed like so:

[0.027 s] Models\Notification.php
...
Fixed all files in 1.226 seconds, 5.250 MB memory used

There is no a single warning/failure that file cannot be verified and without this second php-cs-fixer on Linux I wouldn't even know that for example this exact file causes any problem. It would be better if it was displayed somewhere with info that file is in incorrect PHP version or something like this.

Maybe we introduced the invalid list only on 2.x then, don't remember.
To run the tool you need PHP 5.3.6.
To fix the file - you need PHP version that supports file syntax you are using. If you want to fix PHP7 file using PHP5... c'mon...
Tool won't error on that file (Error), it will just ignore file with unknown syntax (Ignore).

To be honest I was never thinking how php-cs-fixer is fixing files, but I thought it does not need the same PHP version. I would rather expect it's parsing only PHP file (as text) without need to have the same version, but now it's clear for me it does need the same version.

Again, it DOES NOT need the same version.
For running the tool - 5.3.6+.
For fixing files - at least the version of PHP that started supporting syntax used in given file, for each of them individually.
If you have:

file_a.php - using 5.6 syntax, you will have it fixed on PHP 5.6+|7+
file_b.php - using 7.0 syntax, you will have it fixed on PHP 7+

So if you have only that 2 files you still can run the tool on 5.6, but it will handle only files with recognized syntax - so file_a.php.
Of course on PHP 7 you will get better results, as it will recognize more files.
In the end, if you would have project written for 5.2, then you may use PHP 5.3.6+ to fix it,

Yeah, this is what I mean - to fix all files you need to have PHP version installed in at least same version as those files syntax .

to fix all files you need to have PHP version installed in at least same version as those files syntax .

More or less, as the fixer lints the files some new syntax elements might be a problem (for example with PHP7(.1)), but for a lot of PHP minor releases this hasn't been an issue.
I would say it fair to expect that when you have code that you cannot run because it relies on new features on some env.; it cannot be fixed in that env. either.

many developers are using virtual machines

Typically devs. run a higher PHP version on their dev. setup than the version on their VM. Using VM's  for projects req. older PHP versions is a very good idea. I just cannot think of a reason why someone wants to dev. on 5.x and use a VM on 7 and not the other way around. Or stated diff. why someone would setup/use an dev. enviroment lower than the PHP version developing for. Beside this fixer a lot of other development tools like SCA's (based on tokens) and such will not be helpful as well.
But sure it can happen.
I agree we could improve the error/warning messaging especially on -vvv level, its just that no one got the time to do it so far.

@SpacePossum The reason is than I'm on Windows platform and cannot set up here easy many things as for example supervisor etc whereas in virtual machine I can have almost everything same as on live Linux server. And it's not only PHP version but also MySQL so it's more convenient to use virtual machines for that. I'll of course update to PHP 7 on local machine too.

choco install php -version 7.0.5 ;P

Never used choco before, need to check :)

choco install php -version 7.0.5 ;P

: D
ps. just run the fixer on the VM and you are all set! :)  best of luck!
pps. Snippet from my provision bash script for VMs

if command_exists php-cs-fixer ; then
	php-cs-fixer selfupdate
else
	wget http://get.sensiolabs.org/php-cs-fixer.phar -O php-cs-fixer
	chmod a+x php-cs-fixer
	mv php-cs-fixer /usr/local/bin/php-cs-fixer
	php-cs-fixer -V
fi

@SpacePossum This is exactly what I was doing when talking about Linux in this thread :)


Add FileAnalyzer

I'm looking to create an FileAnalyzer that scans files within a base path, independent of technology, to identify associated endpoints. This Analyzer should be triggered when the -u flag is present, as the URL obtained through the -u flag is considered essential. This is because, when discovering URL patterns containing the obtained URL, they can be regarded as endpoints.
Here are some examples:

URL formats identified in source, text, image, etc files
URL formats within strings in binaries

string hook
base64 hook


Windows/Linux support

We're using electron-package to build for the macOS platform. It'd be great if someone could try building the executables  for Windows and/or Linux.

Bin photosorcery doesn't work on Windows 10

Windows support has been added! If anyone wants to try building for Linux, that would be much appreciated!

Is anyone able to run Alchemy.exe on Windows 7 64-bit? I downloaded Alchemy-win32-x64.zip and extracted the zip file. I ran Alchemy.exe and nothing happens. Not sure what's going on.

@sunk818 did you check the task bar at the bottom? It won't pop up like a normal window would until you click the task bar icon or use the keyboard shortcut.

I downloaded Alchemy-win32-x64.zip and it works very well. Dont forget press Control+Shift+8 or click the tray icon for open it.

I've compiled and started on Ubuntu and Kubuntu so far. I'll be testing in Xubuntu, Mint Cinnamon, Mint Mate, FreeBSD, and Element.
I'll post more details when I log back into my Ubuntu machine, but the short story is that compatibility will be limited by which desktop environment is used. I won't test on Unity (since that's been abandoned for Gnome 3), but Gnome 3 does not have a menubar. The application starts fine, but you can't find an icon anywhere. Fixing that should be part of an update to electron.
Here's a shot of the app running fine on Kubuntu, though the placement is a bit odd and a light icon would be nice.

Running the app in XFCE produces odd behavior.
A button appears below the icon when the icon is clicked in the menubar.

After clicking the button, the Alchemy window appears.

I'm not going to test the other desktop environments right now. Next I'd like to verify functionality works as expected in KDE.

Build log in KDE:

The container shows in the taskbar, but if you click anywhere it disappears making the program useless.

It would be nice to see a version where it can be a separate entity from the minimized taskbar.

@kaluk1321 First off, really nice work looking into this issue.

It would be nice to see a version where it can be a separate entity from the minimized taskbar.

I agree with this, it seems that the way that Windows and many of the desktop environments for Linux environments works, a taskbar button simply isn't going to work for an easy workflow. It works great in OSX, but I feel a different approach is required for both Linux and Windows.


Add zh_cn language

Changed FabricLoader version to pass the compile
Changed text to translatable text ( to add language file )
Added Simplified Chinese ( zh_cn ) language

Conflicts, closing.


feat: added ability to use more than one account for adding sqs subsc…

…riptions
Description

Motivation and Context

Breaking Changes

How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[ ] I have tested and validated these changes using one or more of the provided examples/* projects

[ ] I have executed pre-commit run -a on my pull request

:tada: This PR is included in version 1.4.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Changing "required" from boolean to array as per specification

As per specification field "required" must be an array of child properties that are mandatory, not a boolean.
I am not sure why we ended up with it being boolean in the first place.
However, we should address this issue, because generated schema can not be used with other tools as it violates the spec.
I understand that this change is backward-incompatible, so it should be targeted for 2.8.

Are you sure this is not one of many JSON Schema v3 (version this package supports) versus v4 (not supported) issues? That has been the explanation for many similar issues which is why I am asking.
For v4, a new package should be created, and that could fix many other issues as well.

Yes, you are correct, it is v3 vs v4 change.
Could you please elaborate more on new package for v4?
You mean like we create a new package com.fasterxml.jackson.module.jsonSchema.v4.* and copy everything from v3 into it and adjust? Or do we want to reuse common pieces?
Did we have similar experience with v2 and v3?

@mmyslyvtsev  I mean possibly whole new Git repo, project. Or, make current one have sub-project (maven module). Either case, new Maven group, Java package.
It could follow, for example Hibernate module:
https://github.com/FasterXML/jackson-datatype-hibernate/
which has separate modules for v3.x, v4.x and v5.x of Hibernate. Similarly Scala module (2.9, 2.10, 2.11).
The reason I do not think a switch or toggle would work for the same module is that differences between Schema v3 and v4 appear large and incompatible. It may also be that v5 (work in progress? I think) will have similarly major changes.
If you want it may make sense to send another email on jackson-dev list, as this has surfaced a few times, and I think there is quite a bit of interest (if not movement) to actually support v4.
Also: when creating new project, module, it would be much easier to make breaking changes to API: at this point there's lots of cruft on schema module side. There are also some issues in jackson-databind side, but I am not 100% sure they'd be as easy to fix.

Having new module makes sense, but I would also prefer the packages to be different as well to avoid runtime class conflicts.
However, this discussion is out of scope of this pull request.
This pull request does not make much sense, because proper v4 support has to be implemented.

@mmyslyvtsev yes, completely separate, to potentially be used within same JVM. And yes, this is separate thread of discussion.


chore: bdd-gh-1590288352 to 0.0.1

chore: Promote bdd-gh-1590288352 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Improve display of run details on the status page

Purpose and background context
Improve display of "Run details" on task status page.
How can a reviewer manually see the effects of these changes?
Run details before the change:

Run details after the change:
Includes new or updated dependencies?
NO
Changes expectations for external applications?
NO
What are the relevant tickets?
- Include links to Jira Software and/or Jira Service Management tickets here.

Developer

[ ] All new ENV is documented in README
[ ] All new ENV has been added to staging and production environments
[ ] All related Jira tickets are linked in commit message(s)
[ ] Stakeholder approval has been confirmed (or is not needed)

Code Reviewer(s)

[ ] The commit message is clear and follows our guidelines (not just this PR message)
[ ] There are appropriate tests covering any new functionality
[ ] The provided documentation is sufficient for understanding any new functionality introduced
[ ] Any manual tests have been performed and verified
[ ] New dependencies are appropriate or there were no changes

Pull Request Test Coverage Report for Build<PHONE_NUMBER>5
Details

8 of 9 (88.89%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.3%) to 86.835%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

webapp/utils/aws/cloudwatch.py
8
9
88.89%

Files with Coverage Reduction
New Missed Lines
%

webapp/utils/aws/cloudwatch.py
1
93.48%

Totals

Change from base Build<PHONE_NUMBER>1:
-0.3%

Covered Lines:
310

Relevant Lines:
357

💛  - Coveralls


Specify shape molcloud (no opencv)

New PR cause RNA contrib changes were too many

I had to add this line to keep the ratio of the input image. (That's the only change here)
A.graph_attr.update(ratio=ratio)
I guess the point of this test is to make sure layout is optimal, but is it necessary?

Thanks @doncamilom! Will get to examining that error shortly - don't think it's related to your PR.


Block saving with a context manager

🐛 Bug
As noted in https://github.com/napari/napari/pull/1010#discussion_r394962872 the block_saving in the labels layer should probably done by a context manager. @jni @kne42

I think this was addressed or made irrelevant by https://github.com/napari/napari/pull/4702
Can we close cc: @DragaDoncila

@psobolewskiPhD yep, I think this should be closed. If folks experience any issues or have feature requests related to labels layer paint events, they should open a separate issue 😊


Cannot have ReferenceField unique

I have this simple model:
class Model(Document):
    ref = ReferenceField('Referenced', unique=True,)

When I create a basic serializer and a basic viewset for this model, I obtain an error when I request the endpoint (/models/):
Traceback (most recent call last):
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/core/handlers/exception.py", line 41, in inner
    response = get_response(request)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/core/handlers/base.py", line 217, in _get_response
    response = self.process_exception_by_middleware(e, request)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/core/handlers/base.py", line 215, in _get_response
    response = response.render()
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/django/template/response.py", line 107, in render
    self.content = self.rendered_content
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/response.py", line 72, in rendered_content
    ret = renderer.render(self.data, accepted_media_type, context)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/renderers.py", line 703, in render
    context = self.get_context(data, accepted_media_type, renderer_context)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/renderers.py", line 636, in get_context
    raw_data_post_form = self.get_raw_data_form(data, view, 'POST', request)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/renderers.py", line 559, in get_raw_data_form
    content = renderer.render(serializer.data, accepted, context)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/serializers.py", line 534, in data
    ret = super(Serializer, self).data
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/serializers.py", line 267, in data
    self._data = self.get_initial()
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/serializers.py", line 411, in get_initial
    for field in self.fields.values()
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework/serializers.py", line 364, in fields
    for key, value in self.get_fields().items():
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework_mongoengine/serializers.py", line 324, in get_fields
    field_name, self.field_info, model, depth, depth_embedding
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework_mongoengine/serializers.py", line 373, in build_field
    return self.build_reference_field(field_name, relation_info, nested_depth)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework_mongoengine/serializers.py", line 469, in build_reference_field
    field_kwargs = get_relation_kwargs(field_name, relation_info)
  File "/home/vincent/.local/share/virtualenvs/ieml/lib/python3.6/site-packages/rest_framework_mongoengine/utils.py", line 213, in get_relation_kwargs
    validator = UniqueValidator(queryset=model_field.model.objects)
AttributeError: 'ReferenceField' object has no attribute 'model'

define the unique index in meta.

Indeed, it works.


Mixed datatype

Adds a 'Mixed' datatype which can hold different value types. ex)
class AnyValue: Object {
    var anyCol = RealmProperty<AnyRealmValue>()
    let anyList = List<AnyRealmValue>()
}
// ...
object.anyCol.value = .int(5)
object.anyCol.value = .bool(true)
object.anyCol.value = .string("hi")

@interface MixedObject: RLMObject
@property id<RLMValue> anyCol;
@property RLMArray<RLMValue> *anyArray;
@end
// ...
object.anyCol = @YES;
object.anyCol = @12
object.anyCol = @1.145
object.anyCol = @"hi"

Mixed properties:

Cannot be marked optional since null is always a permitted value.
Can be indexed
Cannot be a primary key

Comparatibility between mixed value types:

Numeric: int, bool, float, double, decimal
Byte based: string, binary
Time based: timestamp, objectId
The remaining types do not attempt any conversions: link, UUID

Querying:

Equals queries match on the value and the type.
Not equals queries will match objects with either different value or different type.
Numeric values are converted where possible - e.g. mixed == 1 will match all of 1.0, 1, and true.
String properties will not match numeric queries - e.g. mixed == 1 will not match “1”. mixed == “1” will not match 1, 1.0, or true.

@tgoyne could you PTAL

@tgoyne PTAL

One thing I notice while poking at it is that the whole dynamically created schema thing is only tested in the sync tests but it is not sync-specific. Anything which doesn't require a server to test should have non-server tests.


laravel auth credential attempt check extra field whereIn Array

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

Description:
$credentials = [
        'email'       => $request->get('email'),
        'password' =>  $request->get('password'),
        'type'         => ['member', 'school'],
        'status'       =>'1',
];
if (Auth::attempt($credentials, $request->has('remember'))) {
       return redirect('/account')->with('success', 'Login Successfully');
}
return redirect()->back()->with('error', 'Invalid Credentials!');

Error Accured Invalid Credentials to Add  'type'         => ['member', 'school'],
Steps To Reproduce:

That's not supported in laravel atm, please feel free to submit a Pull Request.
Closing since this isn't actually a bug report.

@baqirfarooq See #24620


I have a questions metamask not showing .

1.I want to display metamask in browsers that do not support metamask wallet, users can click to open the app directly, or go to download, I want to know if web3modal can do it?
2. In Google Chrome, I use the connect method, web3modal directly links to metamask, and there is no pop-up interface for selecting wallets, including the option of metamask

Hi @shenhaoguangDayDayUp i suggest you contact metamask support to help you solve this issue, click on metamask support page to engage in a conversation with metamask representative to help you resolve this issue right away.
CLICK HERE
A live chat box window will then automatically appear on your screen where you may contact the support team

Hello,

You could use WalletConnect and scan the QR code shown in any compatible wallet https://walletconnect.com/registry?type=wallet, that solution doesn't directly require the Metamask extension to be installed in your browser.
Have you added one or more providers to Web3Modal constructor? You can see the variable providerOptions here https://github.com/Web3Modal/web3modal#usage and each provider can be configured following this section https://github.com/Web3Modal/web3modal#provider-options.

Hello,
1. You could use WalletConnect and scan the QR code shown in any compatible wallet https://walletconnect.com/registry?type=wallet, that solution doesn't directly require the Metamask extension to be installed in your browser.

2. Have you added one or more providers to Web3Modal constructor? You can see the variable `providerOptions` here https://github.com/Web3Modal/web3modal#usage and each provider can be configured following this section https://github.com/Web3Modal/web3modal#provider-options.

Thanks for assisting the community @MrLucio 🙌


Can't login

When I click on log in in blender nothing happens, it says logging in but only while my cursor is over log in button and nothing else happens.

Expected behavior here is that your default browser launches with a login page. Can you confirm that no tab is opened in your browser?
If there is no tab, can you check for errors in Blender's system console?
On Windows, you can open this from Window > Toggle System Console
On Mac, you need to restart blender from the terminal; Open Terminal, type blender, and hit return. Then, the output should go to that terminal once you reproduce the issue again.

I cant log in it says this Internal client error.
No module named 'pyjwt_key_fetcher'

Thank you for your reply!
I tried to log in without having my browser opened and it still didnt work. Here is what i got on console:
Read prefs: "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\config\userpref.blend"
Traceback (most recent call last):
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\lib\oauth2_login_operators.py", line 69, in on_login_complete
task.result()
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\lib\oauth2_client.py", line 178, in login
await site.start()
File "C:\Users\PC\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\roblox-blender-plugin-main\dependencies_public\aiohttp\web_runner.py", line 121, in start
self._server = await loop.create_server(
File "C:\Program Files\Blender Foundation\Blender 3.6\3.6\python\lib\asyncio\base_events.py", line 1519, in create_server
raise OSError(err.errno, 'error while attempting '
PermissionError: [Errno 13] error while attempting to bind on address ('<IP_ADDRESS>', 8080): an attempt was made to access a socket in a way forbidden by its access permissions
Thank you for your reply once again!

@t3xellz That's odd, that dependency should have been installed during the dependency installation when the plugin first ran - it requires you to click "Install dependencies". Can you try uninstalling the plugin, re-installing it, and watching the terminal output during dependency installation to check for any errors?

@Losqe Aha, this is probably a port conflict with another application running on your computer. To avoid such conflicts, we plan to change the plugin's port to something less common (port 8080 is a default port for web servers). We also intend to add better error handling to show a user-facing error message in case of login errors.
For now, you can try to stop whatever process is tying up your port 8080 by opening command prompt on windows, entering netstat -ao, and finding the PID (Process ID) corresponding to the Local Address that lists :8080 as the port.
Then, match this PID to the process name to figure out which process is holding it open. You can do this by entering the command

tasklist /fi "pid eq 1234"

where 1234 should be replaced with with the PID you found.
Alternatively, you can open Task Manager (Right click Windows icon, Task Manager), make sure you're in Advanced mode, go to Details page, click the PID column header to sort by process ID, and find the one matching the one you found from the netstat command. This will show its process name and, if you so choose, let you end the process.

I got list of all PIDs with command prompt and went over them, but I couldn't find 8080. I tried to find it using other method and it doesn't show up. Here is picture what I got:

Thank you for your time!

The port change is now live in v1.0.1. Closing this as resolved now.


Add support for WIFI QR codes

See e.g. https://me-qr.com/qr-code-generator/wi-fi

Welcome to Codecov :tada:
Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Error show in tomcat logs

I see the following error suddenly from today in my tomcat logs and no messages are read from queue in my application, could anyone help me on this:
component.jms.DefaultJmsMessageListenerContainer Could not refresh JMS Connection for destination 'EmployeeQueue' - retrying using FixedBackOff{interval=5000, currentAttempts=1, maxAttempts=unlimited}. Cause: unable to get a connection from pool of a PoolingConnectionFactory with an XAPool of resource jms/ConnectionFactory with 10 connection(s) (0 still available)

The problem seems to be caused by a depleted JMS connection pool:

unable to get a connection from pool of a PoolingConnectionFactory with an XAPool of resource jms/ConnectionFactory with 10 connection(s) (0 still available)

So you've configured a jms/ConnectionFactory pool with a max size of 10 and all 10 connections are used up.  If your pool eventually recovers (you can monitor how many connections are available by calling PoolingConnectionFactory.getInPoolSize(), or by accessing the JMX MBean) this probably means this is the case.

Connections are being leaked, one way or another. The most probable case is that your code forgets to call close() on the Connection object returned by PoolingConnectionFactory.createConnection(). The JMX MBeans should list all connections and each one has a transactionGtridsCurrentlyHoldingThis property that should help you figure out what transaction is still holding a particular connection. That info, coupled with the list of in-flight transactions identified by their GTRID allows your to find the name of the thread that holds the transaction. This isn't the complete path to the code that leaked the connection, but it should help you narrow down the code that's responsible for that leak.

Thanks. My issue was falling under 1st point you mentioned.


how to delete unnecessary HASH from MoK ?

good day!
MokManager has option in menu: "Enroll hash from disk" [static void mok_hash_enroll(void)].
but how to delete unnecessary hashes from mok ?
an malefactor can boot a old (bad, bugged) version of efi-file , that earlier was enrolled by MokManager's "Enroll hash from disk".
thanks in advance. and sorry for my bad english

solution: use utility mokutil (or some other for changing EFI-variable "MokAuth...")


gpu memory leak

gpu memory leak

Dear @sukibean163,
I also met this problem. Had you solved it?
Best wishes,
Tao Xunqiang

@taoxunqiang ,hi! try to MXPredFree correctly for p/r/o net

Dear @sukibean163,
Thank you for quick reply.
I will try it.
Best wishes,


[Azure DevOps Feature Timeline] Server build number missing for 2020.1.2

CC: @gloridelmorales
Link to markdown page:
https://github.com/MicrosoftDocs/azure-devops-docs/blob/main/release-notes/features-timeline.md

@gloridelmorales Looks like Server versions list is still lacking "2020.1.2". Can you help get this fixed?


feat(map): add Treeview to bus tooltips

Description
reopen #558
todos:

fix lint
improve types

Closing in favor of #566


Misc pico docs fixes

Just some small tweaks

~half of ITCMRAM is reserved (though none of it was usable before)
vgaboard has a bit less RAM available
HID code for vgaboard isn't merged, but does support the joystick

(There's also unmerged SD card support for vgaboard, but it's a huge pile of code...)
I should probably finish some of the "make VGA actually usable" bits.

Thank you!


feat: defsec k8s scanner integration

Signed-off-by: chenk<EMAIL_ADDRESS>Description
replace trivy-operator implementation for validating policies with DefSec scanner (same one used in Trivy)
Related issues

Close #57

Checklist

[x] I've read the guidelines for contributing to this repository.
[x] I've added tests that prove my fix is effective or that my feature works.

@chen-keinan Also, not sure if you mind this PR getting merged for release v0.0.6 or you rather wait for next release. Up to you, just mentioning because we are releasing  v0.0.6 tmr, and depending on what you decide you need to wait to merge.


NPM "latest" tag is old release

This results in version 3.x being installed when simply running npm install -g @tableland/cli. I had to explicitly install version 4.0.2 to get the latest.

I think the publish workflow should be adding the latest tag for us.  Maybe this package was published to npm manually?

Yeh weird, the workflow should be doing that for us? But I know there was a bug in the workflow at one point, maybe it didn't get fixed? @awmuncy did you publish that one manually, or use the publish workflow?

No bug here. I had published through the workflow, but due to a couple bugs, I manually set it to 3.1.2, thinking I'd keep it there until the official SDK 4.x was released. I see that was released last night, so I'll point to 4.x on the CLI now.

Thanks everyone.


Not respawning at respawn anchors

Server: Paper 1.16.1 build 44
Multiverse-Core: 4.1.0
Multiverse-Netherportals 4.1.0
I have a nether world.  I have a resource anchor in that nether world.  The anchor is charged.
I set my respawn point using the anchor (and get the message, and the achievement).
I die.
The resource anchor uses one of its charges.
I respawn at the world's default spawn point.
I removed all of my plugins and added them in one by one.  I don't see this behaviour until MV is installed.

Also affects Multiverse-Core-4.1.1-SNAPSHOT from 07/02/2020

I get this same issue, but not using the default version.
Of course this should be expected as it is not compatible with later mc versions.

Possibly related: https://hub.spigotmc.org/jira/browse/SPIGOT-5989 and https://github.com/PaperMC/Paper/pull/3920.

I did a fix for it here: https://github.com/Brokkonaut/Multiverse-Core/commit/126e005057c33e39da784ea2bcec863a71d620ac
But that is incompatible to Minecraft < 1.16, so maybe different solution would be better.

Thanks @Brokkonaut. I think there's no other way to fix this. Could you open a PR?

I've posted a build on the MV Discord server that should fix this.

I tested it with Paper 110, Latest Devbuilds but Multiverse Inv 3.0 as https://github.com/Multiverse/Multiverse-Inventories/issues/375

Yes

Thanks for fix @Brokkonaut

We're also affected by this one. Is any solution forthcoming?

It was on hold since it would remove support for versions prior to 1.15 (which we are currently supporting). However, it looks like ben came up with a way to keep support for older versions, so it may come soon (no guarantees).

Yea, I got it to work with some reflection. Will send a test build soon.

@berlincount here is the test build for it https://github.com/Multiverse/Multiverse-Core/pull/2565#issuecomment-784006923

Finally had a chance to test: works perfectly fine! :) thanks!

Alright glad to hear that!