[3pt] PR: ras to s3 tool - WIP

[Short description explaining the high-level reason for the pull request]
Additions
Changes
Removals
Testing
Checklist
You may update this checklist before and/or after creating the PR. If you're unsure about any of them, please ask, we're here to help! These items are what we are going to look for before merging your code.

[ ] Informative and human-readable title, using the format: [_pt] PR: <description>
[ ] Links are provided if this PR resolves an issue, or depends on another other PR
[ ] If submitting a PR to the dev branch (the default branch), you have a descriptive Feature Branch name using the format: dev-<description-of-change> (e.g.: dev-revise-levee-masking)
[ ] Changes are limited to a single goal (no scope creep)
[ ] The feature branch you're submitting as a PR is up to date (merged) with the latest dev branch
[ ] Changes adhere to PEP-8 Style Guidelines
[ ] Any change in functionality is tested
[ ] New functions are documented (with a description, list of inputs, and expected output)
[ ] Placeholder code is flagged / future todos are captured in comments
[ ] Project documentation has been updated (CHANGELOG and/or README)
[ ] Reviewers requested

Replaced by newer pull request and branch with included linting.


Suggestion: Add double\triple bottom

Hello!
Thanks for your work! Suggest to develop project little bit further:
To hide 3 or more secrets under one QR-code, where each password response\decrypt for different secred and it's impossible to proof there something more than just 1 secret in it... LIke in library here ->
https://github.com/sunknudsen/blockcrypt + https://github.com/sunknudsen/blockcrypt/blob/master/src/index.ts
I'm bad in coding but i could help with translation to few languages and making logo
Cheers!

Hi, thanks for your suggestion.
However, that feature is out of scope for the problems that PaperAge attempts to solve.
The problem domain that PaperAge targets is making backups using encryption that's been validated by folks who know far more about cryptography than I do. Obfuscation or plausible deniability is not something that can be trivially added.
If you're facing an adversary who can compel decryption by prosecution (or a $5 wrench for that matter), this project is not for you. For more information, see the Threat models and use cases section in the README.


✨ Drag to Reorder Tabs

We should be able to reorder tabs like the default tabs in macOS. They should animate as you are dragging just as they do here...
https://user-images.githubusercontent.com/806104/160204100-9a00ee29-dfbc-4a0c-b05c-af58f532d1db.mov

Consider this solution.

Can assign this to me.

@lilingxi01 you might take the same approach @jav-solo did in #477 to do this.
The order needs to be remembered Eve. After closing and reopening the app. It will of corse not be in Preferences as it is project dependent.

It's probably best to save it to the projects .codeedit folder. You can extend the AppPreferences or even better make a ProjectPreferences module to fetch/save settings that are project related.

I don’t think that it should be in the project .codeedit directory. We should take VS code’s lead on this one and not create a project .codeedit directory unless absolutely necessary (aka project preferences are modified). Some people don’t know to add that file to their gitignore.

The order needs to be remembered even after closing and reopening the app. It will of corse not be in Preferences as it is project dependent.

I wonder which file has done the "remembering" behavior?

@austincondiff ok but how do we store it then? We need some way to uniquely identify a project. The path will not work since it is subject to change. Some git hash also won't work since some projects might not be a git repository. I think it is the only option to make some kind of project specific .codeedit folder that lives in the root of the project. We could automatically add it to .gitignore once created.

I just confirmed how it works in VS Code. I opened a project directory, opened a few tabs. Then in Finder I renamed the parent directory's name. I went back to VS Code and my files disappeared from my sidebar. I tried expanding the empty root directory and it said directory not found. I closed VS Code, reopened and I opened the project in the new location. When it opened no tabs were opened.
tldr; It does in fact use the path as the identifier.

But I can't stress enough, do not clutter up the users directory unless absolutely necessary.

I think it is the only option to make some kind of project specific .codeedit folder that lives in the root of the project. We could automatically add it to .gitignore once created.

Can you confirm how VSCode did it? I remember VSCode does not automatically add .vscode into .gitignore, but I also do not see any "opened-tab" or "tab-order" related modifications from other's commits.

@lilingxi01 after discussing this with @lukepistrol, we have come to this conclusion: #513
Go ahead and start implement the ability to drag to reorder and by the time you are done with that @lukepistrol will be have his piece in place so that we can persist the order.

Blocking

#338

Closing as split editors are out of scope of this issue.


Create Competition should navigate to comp page

After user creates a competition.
User should be redirected to the created competition page or profile page.
Competition state should be updated to include the new competition.

This issue has been addressed with PR #77


generic proxy: change the status code type to int

Commit Message: generic proxy: change the status code type to int
Additional Description:
To support minus response code and output.
Risk Level: low.
Testing: n/a.
Docs Changes: n/a.
Release Notes: n/a.
Platform Specific Features: n/a.

need some test for the these formatter
/wait


Deauthorize facebook oauth

Hi,
I'm facing an issue when i already deauthorized facebook login and then i try to do authorization again, i will be logged in automatically as last previous authorized account. Is there any solution how to force user to input email & password again?
Thank you

Any solutions?

Dont have any solution for now. Currently using react-native-fbsdk

The same problem with facebook and google login, Cannot login other accounts

Any solution? Still having the same issue

I'm having a problem please, can someone help me, whenever I log into my social media account, for some unknown reason, I can't login with a different account, every time i click on authorise, skips the consent screen and just logs the person in, is there a way to make such that the user can actually choose to login with a different social media or google account?


Add "Gamma Correction" Image Adjustment

This appears to be different from but similar to the existing brightness adjustment.
See: http://scikit-image.org/docs/dev/api/skimage.exposure.html#skimage.exposure.adjust_gamma

@cancan101 @aselle
Could you check the adjust_gamma()? I'm not familiar to image type, so it may cause some type problem. :(
def adjust_gamma(imgaes, gamma=1, gain=1):
  """Performs Gamma Correction on the input image.
    Also known as Power Law Transform. This function transforms the
    input image pixelwise according to the equation O = I**gamma
    after scaling each pixel to the range 0 to 1.

  Args:
    image : A tensor.
    gamma : A scalar. Non negative real number.
    gain  : A scalar. The constant multiplier.

  Returns:
    A tensor. Gamma corrected output image

  Notes:
    For gamma greater than 1, the histogram will shift towards left and
    the output image will be darker than the input image.
    For gamma less than 1, the histogram will shift towards right and
    the output image will be brighter than the input image.

  References:
    [1] http://en.wikipedia.org/wiki/Gamma_correction
  """

  with ops.name_scope(None, 'adjust_gamma', [image, gamma, gain]) as name:
    image = ops.convert_to_tensor(image, name='image')

    # Remember original dtype to so we can convert back if needed
    orig_dtype = image.dtype

    if gamma < 0:
      raise ValueError("Gamma should be a non-negative real number")

    scale = tf.constant(image.dtype.max() - image.dtype.min(), dtype=image.dtype)

    adjusted = math_ops.square(math_ops.div(image, scale), gamma) * scale * gain

    return adjusted


Missing API docs for APCA formula

Description

Themes accept a formula argument, which also has support in setter to change from 'wcag2' to 'wcag3'. The 'wcag3' option uses the APCA formula for calculating contrast.
The feature already exists but does not appear to be documented in the README for the contrast-colors package.
Steps to reproduce

Expected behavior

Screenshots

Leonardo package and version

Environment

Browser(s) and OS(s):

Additional context

i would like to work on this issue , can you please assign it to me?


Alert user if extract fails due to path length, and LongPathsEnabled != 1

Per https://github.com/lukesampson/scoop-extras/issues/889#issuecomment-381621827 , let’s add a check to https://github.com/lukesampson/scoop/blob/master/libexec/scoop-checkup.ps1 that we are under Windows 10 Version 1607, or later, and if LongPathsEnabled in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem is not set to 1, alert the user.

Duplicate of  #1523?

@se35710 They are certainly related.

While the LongPathsEnabled check was implemented it still lacks the checkup for Windows 10 v1607, since I came across this problem on Windows 8.1 Pro.
The release ID needed should be available with:
Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows NT\CurrentVersion" -ErrorAction SilentlyContinue -Name 'ReleaseId'
This path is not available on Windows 8.1.


[Aws][S3Crt] : Unable to retrieve public object using Aws::S3Crt::S3CrtClient::GetObject api when credentials are not setup i.e anonymmous

Describe the bug
Unable to retrieve public s3 object using Aws::S3Crt::S3CrtClient::GetObject api when credentials are not setup i.e anonymous credentials
I'm able to retrieve the public s3 object when  aws credentials are provided/setup
Expected Behavior
I should able to download s3 public object w/o providing/setup the aws credentials using crt api
Same scenario is worked when we use Aws::S3::S3Client::GetObject api for public object w/ and w/o aws credentials
Current Behavior
Getting below exception for s3 public get object using s3 crt api
[root@94f75002c0cd aws-sdk-cpp]# ./aws_s3_crt_get_public_object
Reading object s3://csi-io-test/test/my_object
GetObject error:No response body.

Reproduction Steps
It is easily re producible using below code snippet
#include <iostream>
#include <string>
#include <aws/core/Aws.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include <aws/core/utils/logging/CRTLogSystem.h>
#include <aws/s3-crt/S3CrtClient.h>
#include <aws/s3-crt/model/GetObjectRequest.h>

static const char ALLOCATION_TAG[] = "s3-crt-getobject-public";

int main(int argc, char* argv[])
{
  Aws::SDKOptions options;
  options.loggingOptions.logLevel = Aws::Utils::Logging::LogLevel::Trace;
  options.loggingOptions.crt_logger_create_fn = []() {
    return Aws::MakeShared<Aws::Utils::Logging::DefaultCRTLogSystem>(
      ALLOCATION_TAG, Aws::Utils::Logging::LogLevel::Trace);
  };

  Aws::InitAPI(options);
  {
    Aws::S3Crt::ClientConfiguration config;
    config.region = Aws::Region::US_EAST_1;
    config.throughputTargetGbps = 5;
    config.partSize = 5 * 1024 * 1024;
    Aws::S3Crt::S3CrtClient s3CrtClient(config, Aws::Client::AWSAuthV4Signer::PayloadSigningPolicy::Never);
    Aws::String bucket = "my-bucket";
    Aws::String objectKey = "test/my_object";
    std::cout << "Reading object s3://" << bucket << "/" << objectKey << std::endl;
    Aws::S3Crt::Model::GetObjectRequest request;
    request.SetBucket(bucket);
    request.SetKey(objectKey);
    Aws::S3Crt::Model::GetObjectOutcome outcome = s3CrtClient.GetObject(request);
    if(outcome.IsSuccess())
      std::cout << outcome.GetResult().GetBody().rdbuf() << std::endl;
    else
      std::cerr << "GetObject error:" << outcome.GetError().GetMessage() << std::endl;
  }
  Aws::ShutdownAPI(options);
  return 0;
}

build command g++ -o aws_s3_crt_get_public_object  aws_s3_crt_get_public_object.cpp -I<Path>/include/ -L<Path>/lib64/ -laws-cpp-sdk-s3-crt -laws-cpp-sdk-core -lssl -lcrypto -lpthread
Possible Solution
No response
Additional Information/Context
No response
AWS CPP SDK version used
AWS SDK for C++ 1.9.230
Compiler and Version used
g++ (GCC) 11.2.0
Operating System and version
Linux 434f62a64297 5.13.0-39-generic #44~20.04.1-Ubuntu SMP Thu Mar 24 16:43:35 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Just making sure you've given the correct policy to allow this. You will need to give READ access to anonymous users. I ask this because if you don't have permission to read the object you will get the response you see back.

Hi,
I checked and confirming that object has READ access and it has public read access (see below image)

If not having correct permission to read the s3 object, then error message from Aws::S3Crt::Model::GetObjectRequest  api should be specific to access, but getting GetObject error:No response body.

FYI I'm able to download the same object using Aws::S3::Model::GetObjectRequest api

Should be resolved now, re-open if you have a case where it does not.

Yes, Verified and it is fixed from version 1.9.339


Pushing to 1.0.0 release.

Pushing to future release.


Update engine API version

Note that compose/up.bats and api/network.bats are now failing; the former
because docker-compose doesn't support creating Attachable networks yet, and
the latter because the Attachable key doesn't show up in docker network
responses.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "update_engine_api" git@github.com:wsong/swarm.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

Please sign your commits following these rules:
https://github.com/docker/docker/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:
$ git clone -b "update_engine_api" git@github.com:wsong/swarm.git somewhere
$ cd somewhere
$ git commit --amend -s --no-edit
$ git push -f

Ammending updates the existing PR. You DO NOT need to open a new one.

@wsong I'm afraid engine-api has now been deprecated, so we can't merge this PR anymore 😞
To update to latest, we'll have to not only update the vendoring of docker/docker, but also change paths all across swarm.
If you want to take up this task, please let us know!
Related to #2488.


DataIter documentation.

@nswamy @madjam @mli @zackchase

I think there is another PR on this class

@piiswrong I couldn't find anything in the existing PRs except for this https://github.com/dmlc/mxnet/pull/6221 which is a tutorial

@madjam  Updated as per the feedback.


Ignore first keyboard press

Ebitengine Version
2.4.13
Operating System

[ ] Windows
[X] macOS
[ ] Linux
[ ] FreeBSD
[ ] OpenBSD
[ ] Android
[ ] iOS
[ ] Nintendo Switch
[ ] Xbox
[ ] Web Browsers

Go Version (go version)
1.18.4
What steps will reproduce the problem?
package game

import (
	"fmt"

	"github.com/hajimehoshi/ebiten/v2"
	"github.com/hajimehoshi/ebiten/v2/inpututil"
)

type Game2 struct {
	Keys []ebiten.Key
}

func (g *Game2) Update() error {
	g.Keys = inpututil.AppendPressedKeys(g.Keys[:0])

	return nil
}

func (g *Game2) Draw(screen *ebiten.Image) {
	for _, v := range g.Keys {
		fmt.Printf("duration: %v isPressed: %v, isReleased: %v, button: %v\n", inpututil.KeyPressDuration(v), inpututil.IsKeyJustPressed(v), inpututil.IsKeyJustReleased(v), v.String())
	}
}

func (g *Game2) Layout(outsideWidth, outsideHeight int) (int, int) {
	return outsideWidth, outsideHeight
}

What is the expected result?
Console output after first press (ArrowRight button):
duration: 1 isPressed: true, isReleased: false, button: ArrowRight
duration: 2 isPressed: false, isReleased: false, button: ArrowRight
duration: 3 isPressed: false, isReleased: false, button: ArrowRight

Console output after second click (ArrowLeft button):
duration: 1 isPressed: true, isReleased: false, button: ArrowRight
duration: 2 isPressed: false, isReleased: false, button: ArrowRight
duration: 3 isPressed: false, isReleased: false, button: ArrowRight
duration: 1 isPressed: true, isReleased: false, button: ArrowLeft
duration: 2 isPressed: false, isReleased: false, button: ArrowLeft
duration: 3 isPressed: false, isReleased: false, button: ArrowLeft

What happens instead?
Console output after first click (ArrowRight button):
duration: 3 isPressed: false, isReleased: false, button: ArrowRight //Why isPressed == false and duration == 3?
duration: 4 isPressed: false, isReleased: false, button: ArrowRight
duration: 5 isPressed: false, isReleased: false, button: ArrowRight

Console output after second click (ArrowLeft button):
duration: 3 isPressed: false, isReleased: false, button: ArrowRight //Why isPressed == false and duration == 3?
duration: 4 isPressed: false, isReleased: false, button: ArrowRight
duration: 5 isPressed: false, isReleased: false, button: ArrowRight
duration: 1 isPressed: true, isReleased: false, button: ArrowLeft //OK
duration: 2 isPressed: false, isReleased: false, button: ArrowLeft
duration: 3 isPressed: false, isReleased: false, button: ArrowLeft

Anything else you feel useful to add?
No response

Thank you for the reporting.
I could confirm this. This is very interesting. I guess this is an issue in macOS's event handling, but I am not sure.

I realized that there was no guarantee about the input state in Draw. I have confirmed this worked in Update.
package game

import (
	"fmt"

	"github.com/hajimehoshi/ebiten/v2"
	"github.com/hajimehoshi/ebiten/v2/inpututil"
)

type Game2 struct {
	Keys []ebiten.Key
}

func (g *Game2) Update() error {
	g.Keys = inpututil.AppendPressedKeys(g.Keys[:0])

	for _, v := range g.Keys {
		fmt.Printf("duration: %v isPressed: %v, isReleased: %v, button: %v\n", inpututil.KeyPressDuration(v), inpututil.IsKeyJustPressed(v), inpututil.IsKeyJustReleased(v), v.String())
	}

	return nil
}

func (g *Game2) Draw(screen *ebiten.Image) {
}

func (g *Game2) Layout(outsideWidth, outsideHeight int) (int, int) {
	return outsideWidth, outsideHeight
}

So I think this is really a bad designed API. We have to improve this.

Related #1704, #1778, #1852

At least I can add comments.

Thank you for such a prompt response!


regression: No loader is configured for ".md" files after v5 on development with @mdx-js/rollup

Describe the bug
  ✘ [ERROR] No loader is configured for ".md" files: packages/pkg/README.md

    docs/App.tsx:20:15:
      20 │       ? import(`../packages/${params.name}/README.md`)
         ╵                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] No loader is configured for ".md" files: packages/pkg/CHANGELOG.md

    docs/App.tsx:37:15:
      37 │       ? import(`../packages/${params.name}/CHANGELOG.md`)

Reproduction
https://github.com/un-ts/mono-lib-boilerplat
Steps to reproduce
yarn
yarn dev

System Info
System:
    OS: macOS 14.1.2
    CPU: (10) arm64 Apple M1 Max
    Memory: 27.23 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.18.2 - ~/Library/Caches/fnm_multishells/76002_1701950982110/bin/node
    Yarn: 4.0.2 - ~/Library/Caches/fnm_multishells/76002_1701950982110/bin/yarn
    npm: 9.8.1 - ~/Library/Caches/fnm_multishells/76002_1701950982110/bin/npm
    bun: 1.0.15 - /opt/homebrew/bin/bun
  Browsers:
    Brave Browser: <IP_ADDRESS>
    Chrome: 120.0.6099.62
    Safari: 17.1.2
  npmPackages:
    @vitejs/plugin-react-swc: ^3.5.0 => 3.5.0
    vite: ^5.0.6 => 5.0.6

Used Package Manager
yarn
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

You can create a PR about .md, refer to the PR: https://github.com/vitejs/vite/pull/15189


Winners' Circle/Leaderboard displays order players joined game, not top scorers

Creating games where the top scorers are the last players to join the game, the winners' circle doesn't display them at all, and they're listed last on the leaderboard.

This sounds like a game breaking bug in terms of gameplay. Basically does mean that players who have the highest score aren't being projected as having the highest score?

Correct
On May 18, 2016 11:18 AM, "Jordan Pailthorpe"<EMAIL_ADDRESS>wrote:

This sounds like a game breaking bug in terms of gameplay. Basically does
mean that players who have the highest score aren't being projected as
having the highest score?
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/engagementgamelab/emerging-citizens/issues/39#issuecomment-220060297

I believe I fixed this a while ago since I cannot repro.


Add async variant of ByteBuffer.withUnsafeReadableBytes.

Add async variant of ByteBuffer.withUnsafeReadableBytes<>.
Motivation:
Would be nice to have a possibility to use byte buffers with swift concurrency.
Modifications:
Add async variant of ByteBuffer.withUnsafeReadableBytes<>.
Result:
Having an async variant of ByteBuffer.withUnsafeReadableBytes<> will give a possibility to call async functions from the argument closure.

Hi @ser-0xff, what's the intended use-case of this function? It generally gives me the heeby-jeebies because it can easily lead to sendability or law of exclusivity violations.

Hi, @Lukasa
Thank you for quick review.
We develop a framework trying to use most available possibilities to make it scalable, including swift concurrency.
While swift-nio is mostly synchronous now all data we get from sockets we propagate to AsyncStreams as ByteBuffer. Data from AsyncStreams is processed with swift Task, so from that point we are in swift async world. The code supposed to process data from the ByteBuffer is asynchronous as well, so we can't use a synchronous variant of withUnsafeReadableBytes. So the idea is to write a code like:
let stream = AsyncStream<ByteBuffer>() {...}
Task {
    for await byteBuffer in stream {
        try await byteBuffer.withUnsafeReadableBytes { bytes in
             try await processData(bytes)
        }
    }
}

That makes total sense: I think my core question is just why you need an unsafe pointer through an async boundary. Is it possible to use something safer at that layer?

We could propagate ByteBuffer further to the data processing layer, but it is different package where we would not like to have a dependency on swift-nio.
And even if we would have a dependency and propagate ByteBuffer then sooner or later we will need to process data from that ByteBuffer and we will be limited with a synchronous closure still. We even can't call any actor inside that closure.
Anyway, if you think it is dangerous let's close PR then.

Maybe the longer term would be the adoption of BufferView (https://gist.github.com/atrick/4fab6886518f756295f77445e4bf0788) when it happens to avoid depending on NIO for ByteBuffer?
Have there been any thoughts on how that would dovetail with current ByteBuffer usage in SwiftNIO?

So using something like BufferView would be the ideal long-term solution. We have appropriate APIs on ByteBuffer to create one of these for yourself. Specifically you can use withUnsafeReadableBytesWithStorageManagement. This is designed to explicitly allow you to escape the pointer. You can therefore write a wrapper type around this that re-adds memory safety on top of it.
In the longer term, we'll adopt BufferView variants of most of ByteBuffer's with APIs.


<EMAIL_ADDRESS>is breaking old orbit-db releases

We've noticed that<EMAIL_ADDRESS>is being pulled in from orbit-db-io into this package. This is a breaking change and the v1.0 of cids is not compatible with older versions. Since only the patch version of this package was updated it's causing issues upstream.
I would recommend that:

<EMAIL_ADDRESS>is released which rolls back the update to cids
<EMAIL_ADDRESS>is released which would contain the new cids version

Good call @oed, will do ASAP

Thank you @aphelionz 🙏 Some of our users have been seeing issues because of this :)

[x] hotfix/v4.6.5 branch pushed and v4.6.5 published to npm
[ ] v5.0.0 will be pushed to master and published to the @next tag. Tests that were passing two days ago are now failing :P

idk, looks like the go-ipfs tests are messed up now. @oed at least let me know if 4.6.5 fixes the issue for you

Looks good based on the dependency tree.


Line Start hotkey does not work

Description
I want to set the Dbeaver hotkeys/shortcuts up on my Mac so that they are similar to windows.
However, it is impossible to make the "home" and "end" keys map to "Line Start" and "Line End".
It simply doesn't work, and Dbeaver always maps those keys to "Text Start" and "Text End", even though I mapped them differently.
Here is a screenshot of my current keys:

Interestingly, it works fine if I'm holding shift - so selecting to start/end of line, or selecting to start/end of text work great.
Happy to provide video evidence, if people are unable to reproduce.
DBeaver Version
Version <IP_ADDRESS>411031831
Operating System
MacOS Sonoma 14.5 M3 Pro

Hi, @AddisonG
Could you check the following answer https://apple.stackexchange.com/a/16137
Does it help?

This is a very old issue. I have been facing it for a couple of years already.
After rebinding in DBeaver - it will work as intended for some time. But after intense editing it will default back to "Text Start" and "Text End" - I didn't find a pattern on when exactly it defaults back.
After restarting DBeaver - it goes back to what I set it to be "Line Start/End" - but will go away again after some time.
The answer referred in https://apple.stackexchange.com/a/16137 - yes I made those settings long ago.
DBeaver Version <IP_ADDRESS>412011650
MacOS Sonoma 14.6.1 (23G93)

Duplicate of https://github.com/dbeaver/dbeaver/issues/9414

Closed as a duplicate of #9414


An Error after clicking "Profiler" the decrypted iOS app injected with Profiler Framework

Use IPAPatch to inject External Frameworks to decrypted iOS App.
1.When I inject the LookinServer.framework, everything works without any error.
2.When I inject the Profiler Framework, the injected app can launch

but when I click the "Profiler" button, it was terminated with the following error:
2019-09-27 21:33:26.329862+0800 YouTube[2489:164959] [Profiler] Starting profiling
2019-09-27 21:33:26.338382+0800 YouTube[2489:164959] [error] error: No NSEntityDescriptions in any model claim the NSManagedObject subclass 'DTXRecording' so +entity is confused.  Have you loaded your NSManagedObjectModel yet ?
CoreData: error: No NSEntityDescriptions in any model claim the NSManagedObject subclass 'DTXRecording' so +entity is confused.  Have you loaded your NSManagedObjectModel yet ?
2019-09-27 21:33:26.338643+0800 YouTube[2489:164959] [error] error: +[DTXRecording entity] Failed to find a unique match for an NSEntityDescription to a managed object subclass
CoreData: error: +[DTXRecording entity] Failed to find a unique match for an NSEntityDescription to a managed object subclass

Hello,
Again, this looks like a bug on your end. IPAPatch is most likely not injecting the framework bundle properly. The Core Data model is included inside the .framework.

https://github.com/wix/DetoxInstruments/blob/1c0254920cbb342d1fa35ee9d346e7d509b17a77/Profiler/DTXProfiler/DTXProfiler.m#L87
Put a breakpoint here and verify what is returned. Should not be nil or an empty array.

I think I see the problem:

Resources/Bundles:

Other resources or bundles can be placed at IPAPatch/Assets/Resources
Resources will be copied directly to the main bundle of original app

I think this is the problem. It puts resources in the incorrect place.

The framework expects that its resources are found in the same bundle as the one containing the code.

The framework expects that its resources are found in the same bundle as the one containing the code.

Thanks for your detailed reply. I will figure it out.


Planner support for window functions.

Summary of the changes / Why this improves CrateDB
Checklist

[ ] User relevant changes are recorded in CHANGES.txt
[ ] Touched code is covered by tests
[ ] Documentation has been updated if necessary
[ ] CLA is signed

window function is very useful, hoping to speed up development priorities.
thanks.
regard.

@mfussenegger pushed a couple of fixups, thanks


possible feature request - background subtraction of a 2D background image

Also mentioned by Knight, but it's TBD if this is sufficiently a concern to implement.
Right now the background subtraction just works to subtract a constant background level, and that is expected to be sufficient for WFS analyses purposes. As a contingency capability, if there is more spatially variable background than we expect, it might be desired to have some capability to subtract a 2D background image. I.e. load an image A, then select some other image B (via a file selection dialog?) and subtract image B from image A.

Okay, I'll just leave this be until I hear more. If we go forward, it would be a new plugin just because the GUI would be very different from existing BackgroundSub (maybe name it BgSub2D or something). Extra details would be nice:

What if selected image is too big/small?
Do we need to check if it is the right kind of image (e.g., using specific header keywords)?
Do you also want to propagate ERR and DQ?
Do you want to set any special keywords in the subtracted image indicating that background has been subtracted (like what happens in a pipeline)? This is in addition to existing logging mechanism.

If you decide it's a no-go, then feel free to close.

yes agreed that was not a fully detailed feature request! Just capturing this as a note in real time during the WFSCOWG meeting ongoing right now here in the board room!


EV3-G API Display

For issue #356

I just noticed the EV3-G display block for text allows you to specify font size in terms of
0 – small font
1 – small, bold font
2 – large font

@ddemidov any recommendations on what fonts we should use for those three choices?


Add Ads on the countdown timer when you click "play"

When "play" is clicked, the countdown timer can have an Ad or Ad Video
Jason's skip feature can be used if you have a membership


If user can see table but NOT database/instance nav links should not display

Spotted this bug while building this plugin:

https://github.com/simonw/datasette-public

This is a public table, but the two links in the nav go to forbidden pages:

Those nav links shouldn't be shown at all.

Here are all the places that display that navigation bar at the moment:
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/row.html#L18-L25
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/table.html#L19-L25
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/query.html#L21-L27
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/error.html#L5-L10
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/database.html#L12-L17
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/show_json.html#L7-L12
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/permissions_debug.html#L25-L30
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/permissions_debug.html#L25-L30t
Interesting to note that failing to include that super() call means the nav menu itself will not be rendered:
https://github.com/simonw/datasette/blob/b7fec7f9020b79c1fe60cc5a2def86b50eeb5af9/datasette/templates/base.html#L20-L49

The fact that this code is inconsistent already (urls.instance() v.s. base_url for example) suggests that properly refactoring this is well overdue already.

Related issue:

#1829

I'd like a code design for this that helps solve both these issues at once.

Maybe new template functions: table_crumbs(table, database) and database_crumbs(database) and instance_crumbs() - which know how to both check the permissions and display the
 full of links.

Made some notes on the Jinja documentation while thinking about the best way to do this:

https://github.com/simonw/public-notes/issues/4

As part of this I think I want request to always be available in the template context, which will remove the need for https://datasette.io/plugins/datasette-template-request

It's important that, however this works, it supports custom templates changing how the breadcrumbs are displayed. Probably needs a _crumbs.html templqte.

This has turned into a full refactor of how breadcrumbs work.
I'm using my first ever Jinja macro for this - I import that at the top of base.html so that it will be available everywhere else:
{% import "_crumbs.html" as crumbs with context %}<!DOCTYPE html>

The with context bit is needed so the macro can see the new crumb_items() function that I'm adding to the global template rendering scope.
Here's the full content of _crumbs.html:
{% macro nav(request, database=None, table=None) -%}
{% set items=crumb_items(request=request, database=database, table=table) %}
{% if items %}

    {% for item in items %}
      {{ item.label }}
      {% if not loop.last %}
        /
      {% endif %}
    {% endfor %}

{% endif %}
{%- endmacro %}

This means custom template authors can use their own _crumbs.html template to do something different with the breadcrumbs.
In the actual templates I display breadcrumbs like this:
{% block crumbs %}
{{ crumbs.nav(request=request, database=database) }}
{% endblock %}

Pass database= to get home / database_name - pass table= as well to get home / database_name / table_name - if you just send request= you just get home.
I've also made the default base template show the home breadcrumbs - other pages such as table.html and row.html can then over-ride {% block crumbs %} to get different breadcrumbs.

I'm going to commit the code now, but then I need to add some extra tests to ensure the breadcrumb permission display logic works correctly.


build: ensure all scripts are removed when testing SSR

Issue or need
When trying to see if library supports, Angular v19, E2E tests started failing.
However the issue relies on E2E test setup, rather than the test failing for a valid reason.
The issue is that a new <script> that has been added by default in Angular v19 related to event replay (JSAction) isn't removed. However, when visiting a page in SSR mode, all <script>s but JSON-LD ones are expected to be removed so that an actual SSR test can be performed.

Proposed changes
Improves logic to remove <script>s so this new script is removed too.
Instead of a yet more awkwardly complex RegExp, does the script removal in two steps. First, identifying all scripts. Then, just removing all of them except the ones expected for metadata (JSON-LD right now).

Quick reminders

🤝 I will follow Code of Conduct
✅ No existing pull request already does almost same changes
👁 Contributing docs are something I've taken a look at
📝 Commit messages convention has been followed
💬 TSDoc comments have been added or updated indicating API visibility if API surface has changed.
🧪 Tests have been added if needed. For instance, if adding new features or fixing a bug. Or removed if removing features.
⚙ API Report has been updated if API surface is altered.

#1051  👈 (View in Graphite)
main

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


Overwatch - some objects are rendered incorrectly

After some Overwatch update some objects are rendered incorrectly - when moving camera it looks like part of current/previous frame are in their place.

Software information
Overwatch
Easily seen with palms in the "Loot Box" menu.
System information

GPU: R9 380X
Driver: Mesa 19.0.0 - 19.1.0-devel (git-f9c594cdf5), LLVM 9.0.0
Wine version: 4.6
DXVK version: 0.80 - 1.0.3

Didn't test llvm 8, didn't test mesa below 19.0.0
Apitrace file(s)
Renderdoc: https://mega.nz/#!VQdzwATa!1fvb5PtQHcPzZpMFz3UzYzq_Le_60uthJ8E8Mq_b9Ls
Log files

d3d11.log: -
dxgi.log: -

I thought this was confirmed to be a Mesa bug when you reported it in the Discord and 2 people checked for you last night?
🤔

Filed here and there: https://bugs.freedesktop.org/show_bug.cgi?id=110476

Quoting Samuel Pitoiset from bugzilla:

LLVM r356956 introduced the regression. I reported the problem to the compiler team. I will let you know when it's fixed.

Sorry that I opened this issue here - did it on autopilot.

Fixed in LLVM r358890


fix link in documentation

Not sure whether this is the correct way (but looks like it, just copied the way it's handled for conditional visibility just above it). The issue was that the link was not working.

Thanks for this correction @ThijsSeppen !


Add support for multiple advisory databases

Currently cargo-deny is restricted to using one advisory database at a time via the db-url configuration setting. It would be useful to support multiple databases in parallel, particularly for unmaintained advisories, so that we can point our configuration at our own database while either a PR to the official advisory-db is pending, or just that we might want to be a more aggressive with particular crates compared to the rest of the ecosystem.

How would you handle backwards-compatibility if you add this feature?
Just removing the db-url entry and replace it with db-urls (or something similar) doesn't sound like a good idea.
Probably add another db-urls config entry and keep the db-url parameter and the concatenate them both and probably give a warning that db-url is deprecated.

That would be an option, as well as allowing either a single string or an array for the db-url field by doing something like https://serde.rs/string-or-struct.html, but I think your option is probably better, I don't think many people override the url to point to something other than the default, so deprecating it it would be fine.


Question - Deploy nuget package

On the Deploy nuget package task. Is it possible to change the task to upload ALL nupkg files that are in the drop folder? My Build pipeline generates Cms and Commerce nupkg.

Right now Im writing some documentation and blog posts. I will look into this asap.

Solved in v1.1.4


Workspace runs PHPUnit twice with single command

Info:

Docker version ($ docker --version): Docker version 17.12.0-ce, build c97c6d6
Laradock commit ($ git rev-parse HEAD): v5.9.0 SHA - 0077de2
System info (Mac, PC, Linux): Mac
System info disto/version: Mac OS 10.13.2 (17C88)

Issue:
Workspace runs PHPUnit twice with single command

Expected behavior:
PHPUnit should be executed once

Reproduce:
"exec" to workspace and run phpunit tests
$ docker-compose exec workspace bash
$ vendor/bin/phpunit

@rodion-arr please check php config both enviroment:
php -i | grep errors
maybe display_errors = On


[Bug]: +2 Mace cannot be searched

Searching for +2 mace causes an error.

Started work on this. The parser can now parse +, and '. These special chars (-_+') needs to be stripped from the input before it runs the query i.e: lim-dul'sshould be parsed as limduls, and +2 as 2.

Fixed in ee2605dc164c7f332520ef5dcb0ba4e0a006928c


Google Pay Web integration fails with an error "Cannot read property '0' of undefined"

General information

SDK version: 3.38.1
Environment: Sandbox
Browser and OS: 70.0.3538.77 (Official Build) (64-bit) Windows 10 Home v1803

Issue description
Given a previously working Google Pay integration, when I try to complete a payment in the sandbox, the payment fails with an exception
BraintreeError
  code: "GOOGLE_PAYMENT_GATEWAY_ERROR"
  details: {originalError: TypeError: Cannot read property '0' of undefined
    at eval (webpack:///./node_modules/braintree-web/dist/browser/google-payment.js?:514:45)"}
  message: "There was an error when tokenizing the Google Pay payment method."
  name: "BraintreeError"
  type: "UNKNOWN"

The error originates at https://github.com/braintree/braintree-web/blob/master/src/google-payment/google-payment.js#L130: apparently, token format generated by the server APIs has changed to return googleWalletCards rather than androidPayCards and braintree-web hasn't been updated accordingly.

Thanks for the report. That should not be the case as that is a breaking change.

We'll look into it.

I can no longer reproduce the problem, so it should be back to normal now. Our best guess is that Google changed something with how they communicate with us on the backend.
Can you check with your integration? If everything is normal again, we can close this issue.

@crookedneighbor confirmed, our integration is back to normal.


[Bug Report] [date-range] selecting state should be cleared on button 'clear' clicked

Element UI version
2.5.4
OS/Browsers version
macos chrome 72
Vue version
2.6.7
Reproduction Link
https://jsfiddle.net/0jh5ewbr/
Steps to reproduce

click the input to open the date-range selector
select start date on the panel (but don't select end date)
click 'clear'
open the date-range selector again

What is Expected?
the panel is not in 'selecting' status, rangeState.selecting is false
https://github.com/ElemeFE/element/blob/2604c6192f7ec1d8360b4a5c0fc2f447e2df24c1/packages/date-picker/src/panel/date-range.vue#L448
Should do something like this.rangeState.selecting = false; here?
What is actually happening?
the panel is in 'selecting' status, rangeState.selecting is true

not reproduced.


sap.ui.core.dnd.DropInfo event "dragLeave" not available

OpenUI5 version: up to latest
It is possible to add a "dragLeave" event to the element  "sap.ui.core.dnd.DropInfo"?
The events "dragEnter" and "dragOver" are already available.
Thanks

Hello @edemuck4timbuktu,
while this is send to the drag and drop class owners for evaluation, you can use the addEventDelegate method and attach the ondragleave handler using it:
Example
https://jsbin.com/joyudinega/edit?html,output
const treeTable = this.byId("TreeTableBasic");
treeTable.addEventDelegate({
	ondragleave: (e) => {
		console.error("ondragleave", e.target)
	}
})

In addition, could you please share more about your use case. This will help us better undestand the requirement.
Kind Regards,
Dobrin


Add guardian to misc.

Guardian is a file change wathcer. It depends on a .guardian.yml file.
Example:
files: **/*.cr
run: crystal build ./src/hey.cr
---
files: ./shards.yml
run: crystal deps

When you run guardian it will start to watch files keys and when change occured, it will run run keys in sequence.

Awesome. BTW nice tool :+1:

Awesome. BTW nice tool :+1:


Canvas position is stuck on fixed

Contact Details
<EMAIL_ADDRESS>What do you need?
The position of the canvas is stuck on fixed. I wanted to use the particles canvas on a single div in my website but it's stuck on the entire document. The canvas has a position: fixed! important style that cannot be overwritten. I've tried changing it using position: relative !important in the style prop and in a css file that but nothing worked. I even tried changing it using useRef but still nothing. How can I change the position of the canvas?
tsParticles Version
3.0.0
Code of Conduct

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

https://github.com/tsparticles/tsparticles/issues/5319#issuecomment-1994577498


fieldType constraint in the XML schema

@igarashitm commented on Fri Oct 27 2017
https://github.com/atlasmap/atlasmap-runtime/blob/master/atlas-model/src/main/resources/atlas-model-v2.xsd#L152
Right now JsonField and JsonComplexType doesn't have any constraint for the fieldType in the schema, but JsonComplexType should only be used for 'Complex' and JsonField for others. See if possible to reflect that constraint in the XML schema. XML model as well.

We can't override the XML attribute in child Schema. So we have the following options. @igarashitm please share your thoughts.
Option 1: Make no changes
Option 2: Make a static 'factory' method the create the complex fields and sets the FieldType.COMPLEX
ie.   AtlasJavaModelUtil.createJavaDocument(..)
Option 3: Refactor all the references to use a non-enum solution (864 places to change)
Option 4: Use a Maven build solution, where we copy a modified version on top of the generated class that implements a constant return value of FieldType.COMPLEX


Compilation fails on i386: error: no matching function for call to 'bit_cast'

In file included from /wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/thread_pools/src/scheduled_thread_pool.cpp:8:
In file included from /wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/background_scheduler.hpp:14:
In file included from /wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/local_queue_scheduler.hpp:17:
In file included from /wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/lockfree_queue_backends.hpp:15:
In file included from /wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/concurrency/include/hpx/concurrency/deque.hpp:26:
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/concurrency/include/hpx/concurrency/detail/tagged_ptr_pair.hpp:117:27: error: no matching function for call to 'bit_cast'
            cast_unit ret(hpx::bit_cast<compressed_ptr_t>(lptr),
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/concurrency/include/hpx/concurrency/detail/tagged_ptr_pair.hpp:137:13: note: in instantiation of function template specialization 'hpx::lockfree::tagged_ptr_pair<hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *>, hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *>>::pack_ptr_pair<hpx::lockfree::deque_status_type, int>' requested here
            pack_ptr_pair(pair_, lptr, rptr, ltag, rtag);
            ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/concurrency/include/hpx/concurrency/deque.hpp:120:19: note: in instantiation of function template specialization 'hpx::lockfree::tagged_ptr_pair<hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *>, hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *>>::tagged_ptr_pair<hpx::lockfree::deque_status_type, int>' requested here
          : pair_(pair(nullptr, nullptr, deque_status_type::stable, 0))
                  ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/concurrency/include/hpx/concurrency/deque.hpp:394:13: note: in instantiation of member function 'hpx::lockfree::deque_anchor<hpx::threads::detail::thread_data_reference_counting *>::deque_anchor' requested here
          : anchor_()
            ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/lockfree_queue_backends.hpp:55:13: note: in instantiation of member function 'hpx::lockfree::deque<hpx::threads::detail::thread_data_reference_counting *, hpx::lockfree::caching_freelist_t, hpx::util::aligned_allocator<hpx::threads::detail::thread_data_reference_counting *>>::deque' requested here
          : queue_(std::size_t(initial_size))
            ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/thread_queue.hpp:479:13: note: in instantiation of member function 'hpx::threads::policies::lockfree_fifo_backend<hpx::threads::detail::thread_data_reference_counting *>::lockfree_fifo_backend' requested here
          , work_items_(128)
            ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/schedulers/include/hpx/schedulers/local_queue_scheduler.hpp:124:38: note: in instantiation of member function 'hpx::threads::policies::thread_queue<std::mutex, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_fifo, hpx::threads::policies::lockfree_lifo>::thread_queue' requested here
                    queues_[i] = new thread_queue_type(thread_queue_init_);
                                     ^
/wrkdirs/usr/ports/devel/hpx/work/hpx-1.9.1/libs/core/type_support/include/hpx/type_support/bit_cast.hpp:34:23: note: candidate template ignored: requirement 'sizeof(unsigned long long) == sizeof(hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *> *)' was not satisfied [with To = compressed_ptr_t, From = hpx::lockfree::deque_node<hpx::threads::detail::thread_data_reference_counting *> *]
        To> constexpr bit_cast(From const& src) noexcept
                      ^

log
Version: 1.9.1
clang-16
FreeBSD 14.0

@yurivict I believe that this has been fixed on master. Could you try that, please? We're about to release V1.10, knowing that this was fixed would be good.

The problem still exists in 1.10, see https://github.com/STEllAR-GROUP/hpx/issues/6557


How to push Cloud Messaging with "\n" for break line?

Hi,
Is there any way to push notification with multiline?
I try to add "\n" to notification body but the result has all text with "\n" too.

How did you create the notification? Have you used double (") or single (') quotes when composing the notification body? If you used single quotes, control characters will not be evaluated.
I have tested this with the following command:
$messaging->send(
    CloudMessage::withTarget('token', $firefoxToken)
        ->withNotification([
            'title' => 'Title',
			// 👇 Note the double quotes 👇
            'body' => "Body\nwith\nline breaks"
        ])
);

However, my browser didn't display the added line breaks and I am not sure that  FCM actually supports line breaks.
It is possible to add a subtitle for iOS Notifications (see https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support), but for Android notifications, I didn't see a similar option.
I hope this helps!

How did you create the notification? Have you used double (") or single (') quotes when composing the notification body? If you used single quotes, control characters will not be evaluated.
I have tested this with the following command:
$messaging->send(
    CloudMessage::withTarget('token', $firefoxToken)
        ->withNotification([
            'title' => 'Title',
			// Note the double quotes 👇
            'body' => "Body\nwith\nline breaks"
        ])
);

However, my browser didn't display the added line breaks and I am not sure that FCM actually supports line breaks.
It is possible to add a subtitle for iOS Notifications (see https://firebase.google.com/docs/cloud-messaging/http-server-ref#notification-payload-support), but for Android notifications, I didn't see a similar option.
I hope this helps!

Thank you very much. It worked on IOS, but android still not.


Ignore/pass over the double dash (--) marker

I'm working on a command line application which includes something like ssh wrapper. Basically what I'm doing is I'm resolving hostname myself, but then I want to pass all other parameters to the underlying ssh command. However, I've noticed that Click is consuming the first double dash (--) marker.
I was hoping Click has somewhere a variable containing all unprocessed arguments, but apparently, that's not the case, or at least I couldn't find it. So, in the end, I ended up adding one more click.Context option called ignore_end_of_the_opts_marker that tells Click to pass over the double dash, so if you combine it with ignore_unknown_options, you can pick all unprocessed arguments.
Eg.:
@click.command(context_settings=dict(
    ignore_unknown_options=True,
    ignore_end_of_the_opts_marker=True
    ))
@click.argument('args', nargs=-1, type=click.UNPROCESSED)
@click.pass_context
def cli(ctx, args):
    print('All the arguments:', args)

I've noticed some people are also writing wrapper-like tools, so maybe more people would be interested in this option.
So far, I'm not sure if it's worth a Pull Request, let me know if it is, I've tried to document everything consistently with the rest of the code, but I can imagine there could be a better name for this option. Or maybe you have a better idea of how to solve this issue.
Anyway, if someone is interested, here is my fork: https://github.com/Higgcz/click

Thoughts on making this into a PR? I would love to see this in upstream click.

No need to ask to work on an issue. As long as the issue is not assigned to anyone and doesn't have have a linked open PR (both can be seen in the sidebar), anyone is welcome to work on any issue.

I was looking for this possibility right now as it is becoming a common CLI pattern. Thank you for providing the code.

Apparently, the Fork is kind of outdated. If anybody knows a way to resolve this issue?

I end up with the following snippet (it obviously very limited to my use case but might be helpful):
class HandleDoubleDashArg(click.Group):
    def parse_args(self, ctx, args):
        if "--" in args:
            # concat all options that follow double dash into tuple
            double_dash_idx = args.index("--")
            args = args[:double_dash_idx] + [tuple(args[double_dash_idx + 1 :])]
            # ['--arg', '123', '--', 'qwe', 'rty'] -> ['--arg', '123', ('qwe', 'rty')]
        else:
            # trick: feed an empty string as positional argument
            # so that the latests from args is considered as child command
            args.insert(-1, ())
            # ['--arg', '123', 'my_child_command'] -> ['--arg', '123', (), 'my_child_command']
        super(HandleDoubleDashArg, self).parse_args(ctx, args)

@click.group(cls=HandleDoubleDashArg, invoke_without_command=True)
@click.option("--arg")
@click.argument("double_dash_args")
@click.pass_context
def my_group_command(ctx, double_dash_args):
    # ...
    if ctx.invoked_subcommand is None:
        # ...
        pass

@my_group_command.command()
def my_child_command(ctx):
    # ...
    pass

Pretty much a duplicate of #619. Just like if you need to pass an argument that looks like an option, use -- if you need to pass a -- as an argument.
wrapper -- ssh -c -- bash -v


Document sort order

Thank you for this library. One question I couldn't find answered searching in docs or issues so far: what is the intended/guaranteed sorting order? Empirically it appears to be following each platform's behaviour so on iOS I see it being sorted by last name, and on Android by first name. I think. maybe.

No sort order is imposed. The query is simply composed and the resultset is returned however the system wants. If you would prefer a default sort order please open an issue for discussion.


Add a crates badge to readme

I got this feedback from someone who doesn't trust the version in the dependency example and always goes to crates.io to check the published version.

Haha, fine:

Let's also add a license badge while we're at it!

Am 26.10.2017 um 16:55 schrieb Ed Page<EMAIL_ADDRESS>I got this feedback from someone who doesn't trust the version in the dependency example and always goes to crates.io to check the published version.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Closed by #71


Remove user input images

Description

Following a moderation decision, we have decided to not allow any commands that parrot arbitrary images back via the bot, or anything that members can run against other members with their permission.
Did you:

[x] Join the Python Discord Community?
[x] Read all the comments in this template?
[x] Ensure there is an issue open, or link relevant discord discussions?
[x] Read the contributing guidelines?

Forgot to include comment. This works very well, I have tested it.


Move tranform methods to crs_to_crs

The reason for this refactor is to avoid having to call CRSStore.get for every points when converting a geometry with a lot points, therefore I thought it would be a good idea to move the methods into CRSToCRS while keeping the backward compatibility.
The goal, if this is merged, is to also modify Feature.cast in rgeo to use RGeo::CoordSys::Proj4.transform directly for all the types of geometries and not only for the points.
https://github.com/rgeo/rgeo/blob/master/lib/rgeo/feature/types.rb#L191-L229

@keithdoggett @BuonOmo let me know what you think

Thanks for benchmarking that! Definitely a nice speed up for sure. I'll take a further look at this tomorrow, but I think it's a worthwhile change for sure and maintaining backwards compatibility is great.
As an aside, I just realized that your last change set us up to use this function under the hood for transforms https://proj.org/development/reference/functions.html#c.proj_trans_array. This would presumably help us speed up transformations for geometries other than points and since you got rid of the blocker of recomputing the crs_to_crs each time, it might be possible to implement this now.

@BuonOmo done !

Released in 3.1.1


Legacy Mode Day and Time not sticking and not emailed

When legacy mode is enabled the day and time aren't sticking if you save a post.
Also, Mission Day and Time aren't parsed in the email.

done

confirmed fixed


Defines lifecycle-viewmodel-compose version wrongly

Describe the bug
When one adds androidx.lifecycle:lifecycle-viewmodel-compose:_ dependency, refreshVersion sets the version from lifecycle-* (2.3.0) instead of compose specific one (1.0.0-alpha01). So nothing works after it and one has to set the version explicitly in the gradle file (the way how to specify version explicitly in versions.properties is not known).
Current versions of lifecycle's libs:

How the bug looks in Android studio:

To Reproduce

Get the last Android Studio 2020.3.1 Canary 7
Create Empty Compose Activity project
Setup refreshVersions for the project
Add lifecycle libs to  Android app's build.gradle file:

implementation(AndroidX.lifecycle.viewModelKtx)
implementation(AndroidX.lifecycle.liveDataKtx)
implementation(AndroidX.lifecycle.runtimeKtx)
implementation(AndroidX.lifecycle.viewModelSavedState)
implementation(AndroidX.lifecycle.commonJava8)

implementation("androidx.lifecycle:lifecycle-viewmodel-compose:_")

Try to build
See the error

Hello, we are aware of these issues, and we want to provide a general solution for these so it cannot happen again. That will take some time though, and we're busy writing the contributing guide (plus day jobs and lives) right now.
In the meantime, the best solution is to hardcode the version for these compose related artifacts.

Thank you! I look forward to news!

Version 0.10.0 is out with the fix!
In fact, all of the AndroidX dependency notations have been thoroughly reviewed and checked.


Loading Saved Model

Hi @adam-jensen!
First off, awesome work so far.
I'm trying to use your library to predict gaze coordinates using a serialized (trained) model. Your original code has the resultsXY list written to csv. Can we use the .csv (or serialized pickle object) to instantiate a resultXYpxpy list, and then add a single frames gaze coordinates to make a prediction?
More specifically, what would be neccesary to do so? Is it just loading the old models crosshair.result (HT, etc?) Let me know if I can clarify anything, I'll submit some code examples when I get time to.
EDIT: To give some context, I'm trying to change my window focus based on which window the gaze is on. I'd like to train a model on startup and store the necessary variables to disk. Then, when the modified eyeDetect.py is called, it loads the variables into file before grabbing a frame, and returning x, y coordinates. I'd then like to use those with a window manager (i3wm) to grab the workspace and focus it.

Hey,
It's been a while since I delved into our code, but if I recall, the main objects with persistent state are:

eyeDetect.py:virtualpoint, which holds the original SURF keypoint descriptors and their offsets from the virtual reference point
eyeDetect.py:HT , the transformation matrix which converts (eye pupil offset from virtual ref point) -> (pixel coordinates of gaze).

So, if the user's head hasn't moved at all, you could restore virtualpoint and HT (or, optionally, retrain HT from the results list). However, over the course of a desktop session, a normal user's head will definitely move (both left/right and closer/farther from the screen). So for your purpose, you'll probably need to add compensation for head movement, as discussed in our paper.

what paper? I didn't see any paper. can you pls give me the address to your paper?

The paper is the only PDF file in the repo.


docs: Elaborate AnimationPlayer manual advancing

Elaborate the difference between AnimationPlayer::advance and
AnimationPlayer::seek, specifically how intermediary events are handled for
each.
From the docs it is unclear that AnimationPlayer::advance is more of a
'fast-forward', playing each event (including function calls) between the two
points.

This PR is based on feedback from this issue @ github/godot-docs

Seems fine to me apart from the style issue I mentioned above. Could you squash commits together when updating?

Do you want me to squash and force push to this same branch?

Yes, that would be great :)

All squashed into ffa22c9273e41c3f809bb52e2c1244e00c707bc5

Thanks!


Torsion energy mismatch with GROMACS

Description
I am using a host-guest pair from the SAMPL6 challenge to evaluate energy evaluations from different engines. I'm observing known successes and failures except for GROMACS reporting different torsion energies.
Reproduction
from openff.toolkit import ForceField, Molecule, Topology
from openff.units import unit

from openff.interchange import Interchange
from openff.interchange.drivers.all import get_summary_data

sage = ForceField("openff-2.0.0.offxml")

host = Molecule.from_file("CB8.sdf")
guest = Molecule.from_file("CB8-G3.sdf")
cl = Molecule.from_smiles("[#17-]")

topology = Topology.from_molecules([host, guest, cl])

assert sum(molecule.total_charge for molecule in topology.molecules).m == 0.0

out = Interchange.from_smirnoff(
    force_field=sage,
    topology=topology,
    box=unit.Quantity([4, 4, 4], unit.nanometer),
)
print(get_summary_data(out))

Output
In [1]: run host_guest.py
              Bond        Angle     Torsion    Nonbonded          vdW  Electrostatics
OpenMM   45.377921  1783.890382  453.583334 -3156.874494          NaN             NaN
Amber    45.592630  1783.018713  453.825928          NaN  1722.878734    -4844.610086
GROMACS  45.377872  1783.891479  447.469330          NaN  1690.604396    -4847.835205

Software versions

Which operating system and version are you using?
How did you install Interchange?
What is the output of running conda list?

Well that's embarassing
$ grep -m 1 -r " 15.3215" *top
out.top:      2       1       8       6      1              180          15.3215       2
parmed.top:      1      2      9      4     1<PHONE_NUMBER>  15.3215155  2

Aha ....
>>> f"{1/3:16g}"
'        0.333333'
>>> f"{1/3:.16g}"
'0.3333333333333333'

The most offending line seems to be here but there are many similar cases

Nevermind - that's just impropers not being consistently wrapped up into torsions. Stripping out the slow bits produces something that looks better:
import parmed
from openff.toolkit import ForceField, Molecule, Topology
from openff.units import unit
from openff.toolkit.typing.engines.smirnoff.parameters import ChargeIncrementModelHandler

from openff.interchange import Interchange
from openff.interchange.drivers.all import get_summary_data

sage = ForceField("openff_unconstrained-2.0.0.offxml")
sage.deregister_parameter_handler("ToolkitAM1BCC")
sage.deregister_parameter_handler("ImproperTorsions")
sage.register_parameter_handler(
    ChargeIncrementModelHandler(version=0.3, partial_charge_method="formal_charge")
)
host = Molecule.from_file("CB8.sdf")
guest = Molecule.from_file("CB8-G3.sdf")
cl = Molecule.from_smiles("[#17-]")

topology = Topology.from_molecules([host, guest, cl])

assert sum(molecule.total_charge for molecule in topology.molecules).m == 0.0

out = Interchange.from_smirnoff(
    force_field=sage,
    topology=topology,
    box=unit.Quantity([4, 4, 4], unit.nanometer),
)

print(get_summary_data(out))

              Bond        Angle     Torsion    Nonbonded         vdW  Electrostatics
OpenMM   48.496165  1783.890382  447.468637  1584.787925         NaN             NaN
Amber    48.496326  1783.890240  447.468758          NaN  1724.25778     -105.725914
GROMACS  48.496212  1783.891479  447.468750          NaN  1690.60580     -105.909119

That includes some fixes to float rounding. It's still a bit off using the main branch (below) so I think those changes are worthwhile:
              Bond        Angle     Torsion          vdW  Electrostatics
OpenMM   48.496165  1783.890382  447.468637  1510.588982     -105.749266
Amber    48.496326  1783.890240  447.468758  1724.257780     -105.725914
GROMACS  48.496212  1783.891479  447.469330  1690.604366     -105.909119

This no longer seems to be an issue:
              Bond        Angle     Torsion  Electrostatics          vdW  RBTorsion
OpenMM   45.377921  1783.890382  453.583334    -4847.411546  1690.537192        NaN
Amber    45.592630  1783.018713  453.825928    -4844.610086  1722.878734        NaN
GROMACS  45.377872  1783.891602  453.583421    -4847.798096  1690.605739        0.0
LAMMPS   48.496275  1783.890366  453.583332    -4844.685147  1685.843053        NaN

This is at commit a796a9d0d353ded0902bdfe0ac205b9e0cbc14c4 which comes some time shortly after release 0.3.5


Use standardized "Deprecated:" comments

According to Godoc, deprecating an identifier should be done with a doc comment starting with "Deprecated:".
When following this guideline, the generated documentation and any other tools can treat the code accordingly.
For some parameters I'm not sure why they are even deprecated and I commented them to maybe get some feedback on what to do with them.

Thank you for your feedback. I changed it accordingly.


Correction for raw affiliation King's University College at Western University

Correction needed for raw affiliation King's University College at Western University
raw_affiliation_name: King's University College at Western University
new_rors: ;02grkyz14
previous_rors: 048f5b183;05cgtjz78
works_examples: W4366819300;W4386458302;W4367296517;W4379014927;W4387362260;W4384561123;W4389352341;W4385884103
contact: 9269eced9e1ff1d84cad9c820ac08ee4:5945491969fc4d8d @ uwo.ca

This issue was accepted and ingested by the OpenAlex team on 2024-12-21. The new affiliations should be visible within the next 7 days.


Wrong body models for subraces

Gnome and halfling subraces has dwarf models instead and wild elves has no female variant in subraces.tab.

Odd.  I'll look into it.

I see what's wrong.  I should have time to get a fix in next week.

Should be fixed now.


[2.7] Remove kontainer-engine and machine drivers from drivers.rancher.cn

Issue:

SURE-5852
Problem

Solution

Testing

Engineering Testing
Manual Testing

For the fresh installation, it will not contain these drivers.
When upgrading from the previous Rancher, since these drivers have been stored in CR, they will continue to be retained, which is also conducive to ensuring compatibility.
Automated Testing

QA Testing Considerations

Regressions Considerations

still active


Server-side only support

If possible it'd be great to have support for server-side only portals (assuming it doesn't work already?), then we could have a good replacement for Multiverse-Portals on Fabric.

It is entirely possible, with some work arounds. The currently used custom portal block would have to be replaced, potentially with the nether portal? The logic for the portal would then have to be replaced. The client currently only handles stuff like tinting the portal, spawning the particles, and the nausea effect. So the portals would not look as nice, but it is entirely possible. I'd have to look into the best way possible to implement this, potentially with detecting if the player also has the mod installed to restore functionality

Got this working, now just need to clean it up
https://discord.com/channels/507304429255393322/523251999899385875/803749351771602995

Got this working, now just need to clean it up
https://discord.com/channels/507304429255393322/523251999899385875/803749351771602995

Is there any update on the progress of this?


Do not fail when destroying a container if it's not found in the store.

Related to #302
Signed-off-by: Andrea Luzzardi<EMAIL_ADDRESS>

LGTM


Integrate Media-Library in visual editor

Integrate the media-library into the visual editor, so that authors can use existing images in articles.

Add a button to the image component next to image upload area (50:50)
open overlay with media-library

deployed with version 1.3.4


In DeleteFilesForm add a column to display the group classes icons to match the main LogList design

Can be done using the same logic as the compositionCell in Sections\LogList.cs


Any way to add more GPIOs to AIY Voice Kit V2?

I'm working on a project using the google AIY Voice Kit V2 as a base. I'm planning on adding a keypad which requires 12 GPIOs. Does anyone know of a way to add more GPIOs to the Pi Zero W with AIY Voice Kit v2?

Possible option could be to use I2C GPIO extender, something like https://www.sparkfun.com/products/13601. It can be connected to the I2C bus on the Pi.


Textual Serve (1.1.0) gets 403 status codes trying to access resources with Linux

Textual serve shows 403 (forbidden) http status codes once it has launched.  If I try to access the app via the browser, I only see the Textual logo.  The logs displayed on the terminal show that certain resources cannot be accessed.

The problem seems to be the double forward slashes in the resource address (see image).  If I enter the resource address in the browser, I get the forbidden message, however, if I remove a slash, it accesses the resource correctly.  Based on other users comments on the Textual Discord server, this issue also happens with Ubuntu and may just be related to Linux.
Versions:

Textual: 0.79.0
Textual-serve: 1.1.0
Python: 3.12.5
Linux: EndeavourOS (kernel 6.10.7)

What version of aiohttp do you have installed?

Pip says....
aiohttp                3.10.5
aiohttp-jinja2         1.6

I'm having the same problem in Windows.

Textual: 0.79.1
Textual-serve: 1.1.0
aiohttp 3.10.5
aiohttp-jinja2 1.6
Python: 3.12.4
Windows 11


Replace FLUTTER_MODULE_TYPE with WEB_MODULE in dev/manual_tests/* and examples/* iml files

This change is being staged to be in coordination with https://github.com/flutter/flutter-intellij/pull/1213

@devoncarew @pq

lgtm; let's wait to land this until M16 of the Flutter plugin has been out for a little bit.

This appears to have broken in the same way both on Travis and the Mac Chromebot. I'm not entirely sure why this change should have affected these but in both cases, test/commands/create_test.dart: create project failed.
Wondering if it could be a flake due to a pub timeout?

I did just sync to master and ran the tests - these do pass locally.

Bots are looking happier on re-run.

Looks like the templates need fixed too?
git grep FLUTTER_MODULE_TYPE
packages/flutter_tools/templates/create/projectName.iml.tmpl:<module type="FLUTTER_MODULE_TYPE" version="4">
packages/flutter_tools/templates/plugin/projectName.iml.tmpl:<module type="FLUTTER_MODULE_TYPE" version="4">


Integrate document symbol for callbacks

Callbacks are ubiquitous across Rails, so it would be helpful to explicitly isolate them in the LSP via document symbols.
This approach accounts for callbacks associated with ApplicationRecord (models), ApplicationController (controllers), and ApplicationJob (jobs).
In addition to the various callback categories, there are 3 types of arguments to consider:

When the argument is a symbol (like before_perform :foo_method).
When the argument is a string (like before_save "foo_method").
When the argument is a block (like   before_action do ... end).

So, this implementation looks like this:

Confirm the callback aligns with one of the callbacks offered by models/controllers/jobs.
Confirm the argument type is valid.
Create a document symbol for the callback-argument pairing.

As per this approach, something like before_save "foo_method", "bar_method", on: :update would yield two document symbols: before_save(foo_method) and before_save(bar_method).
This approach directly ties to what is supported in Ruby LSP already for something like attr_reader :foo.
See my thoughts below for additional context on the PR.

Again not a blocker, but I notice it doesn't handle this syntax:
before_create ->(user) { user.name = user.login.capitalize if user.name.blank? }

(from the docs)

I assume we've done some testing on Core with various syntaxes?

Can we try splitting this into 2 classes to make things easier to understand in the future? Like DslDocumentSymbol and TestDocumentSymbol. It should be doable and fairly simple under the new addon system. If not, we can also use the feedback from this attempt to improve it.

I do agree that we have to create the abstraction at some point, but I'd rather scope it out as this PR already has a lot of points for discussion. After @andyw8's review, I noticed we should also add support for classes, like before_save Foo, alongside a couple other tangential paradigms.
I think it would be best to extract the classes out after I get to working on the other 2 dsl features.

I think it would be best to extract the classes out after I get to working on the other 2 dsl features.

Since other features are all dsl related, wouldn't this make the class separation more beneficial as the reviews will be easier?

My thinking is that it'll be easier to figure out what behaviour we can unify once we examine the behaviour of the other classes. In the dsl class, I don't think it'll be as simple as one method that applies to all of the features, so we can make decisions on the abstraction then.
I could separate things once I get to the next feature, instead of waiting until the very end. I agree that would make future reviews cleaner.


Slack JSON improvements discussion

Description of feature
The assets/slackreport.json file could be improved, and I wanted to give an opportunity for people to provide input before I make the changes.
An issue to start:

The author name is "sanger-tol/readmapping" which feels like a mistake:
https://github.com/nf-core/rnaseq/blob/6e1e448f535ccf34d11cc691bb241cfd6e60a647/assets/slackreport.json#L6

Are there any run details that we feel are missing from the report?

The version has two "v"s:

It would be great to have a link to the tower run page, but I'm not sure if that is available within the workflow context

Agree. Feel free to fix @robsyme . Happy to review.

Fixed in https://github.com/nf-core/rnaseq/pull/982


channel question

dear author,
thank u for ur brilliant work
I'm wondering whether the program could work if i train it with the images of single channel and size of 128x128( gray scale image)
I only changed self.c_dim into 1(BigGAN_128.py), but it seems to have some errors in generators.
I wanna figure out that the error is raised because of img dimension or perhaps other reasons.

can you share error message ?

Thank u for ur response :)
`During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 132, in
main()
File "main.py", line 120, in main
gan.train()
File "/share/home/junpink/BigGAN/BigGAN_128.py", line 302, in train
_, summary_str, d_loss = self.sess.run([self.d_optim, self.d_sum, self.d_loss])
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1152, in _run
feed_dict_tensor, options, run_metadata)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1328, in _do_run
run_metadata)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1348, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.ResourceExhaustedError: OOM when allocating tensor with shape[256,4096,1024] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node generator/self_attention/Softmax (defined at /share/home/junpink/BigGAN/ops.py:246)  = SoftmaxT=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
 [[{{node add_2/_1055}} = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_7534_add_2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]

Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
Caused by op 'generator/self_attention/Softmax', defined at:
File "main.py", line 132, in
main()
File "main.py", line 113, in main
gan.build_model()
File "/share/home/junpink/BigGAN/BigGAN_128.py", line 231, in build_model
fake_images = self.generator(self.z)
File "/share/home/junpink/BigGAN/BigGAN_128.py", line 129, in generator
x = self_attention_2(x, channels=ch, sn=self.sn, scope='self_attention')
File "/share/home/junpink/BigGAN/ops.py", line 246, in self_attention_2
beta = tf.nn.softmax(s)  # attention map
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 1722, in softmax
return _softmax(logits, gen_nn_ops.softmax, axis, name)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/ops/nn_ops.py", line 1673, in _softmax
return compute_op(logits, name=name)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 7138, in softmax
"Softmax", logits=logits, name=name)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 488, in new_func
return func(*args, **kwargs)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3274, in create_op
op_def=op_def)
File "/opt/python-3.6.8-gpu/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1770, in init
self._traceback = tf_stack.extract_stack()
ResourceExhaustedError (see above for traceback): OOM when allocating tensor with shape[256,4096,1024] and type float on /job:localhost/replica:0/task:0/device:GPU:0 by allocator GPU_0_bfc
[[node generator/self_attention/Softmax (defined at /share/home/junpink/BigGAN/ops.py:246)  = SoftmaxT=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]
Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.
 [[{{node add_2/_1055}} = _Recv[client_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device_incarnation=1, tensor_name="edge_7534_add_2", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]

Hint: If you want to see a list of allocated tensors when OOM happens, add report_tensor_allocations_upon_oom to RunOptions for current allocation info.`

I don't know if the error is only caused by ResourceExhaustedError or casued by some other reason like wrong dimension.

@taki0112 sorry for wasting your time
it turns out that i made a dummy mistake
it works fine now
thank you very much

@Junpink Can you tell me how to solve the erro? Thank you

@Ahalang
actually my error was caused by other reasons which has nothing to do with modifying the channel or OOM.
in short, if u wanna run his code on gray scale image, just change self.c_dim into 1
if u encounter OOM problem, perhaps u can try decreasing the batch size


system handler should react to domain changed event

The system handler part of the zitadel should be able to handle an domain changed event, which will be sent to the cdn integration and call some api (e.g fastly, etc.).
Acceptance criteria

[ ] Handle domain.changed event
[ ] Send to cdn

Define which api should be integrated

Right now we are testing cloudflare, fastly and akamai.
To make an example with fastly the following steps apply:

add domain name to service https://developer.fastly.com/reference/api/services/domain/
create tls subscription https://developer.fastly.com/reference/api/tls/subs/
prompt the user to create a cname pointing towards our infrastructure
poll the certificate status and present the status to the user

this should happen in the customer portal, due to this , this issue will be closed


Syntax error with 1.10.2 running on PiOS

I have adafruit-circuitpython-typing version 1.10.2 installed via pip3 on a Raspberry Pi 3B+ running "Raspbian GNU/Linux 10 (buster)".
I was trying to set up and use an OLED display, but am getting the following error just during the import section:
Traceback (most recent call last):
  File "oled_demo.py", line 5, in <module>
    import adafruit_ssd1306
  File "/usr/local/lib/python3.7/dist-packages/adafruit_ssd1306.py", line 17, in <module>
    from adafruit_bus_device import i2c_device, spi_device
  File "/usr/local/lib/python3.7/dist-packages/adafruit_bus_device/i2c_device.py", line 15, in <module>
    from circuitpython_typing import ReadableBuffer, WriteableBuffer
  File "/home/pi/.local/lib/python3.7/site-packages/circuitpython_typing/__init__.py", line 79
    def read(self, count: Optional[int] = None, /) -> Optional[bytes]:
                                                ^
SyntaxError: invalid syntax

The code that produces this is
# Load needed modules
import board
import digitalio
from PIL import Image, ImageDraw, ImageFont
import adafruit_ssd1306

I looked at the referenced __init__.py and changed lines 79 and 86 to remove ", /" from the def lines, and all the code then works and I can display something.

Here's what my locally modified code looks like that doesn't produce the error and I can have code that will display on the OLED:
    def read(self, count: Optional[int] = None) -> Optional[bytes]:
        """Read ``count`` bytes from the stream.
        If ``count`` bytes are not immediately available,
        or if the parameter is not specified in the call,
        the outcome is implementation-dependent.
        """

#    def write(self, buf: ReadableBuffer, /) -> Optional[int]:
    def write(self, buf: ReadableBuffer) -> Optional[int]:
        """Write the bytes in ``buf`` to the stream."""

There was a post on reddit a while ago with the same issue, but no valid solution
How do i fix this syntax error? Using python 3.7 on raspberry pi. This error is in a file from a up to date Adafruit library

The 1.10.2 release was withdrawn ("yanked") from pypi for precisely this issue. See #40. Install 1.10.1, or, preferably upgrade your RPi to a newer version of Raspberry Pi OS. You can also install a later version of Python but do not overwrite the system version of Python. Install a local version from the deadsnakes ppa or similar for use by you, and not by the system.

Thank you @dhalbert , I am still new to Github and didn't know to look at the pull requests.
For anyone else that finds this, here is how I resolved for myself:
sudo pip3 uninstall adafruit-circuitpython-typing
pip3 uninstall adafruit-circuitpython-typing
pip3 install adafruit-circuitpython-typing==1.10.1
The first two commands are because in trying to fix this issue I had ended up installing the module system-wide and just for my user.  The third command is the key one to force the install of the last version without the issue.

Glad you got it working. I think that once you uninstalled 1.10.2, the next attempt to install, even without ==1.10.1 should have installed that version, because 1.10.3 and above are designated as needing Python 3.8, so it should have installed the highest possible one without that requirement. The problem with 1.10.2, is that it didn't require >= Python 3.8. But all is well now.


Nothing to publish for tag [config]

always i try to run command php artisan vendor:publish --provider="Bican\Roles\RolesServiceProvider" --tag=config
i get this error, i try php artisan config:clear but nothing always the same message

Remove quotes from provider

I have the same error, I tried removing the quotes and didn't work.

This will probably help you.
When you change the app/config.php file, you have to clean the config cache by running the command "php artisan config:cache".
After doing this you can run the commands needed to install the package.


Add argument inference_grad_mode to Trainer

What does this PR do?

Fixes #14497. Add inference_grad_mode to Trainer to enable users to control the grad mode used when inference.
Does your PR introduce any breaking changes? If yes, please list them.
Expected to be none.

Before submitting

[x] Was this discussed/approved via a GitHub issue? (not for typos and docs)
[x] Did you read the contributor guideline, Pull Request section?
[x] Did you make sure your PR does only one thing, instead of bundling different changes together?
[ ] Did you make sure to update the documentation with your changes? (if necessary)
[x] Did you write any new necessary tests? (not for typos and docs)
[x] Did you verify new and existing tests pass locally with your changes?
[x] Did you list all the breaking changes introduced by this pull request?
[x] Did you update the CHANGELOG? (not for typos, docs, test updates, or minor internal changes/refactors)

PR review
Anyone in the community is welcome to review the PR.
Before you start reviewing, make sure you have read the review guidelines. In short, see the following bullet-list:

[x] Is this pull request ready for review? (if not, please submit in draft mode)
[ ] Check that all items from Before submitting are resolved
[x] Make sure the title is self-explanatory and the description concisely explains the PR
[ ] Add labels and milestones (and optionally projects) to the PR so it can be classified

Did you have fun?
Make sure you had fun coding 🙃

I am fine with either since it's completely related to LM but trainer is the one that calls it.

Just saw that this got marked stale, I would love to help the development since this feature would be really useful

@rschireman go ahead!

Hi @LouChao98, as #15034 has got merged already, would you mind closing this PR? Thank you for your contribution!


Feature/234  include origin type in elevate api call

Moves ProductMetadata from an inner class of the CommitmentRequest and into it's own class that can be used by the purchase and authorize/add-to-batch requests.
Critical Changes
Changes
Issues Closed
Community Ideas Delivered
Features Intended for Future Release
Features for Elevate Customers
New Metadata

force-app/main/default/classes/PS_ProductMetadata.cls

Deleted Metadata

Implementation looks good here. Make sure we get test coverage for ensuring that the Origin/ProductMetadata is set in the purchase requests.


Screen scatterd

It was updated from ver 3.3 to 4.0.2 Beta which means the class-names are no longer in accordance if you're using 3.3 instead of the 3.3.
https://github.com/BlackrockDigital/startbootstrap-shop-homepage/blob/d60375c3ac5fc459ec7e30a126559d6dd0d26469/index.html
This is a link of the 3.3 version.

This now uses Bootstrap 4 - you can go back in the releases or commit history to find Bootstrap 3 versions of this theme.


ElMessage is not define

I use typescript

This plugin is only for components. If you want to auto import ElMessage please consider to use https://github.com/antfu/unplugin-auto-import . Here is an example: https://github.com/sxzz/element-plus-best-practices


Error when unloading textarea with rows set in Internet Explorer

In Internet Explorer, when I have a textarea with the rows attribute set, and I change my content to a another screen that has a different textarea, I get an error.
Invalid Property Value

At this point in the code: on the line that sets node[propName] = "".
        } else if (propName === "style") {
            for (var i in previousValue) {
                node.style[i] = ""
            }
        } else if (typeof previousValue === "string") {
            node[propName] = ""
        } else {
            node[propName] = null
        }

At this point, propName == "rows" and previousValue == "5".
Note that it doesn't matter whether the new textarea has rows set, just whether the one being unloaded does. I'm guessing this is related to the fact that rows takes an integer as input instead of a string, and "" is not a valid value. And apparently IE cares a lot about that :)

Update: this error only occurs when the second textarea doesn't have the rows attribute.

Related error: Internet Explorer dies when you try to use type "date" on any input, with the same error.
At the following location, on the last line. propName == "type" and propValue == "date"
        if (isObject(propValue)) {
            patchObject(node, props, previous, propName, propValue);
        } else {
            node[propName] = propValue
        }

I'm assuming that IE normally falls back gracefully when these attributes are set in HTML, but it's more aggressive about policing them when set from JS. Maybe there's some way to add a try/catch here?


Vfnet loss() missing 1 required positional argument: 'img_metas'

🐛 Bug
Describe the bug
After the first epoch,when validating I get the error explained in title.
To Reproduce
Steps to reproduce the behavior:
Training mmdet.vfnet model with backbone resnet50_fpn_mstrain_2x,image size 512.Batch size 16 and workers 8.Using CocoMetric,metric type COCOMetricType.bbox.15 epochs with the learning rate of 3e-4 and freeze_epochs = 1.
Expected behavior
First epoch was successful with no errors so expected whole training process to be done with no issues.
Screenshots

Desktop (please complete the following information):

OS: Ubuntu 20.04

Additional context
Add any other context about the problem here.

Hi @UygarUsta99 can you please post this one in a #help channel on our Discord server?
We are way more active there.

Will do as soon as possible.Thank you for responding so quickly.

@UygarUsta99 does the problem still persist?

I have reproduced the getting started with object detection notebook on colab with vfnet,there were no errors.The error I have faced might be due to installation,I have to further experiment.I am closing this issue for now,thank you for helping.

For future reference, I encountered this error with mmdet==2.20.0. The error goes away with mmdet==2.16.0. I did not test other mmdet versions.

@dnth thank you for your feedback.

it's because the if-else to self.training has changed: https://github.com/open-mmlab/mmdetection/commit/75238f307e7ea923e30b98cff198a14b9dfba485#diff-533f80fd026c64e139df3be8c5f6b0a5dac3c301350186b60f08c39d3354de01L272
when validation step runs the number of return values decrease from 3 to 2, so L335 of base_dense_head.py the number of inputs of the func loss_inputs also decrease.

it's because the if-else to self.training has changed: open-mmlab/mmdetection@75238f3#diff-533f80fd026c64e139df3be8c5f6b0a5dac3c301350186b60f08c39d3354de01L272
when validation step runs the number of return values decrease from 3 to 2, so L335 of base_dense_head.py the number of inputs of the func loss_inputs also decrease.

I see.. is there a reason they make it that way? Or its a bug in the implementation?

I don't know why.. I just remove the if-else in vfnet_head.py and return the 3 values, then the notebook will run well. I don't know why someone add the if-else and make the validation or test step only return 2 values.

it's because the if-else to self.training has changed: open-mmlab/mmdetection@75238f3#diff-533f80fd026c64e139df3be8c5f6b0a5dac3c301350186b60f08c39d3354de01L272
when validation step runs the number of return values decrease from 3 to 2, so L335 of base_dense_head.py the number of inputs of the func loss_inputs also decrease.

I see.. is there a reason they make it that way? Or its a bug in the implementation?

I don't know why.. I just remove the if-else in vfnet_head.py and make the func return 3 values, then the notebook runs well. I don't know why someone add the if-else and make the validation or test step only return 2 values.

it's because the if-else to self.training has changed: open-mmlab/mmdetection@75238f3#diff-533f80fd026c64e139df3be8c5f6b0a5dac3c301350186b60f08c39d3354de01L272
when validation step runs the number of return values decrease from 3 to 2, so L335 of base_dense_head.py the number of inputs of the func loss_inputs also decrease.

I see.. is there a reason they make it that way? Or its a bug in the implementation?

I don't know why.. I just remove the if-else in vfnet_head.py and make the func return 3 values, then the notebook runs well. I don't know why someone add the if-else and make the validation or test step only return 2 values.

I see.. thank you for reporting it here! I will take a look later and if its a bug, I will make PR for a fix. Thanks again!

I tried training vfnet with the mmdetection training script. It seems like the error does not occur

it's because the if-else to self.training has changed: open-mmlab/mmdetection@75238f3#diff-533f80fd026c64e139df3be8c5f6b0a5dac3c301350186b60f08c39d3354de01L272
when validation step runs the number of return values decrease from 3 to 2, so L335 of base_dense_head.py the number of inputs of the func loss_inputs also decrease.

@ai-fast-track is this something we can fix in IceVision?


Gyro Angular velocity error

librealsense
2.31.0 RELEASE

OS
Linux

Name
Intel RealSense D435I

Serial Number
848312071368

Firmware Version
<IP_ADDRESS>

Advanced Mode
YES

Camera Locked
YES

Usb Type Descriptor
3.2

Product Line
D400

Asic Serial Number
915323050158

Firmware Update Id
915323050158

The Gyro stream display x: y: z: axial angular velocity , but only x axial 's value is correct, y and z axial 's value is always going to be 56.802 and -22.441,no matter what.
I tried to reinstall the system and SDK, but nothing worked.
I can confirm that this is and SDK issue introduced in the latest version. This is is a high-priority task and we will address it in the next release.In the meanwhile please continue using v2.30.0.
Sorry for the inconvenience.