Add user timezone to localized dates' alt text

Fixes #9476
This PR updates the JS controller used to display localized dates and date time strings to also display user's timezone.

Is there anything I can do to progress this PR further?

Looks like the tests are failing due to the change in 8bbebdc.

I honestly don't get the assertion error. The values look the same to me.
https://github.com/pypa/warehouse/runs/5021666038?check_suite_focus=true#step:11:29-32

They're off by one hour:
- title="2019-09-20 18:06:58 (+00:00)"
+ title="2019-09-20 19:06:58 (+00:00)"

Looks like the change of datetime from +0000 to +0100 in commit 8bbebdc broke the static tests:
https://github.com/pypa/warehouse/blob/8bbebdcc8936476438e7665c7c145845b9dca26d/tests/frontend/localized_time_controller_test.js#L28
Our localized-time controller assumes UTC because that’s how timestamps are stored in the database:
https://github.com/pypa/warehouse/blob/8bbebdcc8936476438e7665c7c145845b9dca26d/warehouse/static/js/warehouse/controllers/localized_time_controller.js#L22

We should also change the expected timezone in static tests back to (+00:00):
https://github.com/pypa/warehouse/blob/8bbebdcc8936476438e7665c7c145845b9dca26d/tests/frontend/localized_time_controller_test.js#L45
The static tests run in our Docker image which is apparently set to UTC by default.
I have prepared a fix for the static tests that can be merged from topic/timezone-to-alt-text or cherrypicked from df84524.

Thanks @di looks like the static tests are running smoothly now.

Thanks @berinhard and @divbzero!


Model admin list filters with custom filters on related model field is not allowed

Issue Summary
Custom filters on a related model's field using model admin results in a DisallowedModelAdminLookup.
This is because the check on the line below cant inspect the inner tuple when a list filter is defined as  list_filter = (('related_model__field', CustomListFilter),)
https://github.com/wagtail/wagtail/blob/aeef5a54541640988eb319fab3331088e57d080a/wagtail/contrib/modeladmin/views.py#L329
For the normal case list_filter = ('related_model__field',) the check of 'related_model__field' in ('related_model__field',) will be True.
Custom filters work fine for the models own fields as the lookup_allowed method returns True for all fields on the model (line 326 len(parts)==1) e.g. list_filter = (('field', CustomListFilter),)

Thank you for raising @todd-dembrey.
I wouldn't class this as an issue per se, because the docs don't mention support for custom filters at all. There's some basic support built in, but it isn't covered by tests and is considered experimental. I would class this as a feature request, which in order to implement, the following will need to happen:

The core development team agree whether modeladmin should support custom Django filters at all, and which definition mechanisms they'd like to support.
Support being added/removed/modified appropriately
Tests being added
Docs being updated appropriately

@todd-dembrey You can still make a filter for a related field in the current Wagtail modeladmin. Here is one example:
from django.contrib.admin import SimpleListFilter

class ArtistFilter(SimpleListFilter):
    title = "Artist"
    parameter_name = "artist"

    def lookups(self, request, model_admin):
        artists = set([c.artist for c in model_admin.model.objects.select_related('artist').all()])
        return [(c.id, c.display_name) for c in artists]

    def queryset(self, request, queryset):
        try:
            artist_id = int(self.value())
        except ValueError:
            return queryset.none()
        else:
            return queryset.filter(artist__id=artist_id)

class ArtworkAdmin(ModelAdmin):
    model = Artwork
    list_filter = (ArtistFilter,)


List up supported arg/retval types and functions

Generate:

list of supported argument and return value (including output argument) types
list of supported functions
list of unsupported functions and reason

Close this ticket.

list of supported argument and return value (including output argument) types: Done in README.md
list of supported functions: Done in Wiki
list of unsupported functions and reason: Canceled because it's difficult to list all


copy(userData.imsAccessToken) is not working on new Launch URL

Hi Team,
The 'userData' object is not defined on the newly migrated Launch URL.
https://experience.adobe.com/#/@/launch/companies/
Could you please provide a solution here

window.adobeIMS.getAccessToken() should do the trick.
(h/t to Mr. Highland for the solution)

Thanks for the update


System.StackOverflowException in AuthorizationProvider

in ABP version <IP_ADDRESS>, Authorization provider moved from Application Project to Core Project,
when i Create Permission in Authorization Provider and run the application, i got System.StackOverflowException
here is Authorization Provider in Core Project
using Abp.Authorization;
using Abp.Localization;
using Abp.MultiTenancy;

namespace ACHPay.Enterprise.Authorization
{
    public class EnterpriseAuthorizationProvider : AuthorizationProvider
    {
        public override void SetPermissions(IPermissionDefinitionContext context)
        {
            context.CreatePermission("Read.Permission.Banks", L("Permission.Banks"), multiTenancySides: MultiTenancySides.Tenant);
            context.CreatePermission("Write.Permission.Banks", L("Permission.Banks"), multiTenancySides: MultiTenancySides.Tenant);
            context.CreatePermission("Delete.Permission.Banks", L("Permission.Banks"), multiTenancySides: MultiTenancySides.Tenant);
        }

        private static ILocalizableString L(string name)
        {
            return L(name);
        }
    }
}

The exception occurs in this method
private static ILocalizableString L(string name)
{
    return L(name);
}

This is very simple. L method recursively calls itself. It never ends. Why did you write it like that? It should be similar this:
private static ILocalizableString L(string name)
{
    return new LocalizableString(name, "YourLocalizationSourceName");
}

YourLocalizationSourceName will be your source name. It's better to get it from a consts.

Sorry, i ruined it with find and replace :( thanks


Update from upstream

Source code before v2.0 is deprecated.

Sorry I seemed to have compared the wrong fork... I was trying to update my fork... Sorry for the inconvenience.


[HOLD for payment 2023-10-12] [$500] [Distance] Web - Map and map image doesn't zoom out and display long unconventional routes

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
. Open the app
2. Click on plus and click on request money
3. Click on 'Distance'
4. In start, select 'India' and in Finish, select 'Pakistan'
5. Observe that map does not display the whole route as it is not straightforward
6. Complete the process, open the request money message twice to open request money page
7. Click on map image to see that map does not display the route fully
Expected Result:
App should zoom out to display full route in map and image
Actual Result:
App does not zoom out to display full route in map and image for long distance unconventional routes
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/f81488dc-661a-4ce9-8c76-9beb919302d7
https://github.com/Expensify/App/assets/93399543/1e567809-026d-4ad5-9279-048761caf851
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694103719072409
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01c90939608885c398
Upwork Job ID:<PHONE_NUMBER>102277120
Last Price Increase: 2023-09-11
Automatic offers:

mollfpr | Reviewer | 26914479
dhanashree-sawant | Reporter | 26914481

@sumairq Are you suggesting to add the zoomLevel props to the map? What the center variable will do?
Also, could you attach a video of the working result?

Proposal
Please re-state the problem that we are trying to solve in this issue.
App should zoom out to display full route in map and image
What is the root cause of that problem?
Currently, to find the bounds of the map we are using only waypoints (start, end, stop points). This can be seen in the below code block to get bounds.
https://github.com/Expensify/App/blob/f4affe545df1e1d01f71eea40b7fe9c3e07f5aa3/src/components/MapView/utils.ts#L1-L13
What changes do you think we should make in order to solve the problem?
We should also consider direction Points in getting the bounds of the map like below :
function getBounds(waypoints: Array<[number, number]>, directionCoordinates: undefined | [number, number][]): {southWest: [number, number]; northEast: [number, number]} {
    const lngs = waypoints.map((waypoint) => waypoint[0]);
    const lats = waypoints.map((waypoint) => waypoint[1]);
    if (directionCoordinates) {
        lngs.push(...directionCoordinates.map((coordinate) => coordinate[0]));
        lats.push(...directionCoordinates.map((coordinate) => coordinate[1]));
    }

    return {
        southWest: [Math.min(...lngs), Math.min(...lats)],
        northEast: [Math.max(...lngs), Math.max(...lats)],
    };
}

export default {
    getBounds,
};

Attaching a video for support :
https://github.com/Expensify/App/assets/54314936/6beba891-1138-4350-8d35-159b920552ef
What alternative solutions did you explore? (Optional)
NA

Proposal
Updated(https://github.com/Expensify/App/issues/27175#issuecomment-1722175816)

@rakshitjain13 Where do we get the value of directionCoordinates ?

@mollfpr In MapView Component src/components/MapView/MapView.web.tsx directionCoordinates are passed as props and thus we will pass this variable in below function
https://github.com/Expensify/App/blob/9b302c980f4dcaba08d113f47d4852dc121c7e4e/src/components/MapView/MapView.web.tsx#L43

Thanks @rakshitjain13!
The proposal from @rakshitjain13 looks good to me! It also makes sense to consider the direction coor to show the full map.
🎀 👀 🎀 C+ reviewed!

@rakshitjain13 After the internal engineer reviews your proposal and assigns the issue to you. So you need to wait patiently.

sorry for the delay, my plate has been really full lately.
Proposal LGTM, feel free to create the PR @rakshitjain13

@chiragsalian @mollfpr @maddylewis Raised the PR https://github.com/Expensify/App/pull/28396

@mollfpr Updated the PR as per requested https://github.com/Expensify/App/pull/28416

Payments

[ ] @mollfpr (C+ - $500 via NewDot)
[ ] @rakshitjain13 requires payment (Contributor - $500 via Upwork)
[ ] @dhanashree-sawant requires payment (Reporter - $50 via Upwork)

Contributor hired on 9/19. Merged 10/2.

@mollfpr - can you review this checklist - thanks! https://github.com/Expensify/App/issues/27175#issuecomment-1747814177

@maddylewis as per Melvin-bot I am eligible for a 50 % bonus. Also, I didn't receive any offer on upwork as it was my first PR. Let me know if I am missing something.

@rakshitjain13 - yep, i updated the price already. and then will you follow the instructions outlined in this comment and apply to the job on Upwork? leave a comment here once you've done that and i will process the payment. thanks!
https://github.com/Expensify/App/issues/27175#issuecomment-1738232421

@maddylewis Already applied to the Upwork job with my Upwork ID: https://www.upwork.com/freelancers/~01c427caaa5ebf3b9c

[@mollfpr] The PR that introduced the bug has been identified. Link to the PR:

https://github.com/Expensify/App/pull/26500

[@mollfpr] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:

https://github.com/Expensify/App/pull/26500/files#r1359918071

[@mollfpr] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:

The regressions step should be enough.

[@mollfpr] Determine if we should create a regression test for this bug.
[@mollfpr] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.

Click on the green + icon button
Click on Request Money
Select Distance Tab
In the start point type India
In stop point type Pakistan
Verify that the whole route is showing on the map
👍 or 👎

$1000 payment approved for @mollfpr based on BZ summary.


Update Lighthouse/Shipyard to devel

See commit messages for details.
This update should fix Lighthouse's CI (nginx image breakage).

I was trying this locally a few days ago. Because of the logr version bump, we need to bump sigs.k8s.io/controller-runtime to v0.11.2. However this leads to other build errors that should be fixed by https://github.com/submariner-io/admiral/pull/342. Hopefully that will be it.

[12:52:59.764] [submariner-operator]$ CGO_ENABLED=0 go build -trimpath -ldflags -s -w -X github.com/submariner-io/submariner-operator/pkg/version.Version=devel-838eff9 		   -X github.com/submariner-io/submariner-operator/api/submariner/v1alpha1.DefaultSubmarinerOperatorVersion=devel -o bin/subctl-devel-838eff9-linux-amd64 ./pkg/subctl/main.go
# sigs.k8s.io/controller-runtime/pkg/log
vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:163:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument
vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:179:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument
vendor/sigs.k8s.io/controller-runtime/pkg/log/deleg.go:195:2: cannot use res (type *DelegatingLogger) as type logr.Logger in return argument
vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:67:26: cannot use NullLogger{} (type NullLogger) as type logr.Logger in argument to Log.Fulfill
vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:82:41: cannot use NullLogger{} (type NullLogger) as type logr.Logger in argument to NewDelegatingLogger
vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:86:6: cannot use Log (type *DelegatingLogger) as type logr.Logger in assignment
vendor/sigs.k8s.io/controller-runtime/pkg/log/log.go:88:13: assignment mismatch: 1 variable but logr.FromContext returns 2 values
vendor/sigs.k8s.io/controller-runtime/pkg/log/null.go:30:5: cannot use NullLogger{} (type NullLogger) as type logr.Logger in assignment
vendor/sigs.k8s.io/controller-runtime/pkg/log/null.go:48:32: undefined: logr.InfoLogger
vendor/sigs.k8s.io/controller-runtime/pkg/log/null.go:54:2: cannot use log (type NullLogger) as type logr.Logger in return argument
vendor/sigs.k8s.io/controller-runtime/pkg/log/null.go:54:2: too many errors
make: *** [Makefile:192: bin/subctl-devel-838eff9-linux-amd64] Error 2

controllers/test/driver.go:56:17: invalid operation: cannot compare d.Client == nil (operator == not defined on untyped nil) (typecheck)
	if d.Client == nil {
	               ^
controllers/servicediscovery/servicediscovery_controller_test.go:46:12: t.DoReconcile undefined (type *testDriver has no field or method DoReconcile) (typecheck)
		_, _ = t.DoReconcile()
		         ^
controllers/servicediscovery/servicediscovery_controller_test.go:53:33: t.InitClientObjs undefined (type *testDriver has no field or method InitClientObjs) (typecheck)
				t.InitClientObjs = append(t.InitClientObjs, newDNSConfig(""), newDNSService(clusterIP))
				                            ^
<many more>

As you can see controller-runtime is pinned to an older version, it probably needs to be bumped as well
sigs.k8s.io/controller-runtime => sigs.k8s.io/controller-runtime v0.9.0

This is being done in https://github.com/submariner-io/submariner-operator/pull/2037


%activity agent

PR Checklist

[ ] Includes changes to desk files
[ ] Describes how you tested the PR locally (test ship vs livenet)
[ ] If a new feature, includes automated tests
[ ] Comments added anywhere logic may be confusing without context

overall this looks good, I think we can address some of the comments here and get a test thread then move on to integrating it, because that's where will find real issues.


In F1 scenario screen, show game over message in gray if not yet seen

The check would be similar to the current check in case of victory messages (which should not be shown at all, if not seen in game, to avoid spoilers).

I guess it would make sense to represent a section of text to display by tuple of Maybe Color (Nothing is White, rendered faster with  textToAS), header text, message content text.
I suppose both header and content could be greyed out, unless it looks werrd.

After our chat about it, I think it doesn't make sense to experiment with this solution. So I've removed showing non-seen messages altogether and will implement greying out all but the last experienced real game over message after https://github.com/LambdaHack/LambdaHack/issues/208 is implemented. I will probably scan the high score file and pick the ending type that is present in the last high score record. Closing the ticket.


feat(v1.x.x): sync pruning of orphan nodes

This feature prevents the multiple hour long waiting period when chains upgrade from previous versions of IAVL to IAVL v1. The time comes from pruning orphan nodes. This synchronously prunes them. This branch has been tested successfully against osmosis mainnet.

overall, looks good to me! could you please add the changelog?

Will add now. @cool-develope would you consider making a minor v1 release that includes this? If not we can just use our fork but would be nice to just use a tag from iavl proper.

@cool-develope would we be able to get this in a v1 release? I am also refraining from merging since I am not aware of the rules/requirements for this repo.

@tac0turtle ☝

Thanks for working on this! @cool-develope are you looking to create a minor release off this and if so, may I ask when we should expect it?

we can do a release this week for it

Nit: the PR description should say "asynchronously" ?


colormap comparison plot

Produce one or more montage (multiple subpanels) plots as necessary that illustrate different colormaps applied to the same data. One of the colormaps should be the rainbow as an illustration of what NOT to use.
Choose data sets that are appropriate for different color map types (e.g. temperature or velocity components for divergent maps, a field such with no "special values" such as rain fall for a "color scale" map).
The choice of maps should be based on current best practices. See
http://www.kennethmoreland.com/color-advice/
and references therein

@clyne should this be a part of the Plots sub directory, gallery subdirectory, or a new subdirectory completely? I am about to push the first version of a temperature projection but want to make sure we're all on the same page where this category of plots will go

How about we just create a new sub directory under Plots called "Color"?


'move_damage_class' field in 'type' should be set to nullable

Describe the bug
The 'move_damage_class' field in the response of https://pokeapi.co/api/v2/type/18 is null.
Run get_type(18) will produce an error like this:
Traceback (most recent call last):
  File "/home/zarkli/projects/python/test/./main.py", line 18, in <module>
    asyncio.run(main())
  File "/usr/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/zarkli/projects/python/test/./main.py", line 12, in main
    type = await client.get_type(18)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zarkli/.local/lib/python3.11/site-packages/aiopoke/utils/cache.py", line 27, in wrapper
    obj: U = await coro(client, name_or_id)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zarkli/.local/lib/python3.11/site-packages/aiopoke/aiopoke_client.py", line 276, in get_type
    return NaturalGiftType(**data)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/zarkli/.local/lib/python3.11/site-packages/aiopoke/objects/resources/pokemon/natural_gift_type.py", line 42, in __init__
    self.move_damage_class = MinimalResource(**move_damage_class)
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: aiopoke.utils.minimal_resources.MinimalResource() argument after ** must be a mapping, not NoneType

Edit: Don't know whether it is an error of the API itself (i.e. the move_damage_class should never be null. Sorry

Thank you for bringing this to my attention, it should be fixed in 4256bf85362de79bcf7aa617acfd3fdb322fc9c1. So, make sure you pull the version from Github for your project. Unfortunately, this issue has occured before, with other attributes. It is just not documented wether it could be null, so sometimes there are exceptions, just like the one you found. Thank you for contributing!


Fail pipenv install with latest Pipfile.lock

Hello,
I am trying to Getting started in README.md,  but it fails on pipenv install --dev in the local setup section.

Excerpted error text

$ pipenv install --dev
Installing dependencies from Pipfile.lock (6b50dc)...
[pipenv.exceptions.InstallError]: ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.
[pipenv.exceptions.InstallError]:     debugpy==1.6.3 from https://files.pythonhosted.org/packages/3e/00/9616d339b132f80d0772c28e1119cec24a54d0b3a13a63468af23729253f/debugpy-1.6.3-cp37-cp37m-macosx_10_15_x86_64.whl (from -r /var/folders/xv/5blcbqq93s3_xj7fg4lgphzh0000gp/T/pipenv-u4zqf4f8-requirements/pipenv-v7l_uhi_-hashed-reqs.txt (line 9)):
[pipenv.exceptions.InstallError]:         Expected sha256 c4cd6f37e3c168080d61d698390dfe2cd9e74ebf80b448069822a15dadcda57d
[pipenv.exceptions.InstallError]:         Expected     or cca23cb6161ac89698d629d892520327dd1be9321c0960e610bbcb807232b45d
[pipenv.exceptions.InstallError]:         Expected     or daadab4403427abd090eccb38d8901afd8b393e01fd243048fab3f1d7132abb4
[pipenv.exceptions.InstallError]:              Got        d5c814596a170a0a58fa6fad74947e30bfd7e192a5d2d7bd6a12156c2899e13a
 Package installation failed...

The Python version is 3.7.12 and pipenv version is 2022.11.11.
I was able to install without problems with the version before this commit.
Is there some problem with the Pipfile.lock in the master branch? Or am I doing something wrong?

Hi @ysumiya
I tried the same on the main branch, and I had the same issue. I suggest you use the Pipfile and Pipfile.lock from before the commit that you have linked.
I will work on a fix for this

I have the same problem. I deleted the lock file and tried recreate it by just pipenv install --dev, but the pipfile dependencies are not resolvable.

specifically I tried this:

changed the python version to 3.7.12 in the pipfile (because otherwise with the default it tries to use the latest 3.7 version which is 3.7.15, and this doesn't work with the deps, but as it will turn out, 3.7.12 has the same problem.):

python_version = "3.7.12"

luegnix-gcp on  main [!] via 🐍 v3.7.12 (fleece-py3.9) on ☁  (eu-central-1) on ☁<EMAIL_ADDRESS>took 31s
❯ pipenv install --dev
Creating a virtualenv for this project...
Pipfile: /Users/hans.rauer/Repos/luegnix-gcp/Pipfile
Using /Users/hans.rauer/.pyenv/versions/3.7.12/bin/python3.7m (3.7.12) to create virtualenv...
⠴ Creating virtual environment...created virtual environment CPython3.7.12.final.0-64 in 345ms
  creator CPython3Posix(dest=/Users/hans.rauer/Repos/luegnix-gcp/.venv, clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/hans.rauer/Library/Application Support/virtualenv)
    added seed packages: pip==22.3.1, setuptools==65.6.3, wheel==0.38.4
  activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

✔ Successfully created virtual environment!
Virtualenv location: /Users/hans.rauer/Repos/luegnix-gcp/.venv
Pipfile.lock not found, creating...
Locking [packages] dependencies...
Locking [dev-packages] dependencies...
⠧ Resolving dependencies...
CRITICAL:pipenv.patched.pip._internal.resolution.resolvelib.factory:Cannot install -r /var/folders/cr/7xlfmk256y94z__1mlkctzmr0000gn/T/pipenvy30zg361requirements/pipenv-t13ut6na-constraints.txt (line 8) because these package versions have conflicting dependencies.
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/resolver.py", line 812, in _main
[ResolutionFailure]:       pre, clear, verbose, system, write, requirements_dir, packages, category
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/resolver.py", line 767, in resolve_packages
[ResolutionFailure]:       requirements_dir=requirements_dir,
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/resolver.py", line 747, in resolve
[ResolutionFailure]:       req_dir=requirements_dir,
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/utils/resolver.py", line 1109, in resolve_deps
[ResolutionFailure]:       req_dir=req_dir,
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/utils/resolver.py", line 899, in actually_resolve_deps
[ResolutionFailure]:       resolver.resolve()
[ResolutionFailure]:   File "/Users/hans.rauer/.pyenv/versions/3.7.12/lib/python3.7/site-packages/pipenv/utils/resolver.py", line 687, in resolve
[ResolutionFailure]:       raise ResolutionFailure(message=str(e))
[pipenv.exceptions.ResolutionFailure]: Warning: Your dependencies could not be resolved. You likely have a mismatch in your sub-dependencies.
  You can use $ pipenv install --skip-lock to bypass this mechanism, then run $ pipenv graph to inspect the situation.
  Hint: try $ pipenv lock --pre if it is a pre-release dependency.
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

can't seem to find the reason for the resolution failure, please advice, would love to use vertex more, but I really want to see it in action first

@rauerhans please could you try out this branch and see if it resolves your issue? https://github.com/browningjp-datatonic/vertex-pipelines-end-to-end-samples/tree/fix/dependencies_broken

so I misread that first comment actually, I thought the mentioned commit was the one that should be working, but he referred to versions BEFORE that one. So what I ended up doing is revert the pipfile and pipfile.lock to the init commit's version, this one:
https://github.com/GoogleCloudPlatform/vertex-pipelines-end-to-end-samples/commit/d5db708bf74a05e5c1bc141a9df23f3a05a8ca44
This will resolve the dependencies and create the .venv successfully


How To Get previous Candle analysis

I'm trying to get a previous candle analysis to get the first MACD crosses Up signal

interested to know if it is possible to get historical analysis at timestamp too.


Travis CI build should be updated to include Node 8

Node.js 6 is in EOL.
8 should possibly be considered the new minimum.

If it causes any inconvenience, it shouldn't be a problem to bump. Otherwise I don't see a reason to - might as well keep it, maybe someone out there is using it. What do you think?

On second thought, I agree that it might be good to leave in, just to maintain compatibility for older projects. Even if people shouldn't be encouraged to use node 6 for new projects at this time, it's fair to say that the concept of security EOL doesn't really apply to a frontend build system.
I would still like to update the travisfile to include versions 8, 10, and 11

Sounds good to me. Though perhaps leave 11 out -- according to this it is not supported any more. So the matrix will be

minimal: 6
active LTSs: 8, 10, 12
latest: 12 (soon 13, according to the link)


Not tracking on Mac m1

Supposed behavior: Track XCode
Actual behavior: does not track XCode
Environment: XCode
OS: Mac

Platform: arm64

Logs:

it's weird that the result of time tracking is showing tomorrow. before it was a live time tracking

I tested the app on an M1 mac. Unfortunately, I couldn't reproduce your issue yet.
Please try the following:

Make sure you have only one WakaTime.app installed on your system and that it is located in /Applications/WakaTime.app.
If currently running, quit the WakaTime desktop app.
In the "System Settings.app", go to "Privacy & Security" -> "Accessibility".
Remove the "WakaTime" entry by clicking on it and then clicking the minus button underneath the list box.
Restart the WakaTime desktop app.
You will get a notification asking you to open the System Settings app and grant the accessibility permission. Click on that and toggle the switch of the  "WakaTime" entry to the "on" position.
Open an Xcode project and start typing to check if the data is received by the WakaTime Dashboard.
Additionally, please make sure that the API key is set correctly in the "Settings" window of the WakaTime desktop app.

If this still doesn't help, please let me know.
As a side note: I am not sure if the logs you posted are connected to WakaTime. Could you explain why you believe those are relevant to the issue you are experiencing?

Closing due to inactivity.

Fixed with #208.


feat(deps): upgrade compiler dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-compiler-dependencies-1.x" workflow

⚪ Backport skipped
The pull request was not backported as there were no branches to backport to. If this is a mistake, please apply the desired version labels or run the backport tool manually.
Manual backport
To create the backport manually run:
backport --pr 1672

Questions ?
Please refer to the Backport tool documentation


[#154590961] Display organisation users

What
Part of the application is to display organisation users to the rest of the team. We're delivering that with this PR.
The requests to the API are slower than I'd like them to. We'll need to come up with some sort of caching eventually.
How to review
THIS PR CONSISTS #12 AS WELL... You may wish to look at the other one first.

Code review
Run the application
Visit/Navigate /users/{ORG_GUID}
See that it roughly matches designs (roughly, as new Design System is slightly different to the prototype Stephen has used :( )
Attempt at changing your org roles and see them change after refresh

Looking good :) It is all starting to take shape.
I got it started in my dev using the following:
uaa client update paas-admin --redirect_uri 'http://localhost:3000/auth/login/callback'

#!/bin/bash

set -eu

export API_URL="https://api.${DEPLOY_ENV}.dev.cloudpipeline.digital"
export OAUTH_AUTHORIZATION_URL="https://login.$DEPLOY_ENV.dev.cloudpipeline.digital/oauth/authorize" \
export OAUTH_TOKEN_URL="https://uaa.$DEPLOY_ENV.dev.cloudpipeline.digital/oauth/token" \
export OAUTH_CLIENT_ID="paas-admin" \
export OAUTH_CLIENT_SECRET
OAUTH_CLIENT_SECRET=$(\
  /Users/henryknott/paas/repositories/paas-bootstrap/concourse/scripts/val_from_yaml.rb \
  secrets_uaa_clients_paas_admin_secret \
  <(aws s3 cp "s3://gds-paas-${DEPLOY_ENV}-state/cf-secrets.yml" -) \
)
export SERVER_ROOT_URL="http://localhost:3000"
npm start

It would be nice in future to have some kind of helper script for this.


Rebuild the image on docker-hub

Hello,
could you rebuild the image more often, so that the latest patches are in? Currently this sits on PHP 7.1.4, the PHP-FPM base image is on 7.1.10 now.

https://github.com/laradock/laradock/issues/2004


way to override grid view?

Laravel Version: 5.8.33
PHP Version: 7.3.8
Laravel-admin: 1.7

Description:
is it possible to overwrite the empty-grid.blade.php.
The height of original  empty-grid is large in my case and occupy space unnecessarily.
I can modify it directly through vendor\encore\laravel-admin\resources\views\grid\empty-grid.blade.php but look for more reasonable solutions in case for possible future modification.
The style I want to modify is the padding: 100px and width="128" height="128"
Below is the code from that file:

    visibleColumns()->count() }}" style="padding: 100px;text-align: center;color: #999999">
        <svg t="1562312016538" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
             p-id="2076" width="128" height="128" style="fill: #e9e9e9;">
            <path d="M512.8 198.5c12.2 0 22-9.8 22-22v-90c0-12.2-9.8-22-22-22s-22 9.8-22 22v90c0 12.2 9.9 22 22 22zM307 247.8c8.6 8.6 22.5 8.6 31.1 0 8.6-8.6 8.6-22.5 0-31.1L274.5 153c-8.6-8.6-22.5-8.6-31.1 0-8.6 8.6-8.6 22.5 0 31.1l63.6 63.7zM683.9 247.8c8.6 8.6 22.5 8.6 31.1 0l63.6-63.6c8.6-8.6 8.6-22.5 0-31.1-8.6-8.6-22.5-8.6-31.1 0l-63.6 63.6c-8.6 8.6-8.6 22.5 0 31.1zM927 679.9l-53.9-234.2c-2.8-9.9-4.9-20-6.9-30.1-3.7-18.2-19.9-31.9-39.2-31.9H197c-19.9 0-36.4 14.5-39.5 33.5-1 6.3-2.2 12.5-3.9 18.7L97 679.9v239.6c0 22.1 17.9 40 40 40h750c22.1 0 40-17.9 40-40V679.9z m-315-40c0 55.2-44.8 100-100 100s-100-44.8-100-100H149.6l42.5-193.3c2.4-8.5 3.8-16.7 4.8-22.9h630c2.2 11 4.5 21.8 7.6 32.7l39.8 183.5H612z"
                  p-id="2077"></path>
        </svg>

In filevendor/encore/laravel-admin/resources/views/grid/table.blade.php:

            @if($grid->rows()->isEmpty() && $grid->showDefineEmptyPage())
                @include('admin::grid.empty-grid')
            @endif

You may use $grid->setView('your/view/path') to overwrite the grid view

You may use $grid->setView('your/view/path') to overwrite the grid view

Does it mean I have to overwrite the entire table.blade.php since  since empty-grid` appears conditionally in table view.

You may use $grid->setView('your/view/path') to overwrite the grid view

Does it mean I have to overwrite empty-grid.blade.php as well as table.blade.php  since empty-grid appears conditionally in table view.

Yes


BUG: Home and End keys stopped working

The keys stopped working after installing this plugin. After user this other plugin instead they work fine. Do this plugin automatically set remaps? If so, I would let the other add them themselves instead of pre-define them.

There are no key maps. You have to do it manually.
So test your problem with a clean Vim configuration. Isolate what is causing the problem. Probably its your setup. If not, report your findings here.


feat: (feat) admin can change the order of links, (fix) when editing a link, updates it in the categoryList

what the hell..
fixing this


Workaround for comment(s) on multiple records for the same name/type

Comment(s) on multiple records for the same name/type throw an error (500 in the webinterface).
In the logging:
Traceback (most recent call last):
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/app.py", line 2446, in wsgi_app
     response = self.full_dispatch_request()
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/app.py", line 1951, in full_dispatch_request
     rv = self.handle_user_exception(e)
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/app.py", line 1820, in handle_user_exception
     reraise(exc_type, exc_value, tb)
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/_compat.py", line 39, in reraise
     raise value
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/app.py", line 1949, in full_dispatch_request
     rv = self.dispatch_request()
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask/app.py", line 1935, in dispatch_request
     return self.view_functions[rule.endpoint](**req.view_args)
   File "/opt/pdnsadm/py-pdns-adm/lib/python3.6/site-packages/flask_login/utils.py", line 261, in decorated_view
     return func(*args, **kwargs)
   File "/opt/pdnsadm/powerdns-admin/powerdnsadmin/decorators.py", line 60, in decorated_function
     return f(*args, **kwargs)
   File "/opt/pdnsadm/powerdns-admin/powerdnsadmin/routes/domain.py", line 109, in domain
     if r['comments'] else '',
 IndexError: list index out of range

In the workaround the 500 is prevented and comments are shown on best-effort:

If no comment(s) -> ''
If comment for index (whatever relation there may be), the comment for that index
If comment but not for this index -> comment for index=0

Wrong branch


@alloy => Add a couple of steps to Installation

A couple steps I needed to do to get this setup.

Good stuff.

@mzikherman Oops, I missed a missing capital in ‘Cocoapods’. Pushed a fix https://github.com/artsy/emission/commit/946534ed48913ad195daf5b18ba472f3ccd1fca1

👻


Keep the history in cache

The products in the history are reloaded each time. They should be cached on the phone.

I will work on this .

It's part of the GSOC proposals >> https://en.wiki.openfoodfacts.org/Student_projects/GSOC/Proposals#Offline_mode

Shall this issue be left for GSoC or should I work on it ?

Let's focus on other more urgent issues right now, like using the lite API, or correcting the bugs filed yesterday


All jobs listing

Applicant view has separate tab to view all open jobs and can view description of each

Managers can now track his own job listing under 'My Listings' as well as look at 'All jobs' that have been posted by other managers. Applicants can now track their applications in a better view. They have different tabs for the jobs they have applied to and different tab for all the jobs that are listed on WolfJobs by different NCSU recruiters.


Time difference between two calls on franka_ros_control.

Dear Franka Emika Team,
First thanks a lot for having your library open-source, and for providing a ros_control interface. This is very much appreciated.
We tested our control architecture in one Panda robot acquired in 2019. We found some important time variation when being called by the update  function of the controller_manager in your franka_ros_control node. In average we found a very good 0.001 ms but with numerous times where the time difference was 0.02 ms or 5ms.
Reading your code, i did a fork and set the scheduler to SCHED_FIFO to make sure that franka_control_node was running in real-time  with the max priority but it changed nothing.
Could you confirm that this is supposed to be normal and we need to write our controller to take into account this time variation ?
You can find the tests I used here.
It takes a sliding windows of 2000 time diff measurements and average them. In addition every 2000 iterations it detects the min and max over this window. The output is the following:
[ INFO] [1676304961.904771333]: franka_control: 0.000023 0.001004 0.005073
[ INFO] [1676304963.920705591]: franka_control: 0.000022 0.001004 0.005178
[ INFO] [1676304965.931665732]: franka_control: 0.000022 0.001004 0.004637
[ INFO] [1676304967.940738049]: franka_control: 0.000024 0.001005 0.004999
[ INFO] [1676304969.944624115]: franka_control: 0.000021 0.001004 0.004144
[ INFO] [1676304971.949516294]: franka_control: 0.000023 0.001004 0.004005
[ INFO] [1676304973.968455524]: franka_control: 0.000019 0.001004 0.005745
[ INFO] [1676304975.981437831]: franka_control: 0.000022 0.001004 0.005090
[ INFO] [1676304977.988400271]: franka_control: 0.000023 0.001004 0.004166
[ INFO] [1676304979.996327975]: franka_control: 0.000027 0.001004 0.005015
[ INFO] [1676304982.005296231]: franka_control: 0.000025 0.001004 0.005172
[ INFO] [1676304984.021287036]: franka_control: 0.000022 0.001004 0.005102
[ INFO] [1676304986.031307725]: franka_control: 0.000022 0.001005 0.004076
[ INFO] [1676304988.047156812]: franka_control: 0.000021 0.001004 0.005750
[ INFO] [1676304990.050114736]: franka_control: 0.000022 0.001004 0.004412
[ INFO] [1676304992.057078162]: franka_control: 0.000032 0.001004 0.005276
[ INFO] [1676304994.075079216]: franka_control: 0.000019 0.001004 0.005080
[ INFO] [1676304996.082006002]: franka_control: 0.000021 0.001004 0.004327
[ INFO] [1676304998.088944916]: franka_control: 0.000019 0.001004 0.004154
[ INFO] [1676305000.101991178]: franka_control: 0.000019 0.001004 0.005404
[ INFO] [1676305002.107921281]: franka_control: 0.000019 0.001004 0.004094
[ INFO] [1676305004.110821548]: franka_control: 0.000024 0.001004 0.003635
[ INFO] [1676305006.118746446]: franka_control: 0.000018 0.001004 0.004134
[ INFO] [1676305008.122717050]: franka_control: 0.000022 0.001004 0.003250
[ INFO] [1676305010.125688098]: franka_control: 0.000022 0.001004 0.003347

To avoid any issue the test was done using moveit and the JTC controller to avoid mixing problems with our control architecture.

Reminded me of https://github.com/frankaemika/libfranka/issues/120.

Thanks @gavanderhoorn for pointing out this issue.  I got the same graphs than  frankaemika/libfranka#120 with another tool, and a student from Prague found the same with yet another test.
I suspect that the underlying protocol with the robot is the root of the problem.

Follow up: one of our colleague, and this is aligned with some feedback on other issues, that the network card we are using may not be handling the UDP packets properly. We may need to have a NIC which is compatible with Ethercat.
I will have a look and provides feedback.

Unless FCI communication is based on ethercat, I'm unsure how "ethercat compatible" NICs (not sure what that means exactly) would help.
IIRC and IIUC, FCI uses a custom UDP protocol.

As far as I understood it this link gives a possible explanation:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/performance_tuning_guide/network-nic-offloads
"Offloads should be used on high speed systems that transmit or receive large amounts of data and favor throughput over latency. Because using offloads greatly increases the capacity of the driver queue, latency can become an issue. An example of this would be a system transferring large amounts of data using large packet sizes, but is also running lots of interactive applications. Because interactive applications send small packets at timed intervals there is a very real risk that those packets may become 'trapped' in the buffer while larger packets in front of them are processed, causing unacceptable latency. "

And the implication is "NICs compatible with ethercat" don't use off-loading?
Tuning your network stack could certainly help, provided the other side (ie: the control box) uses a similarly tuned setup of course. That I wouldn't know.
But the general assertion that "ethercat compatible NICs" would be better is not necessarily one you can make, I believe.

Isn't this more about the fact the timing of network packets doesn't appear to be deterministic (or at least: show a larger jitter than expected)?
Would the FR3 improvements be "back-portable" to the Panda?

Some feedback:

We changed the network cards connected to the robot from a Broadcomm to an Intel. The later is having a better driver than the former under Linux. But this changed nothing in terms of behaviors. (Thus I did not provide the exact NIC references)
We tried the following settings for the NIC offloads:

ethtool -K eth4 tso off
ethtool -K eth4 gro off
ethtool -K eth4 gso off
ethtool -K eth4 lro off
ethtool -K eth4 ufo off
ethtool -K eth4 sg off

with eth4 the device to which the robot is connected. No impact.

@marcbone, we finally changed our controller to take into account the time variation and that works. Good to know that this is fixed on your new robot, but for now we have now plan to buy another one. I will therefore close the issue.
@gavanderhoorn I agree that the "ethercat compatible NICs" term was probably nothing more than a hint from my colleague to have a look to package management and is not a necessity.

@gavanderhoorn I am sorry, these improvements will probably never be backported. Even though from a customers view there is not much difference between Panda and FR3, there are lots of changes under the hood, so we cannot easily offer an update.
@olivier-stasse I am glad that you were still able to make it work. I would also be interested in what your application is  (if it is not confidential), that this was a problem. It helps us to better understand what you guys need. Also I am always interested on what you work on, especially if you push the robot to its limits :sweat_smile:

@marcbone In this case we want to deploy a framework that plan and execute tasks by exploring a graph of constraints Mirabel, TRO, 2022. We applied it to the humanoid robot TALOS (https://www.youtube.com/watch?v=lWKJoFPZVLY) at 1KHz, the mobile manipulator Tiago (https://www.youtube.com/watch?v=yew7CZMcsyc) at 250 KHz, and a UR-10 (https://peertube.laas.fr/w/hYitAMe96DP9iPuBjSYCc8) at 250 Hz. ros_control is key to lower the transfer from one platform to another. Each of them is using a RT_PREEMPT patch and we did not run into such time differences.


"Connect Secure Entity Id" value is blank

Following this tutorial, in the "Steps to create a SAML Auth Server:", in my deployment the "Connect Secure Entity Id" value is blank, and cannot be edited (even when setting to Manual mode).

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

ID: 6b912673-6f7b-881b-cd6a-9435019cef79
Version Independent ID: 6b66e430-db5e-0d3e-a74f-3097af84c4e0
Content: Tutorial: Azure Active Directory single sign-on (SSO) integration with Pulse Secure PCS
Content Source: articles/active-directory/saas-apps/pulse-secure-pcs-tutorial.md
Service: active-directory
Sub-service: saas-app-tutorial
GitHub Login: @jeevansd
Microsoft Alias: jeedes

@Simon999
Thanks for your feedback! I have assigned this issue to the author who will investigate and update as appropriate.


Rules not working & Item 'in hand'

I play on Hypixel, their skywars are very fun and I wanted to get Inventory-Tweaks to help me excel at the game. However, I wrote my rules as follows ;
D1 sword
D2 bow
D3 edibleFood
D4 enderPearl
D5 bottleOEnchanting
D6 potion
D7 positivePotion
D8 stone
D9 pickaxe
~~ 95% of the time, this does not work properly, I'll have a pick in slot D5, a snowball in slot D8, for example.. Or even an axe in D1, not only that, but if I have an item in hand (such as my D1, with my hand holding that item) and i hit that 'R' button; that item will either, not move, OR it'll be under my cursor when I open my inventory.
My settings for the tweak are as follows.
Repair-Friendly Refill: Off
Shortcuts: On
Auto-Refill: On
Middle Click: On
{MORE OPTIONS}
Enable sound: On
Auto-Equip Armour: On
Sort On Pickup: On
Chest buttons: On
Server Item Movement: On
~~ Thank you for taking the time to read my issue, have a wonderful day <3

Almost all the time these are issues with the server being told to disallow movements that appear to be automated.


Refresh README

This PR:

Refreshes the "overview" section and links to the appropriate documentation containing details
Removes the "Configuring Runtimes for Pipeline execution" section because it's TMI
Refreshes the Elyra main screen screen image

Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

Related to #1102 but doesn't address it completely.


Allow PrefixMessagesWithNick on Telegram

This makes the PrefixMessagesWithNick setting work for messages relayed
to Telegram, similar to how they work for messages relayed to mattermost
(it is in fact copied from the mattermost bridge implementation).
I believe this logic should be moved up the stack and not left to
individual bridge implementations, but adding it here like this made it
quickly work for my use-case (I don't have the time to dig in deeper and
refactor everything).

Thanks, but RemoteNickFormat="<{NICK}> " should just work. (this logic is up the stack).
Could you let me know if this works for you ?
PrefixMessagesWithNick is specially for mattermost and slack where there is a webhook username override option and you still want to prefix the messages with the nick.

That's odd. I'll take another look at it somewhere over the next few days when I have time again, but, I dove into the code and lifted that from elsewhere specifically because RemoteNickFormat="{NICK} says: " wasn't working for me.
My config (which failed to work as expected without the changes on this PR) consists of:
# Note: Some sensitive items have been replaced, but this config is otherwise identical to what is really used

[mattermost]
[mattermost.myteamname]
useAPI=true
Server="mattermost.nick.groenen.me"
Team="myteamname"
Login="secret"
Password="verysecret"
PrefixMessagesWithNick=true
RemoteNickFormat="{NICK} says: "

[telegram]
[telegram.myteamname]
Token="verysecret"
PrefixMessagesWithNick=true
RemoteNickFormat="{NICK} says: "

[[gateway]]
enable=true

    [[gateway.inout]]
    account="telegram.myteamname"
    channel="-14488271"

    [[gateway.inout]]
    account="mattermost.myteamname"
    channel="telegrams"

For mattermost.myteamname the PrefixMessagesWithNick=true shouldn't be necessary because you have useAPI=true. You should see the nick double with that config.
The telegram config looks fine, should work. I don't have a telegram account, but I've got a bot token to test, and I see the username getting echoed with the modification.
Could you run with -debug ?
You should see something like this:
DEBU[2016-11-25T23:48:16+01:00] Sending config.Message{Text:"a", Channel:"-123456789123", Username:"wim", Avatar:"", Account:"irc.test", Event:""} from irc.test (#telegramtest2) to telegram.test (-123456789123)
DEBU[2016-11-25T23:48:16+01:00] Receiving config.Message{Text:"a", Channel:"-123456789123", Username:"wim says: ", Avatar:"", Account:"irc.test", Event:""}  module=telegram

Noticed a flaw that you have never took the username variable into use. Go does make an error on unused local ones, but not struct ones :stuck_out_tongue:

@42wim said:

For mattermost.myteamname the PrefixMessagesWithNick=true shouldn't be necessary because you have useAPI=true. You should see the nick double with that config.

I actually don't. It's not mimicking the user on Telegram, just using the username of the account it's associated with (telegram in my case):

@ishitatsuyuki's comment likely explains that though:

Noticed a flaw that you have never took the username variable into use. Go does make an error on unused local ones, but not struct ones

As for the rest of the issue, I still haven't had the time to properly sit down and try some variations, I hope to be able to have the time for it soon.

#102, this was simply a bug, and doesn't require an option addition.


define axis/t= not defining end correctly

Reported by mclean on 18 Jul 2002 21:16 UTC
define axis/t=15-jan-1980:15-dec-2004:1/units=months t_mon
results in an axis from 15-jan-1980 to 15-jan-2005, one month too long
define axis/t=15-jan-1981:15-dec-2004:1/units=months t_mon
works fine
using start dates before 1981 duplicates the problem
Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/414

Comment by<EMAIL_ADDRESS>on 26 Jul 2002 18:02 UTC
More comments from Ansley: Seems to have to do with interaction of the
definition of "months" and whether there are leap-years contained in the
interval.

Comment by<EMAIL_ADDRESS>on 5 Nov 2003 22:39 UTC
reassign to Ansley


"Fields" query param is missing from pagination links

When paginating a JSON:API URL with a fields parameter, the pagination links inside next and prev are missing the fields parameter.
I know the JSON:API spec on pagination doesn't have anything to say on the subject of whether or not this is correct, but it sure is an inconvenience! It would be nice if the next/prev URLs can be used as-is in a loop, instead of the developer manually having to repeat the fields parameter.

You are right - the fields value should be in the pagination links as I agree it should be possible to just use those links to get another page without having to modify anything.
I'm surprised this isn't work, as I thought it was! So will need to investigate.

Confirmed this is a bug, been able to reproduce it in a test. Still not sure why it's happening, so will need to dig some more.

Fixed in 2.1.2. To upgrade:
composer require laravel-json-api/laravel --no-update
composer up laravel-json-api/*

That is awesome! Thanks so much. 🙂


Doc Feedback: wrong userstore type in sample configuration for each profile

Location : https://apim.docs.wso2.com/en/3.1.0/install-and-setup/setup/distributed-deployment/deploying-wso2-api-m-in-a-distributed-setup/
The database type for each sample configuration file under each node type is given as
[user_store]
type = "database"

This is wrong and if you start the KM with the above, it will throw the error,
Caused by: org.h2.jdbc.JdbcBatchUpdateException: NULL not allowed for column "UM_USER_ID"; SQL statement:
INSERT INTO UM_USER_ROLE (UM_USER_ID, UM_ROLE_ID, UM_TENANT_ID) VALUES ((SELECT UM_ID FROM UM_USER WHERE LOWER(UM_USER_NAME)=LOWER(?) AND UM_TENANT_ID=?),(SELECT UM_ID FROM UM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?) [23502-199]Caused by: org.h2.jdbc.JdbcBatchUpdateException: NULL not allowed for column "UM_USER_ID"; SQL statement:
INSERT INTO UM_USER_ROLE (UM_USER_ID, UM_ROLE_ID, UM_TENANT_ID) VALUES ((SELECT UM_ID FROM UM_USER WHERE LOWER(UM_USER_NAME)=LOWER(?) AND UM_TENANT_ID=?),(SELECT UM_ID FROM UM_ROLE WHERE UM_ROLE_NAME=? AND UM_TENANT_ID=?), ?) [23502-199]

instead of above, the sample deployment.toml should be corrected as
[user_store]
type = "database_unique_id"

@TheRasanjana is working on this

Fixed


phones gyroscope isn't being used

https://cdn.pannellum.org/2.5/pannellum.htm#panorama=//terrafrost.sfo2.digitaloceanspaces.com/unnamed02/GS__0113.JPG&autoRotate=10&autoLoad=true
When I visit that URL on my phone (Samsung Galaxy S21 Ultra) moving my phone doesn't auto move the image around.
The Gyroscope interface of the Sensor API could be used as could the DeviceOrientationEvent / DeviceMotionEvent.
Is there a way to tell Pannellum to use the gyroscope or does that functionality need to be built out?
Thanks!

Are you tapping the device orientation control button? It's the compass-like button that should appear under the full screen button (which is under the zoom buttons).

Hm, the gyroscope-button doesn't appear for me either (iframe permissions thing?).

The device orientation control works fine for me on the linked example in both Firefox and Chrome on my Android phone.

@mpetroff: Also when embedded as iframe?

It should work in a same-origin <iframe>. However, browsers no longer allow DeviceMotionEvent / DeviceOrientationEvent access from a cross-origin <iframe>. Fixing such support will involve switching to the newer Sensor APIs, which allow for permissions to be specified on the <iframe>.

@mpetroff: This would be great! Could this be added for modern browsers?

Could this be added for modern browsers?

I just opened #971 to track this.


Tutorial for Posterior Predictive Check

As a quick and easy inference diagnosis, a tutorial showing how the existing sbi plotting capabilities can be used to perform a Posterior Predictive Check (PPC).

Is there any formal reference for a PPC I should be using ?

I wonder if shifting x_o in the end instead of simulating a bad x_PP is not confusing, I can change it easily if it is the case.

Thanks a lot!


'find' method is not supporting in IE 11

Hi,
Visavail plugin url (http://phatduino.com.w010a51b.kasserver.com/visavail/example.htm) is working in IE 11, but when I am using the Visavail libraries (resources and vendors) in my project folder and trying to load visavail chart, it is saying that 'find' method is not supported.
In both the cases the same visavail.js library is used.
Can anyone help in this regard?
Regards,
Shitikantha

Hi,
IE doesn’t support find method. Try using filter() method in place of
find().
I have also  faced  the similar issue.
Thanks & Regards,
Vikram
On Wed, 11 Oct 2017 at 12:56 PM, snsnanda<EMAIL_ADDRESS>wrote:

Hi,
Visavail plugin url (
http://phatduino.com.w010a51b.kasserver.com/visavail/example.htm) is
working in IE 11, but when I am using the Visavail libraries (resources and
vendors) in my project folder and trying to load visavail chart, it is
saying that 'find' method is not supported.
In both the cases the same visavail.js library is used.
Can anyone help in this regard?
Regards,
Shitikantha
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/flrs/visavail/issues/19, or mute the thread
https://github.com/notifications/unsubscribe-auth/AdrBSWrdtDcvT96zyBXmBIfiGhyTpY3vks5srG2IgaJpZM4P1Blc
.

--
Sent from MetroMail

On Using filter(), the data in the dataset is not reflecting, instead black rectangular bars are populating.
Did filter() function work for you?
Regards,
Shitikantha

Thanks @snsnanda and @vikrambansod for figuring out that find() is not supported in IE (see here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find ). I did not realize this before.
@snsnanda: Which example is it that shows the black bars after changing to filter()?
@vikrambansod: Do you have any experiences about how filter() is supported across browsers? I feel we might be on track here for an easy fix.

Hi,
Yes, filter() method is supported by all the major browsers. Please refer
the following link.
https://www.w3schools.com/jsreF/jsref_filter.asp
@snsnanda https://github.com/snsnanda: I guess you are using custom
categories to show the different categories with  different color. When you
replace the find method with the Filter method the error is gone but it
wont able to get the color value from the array hence rectangles are drawn
with the default color black.
Code causing issue
var series = dataset.find(
function(series) {
return series.disp_data.indexOf(d) >= 0;
}
);
*alternate solution *
var series = dataset.filter(
function (series) {
return series.disp_data.indexOf(d) >= 0;
}
)[0];
Regards,
Vikram.
On Wed, Oct 11, 2017 at 7:14 PM, Florian Roscheck<EMAIL_ADDRESS>wrote:

Thanks @snsnanda https://github.com/snsnanda and @vikrambansod
https://github.com/vikrambansod for figuring out that find() is not
supported in IE (see here: https://developer.mozilla.org/
en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find ). I did
not realize this before.
@snsnanda https://github.com/snsnanda: Which example is it that shows
the black bars after changing to filter()?
@vikrambansod https://github.com/vikrambansod: Do you have any
experiences about how filter() is supported across browsers? I feel we
might be on track here for an easy fix.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/flrs/visavail/issues/19#issuecomment-335814261, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AdrBSZo1d13edlLb_0BISplXo65DHeRlks5srMY8gaJpZM4P1Blc
.

Hi Vikram,
Thanks a lot for the workaround...It really worked in IE
Regards,
Shitikantha

Alright, just fixed this. Thanks again for your input @snsnanda and @vikrambansod!


Feature Request: Self Documenting API (OpenAPI / Swagger)

It would be great if the /api route could have a /doc/api/ version which self documented using Swagger / OpenAPI.
This would be useful for both coming back to projects after a while and also testing whilst building out a frontend. It has also become something of a standard for APIs to include this feature at least as an add-on, if not a core feature.
There are golang implementations available which could be used.

This was partially discused in https://github.com/pocketbase/pocketbase/discussions/209#discussioncomment-3217144.
I'm not planning to work on this because I don't think it is worth investing the time working on that. We have autogenerated documentation with examples in the Admin UI if you click on the "Api preview button" (it will change in the near future because collection will have an auth type and we will also add the auth endpoints to it). Currently it is per-collection basis, but we can provide in the future a public endpoint that will list/generate a similar documentation for all collections. But I'm against OpenAPI.


Remove node fetch

@noamokman wdyt?

@ovadiababayev can you describe a bit what is the problem you faced?

I can't use it on client side app, since we have the build-in browser fetch and it doesn't compile (classes are different)

@ovadiababayev we actually only use it for types and tests, it shouldn't be a problem for you.
Without the types the package loses a lot of type data.
I use it in a frontend app and it worked, maybe there is an issue with the wiring or build process

@noamokman It works with version 2.2.1 but updating to version 4.0.2 breaks it.


[Documentation] Not Able to Find An Example for Using PaginatedQuery to List Devices with Pagination

I am trying to list the devices using the SDK function (something like query = cbc.select(Device).where('1') ) but I would like to do it with pagination. After going through all the documentation and examples, I am not able to find the good example to know how to use the PaginatedQuery class to get devices or any other entity.
Questions

How to know what is the total number of items when querying using pagination?
How to loop over the PaginatedQuery or items to get all the items?
How to know where to stop the loop?

Here is what I am trying
cbc = CBCloudAPI(url='https://xxx.yyy', token='zzz, org_key='aaa', ssl_verify=True)
query = cb.select(Device).where('1')
paginated_query = PaginatedQuery(Device, cb, query).batch_size(5)

print("len paginated : ", len(paginated_query))
print("item : ", paginated_query.getitem(1))

Errors
Traceback (most recent call last):
  File "src/cbc_harness.py", line 20, in <module>
    print("len paginated : ", len(paginated_query))
  File "/Users/****/python3.8/site-packages/cbc_sdk/base.py", line 1309, in __len__
    return self._count()
AttributeError: 'PaginatedQuery' object has no attribute '_count'

OR

Traceback (most recent call last):
  File "src/cbc_harness.py", line 20, in <module>
    print("len paginated : ", paginated_query.getitem(1))
AttributeError: 'PaginatedQuery' object has no attribute 'getitem'

I can tell you for certain that PaginatedQuery does not work in the way that you are trying to use it.  It mostly seems to exist as a base class for other queries to use to provide pagination support.  However, DeviceSearchQuery (which is the query you're getting when you call cb.select(Device)) is not one of those.
We'll have to deal with this in a separate code update, and I am making that note on our internal ticket.

Upon further review, it looks like this code is not correct. PaginatedQuery should not be used directly under
any circumstances; it is a base class providing functionality to other query classes.
However, this is not something you need to worry about; most queries will automatically paginate themselves by
submitting multiple requests to the server, to avoid timing out on lengthy responses.
In the case of Device queries, you can easily get all the information you want. The total number of items may be
obtained by getting the length of the query:
>>> cbc = CBCloudAPI(profile='sample')
>>> query = cbc.select(Device)
>>> len(query)
1339

You can loop over a query using the standard for loop construct:
>>> cbc = CBCloudAPI(profile='sample')
>>> query = cbc.select(Device)
>>> for device in query:
...     do_something_with_device(device)
...

And you can exit this loop whenever necessary:
>>> cbc = CBCloudAPI(profile='sample')
>>> query = cbc.select(Device)
>>> for device in query:
...     need_to_stop = do_something_with_device(device)
...     if need_to_stop:
...         break
...

If you want to deal with only segments of the total query at once, you can use the list slice syntax on the query to
get only that segment of the values:
>>> cbc = CBCloudAPI(profile='sample')
>>> query = cbc.select(Device)
>>> k = query[100:200]  # get 100 elements beginning at index 100
>>> len(k)
100

Or you can bring the entire list into memory at once:
>>> cbc = CBCloudAPI(profile='sample')
>>> query = cbc.select(Device)
>>> devices = list(query)
>>> len(devices)
1339

Hopefully this clarifies matters.

Information supplied to customer; closing ticket.


.NET crypto got killed, and maybe some app with crypto library too.

Describe the Bug
In Optimize-Security.ps1, or maybe somewhere else.
after Enabling .NET strong cryptography and other crypto related stuff, some installer like Discord failed to install.

How can this issue be reproduced?
Just press apply tweak in the GUI.
Expected behavior?
N/A
Operating System
Windows 11
Operating System Version
20H2
Logs
WDT: no log
Discord (log from error):
...
1896> 2023-10-15 20:45:09> Program: Starting Squirrel Updater: --install .
1896> 2023-10-15 20:45:10> Program: Starting install, writing to C:\Users\Admin\AppData\Local\SquirrelTemp
1896> 2023-10-15 20:45:10> Program: About to install to: C:\Users\Admin\AppData\Local\Discord
1896> 2023-10-15 20:45:10> Program: Install path C:\Users\Admin\AppData\Local\Discord already exists, burning it to the ground
1896> 2023-10-15 20:45:10> IEnableLogger: Failed to remove existing directory on full install, is the app still running???: System.Security.Cryptography.CryptographicException: The keyset is not defined.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
   at System.Security.Cryptography.Utils.AcquireProvHandle(CspParameters parameters)
   at System.Security.Cryptography.Utils.get_StaticProvHandle()
   at System.IO.Path.GetRandomFileName()
   at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__37.MoveNext()
1896> 2023-10-15 20:45:10> Unhandled exception: System.AggregateException: One or more errors occurred. ---> System.Security.Cryptography.CryptographicException: The keyset is not defined.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
   at System.Security.Cryptography.Utils.AcquireProvHandle(CspParameters parameters)
   at System.Security.Cryptography.Utils.get_StaticProvHandle()
   at System.IO.Path.GetRandomFileName()
   at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Update.Program.<Install>d__5.MoveNext()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at Squirrel.Update.Program.executeCommandLine(String[] args)
   at Squirrel.Update.Program.main(String[] args)
---> (Inner Exception #0) System.Security.Cryptography.CryptographicException: The keyset is not defined.

   at System.Security.Cryptography.CryptographicException.ThrowCryptographicException(Int32 hr)
   at System.Security.Cryptography.Utils._AcquireCSP(CspParameters param, SafeProvHandle& hProv)
   at System.Security.Cryptography.Utils.AcquireProvHandle(CspParameters parameters)
   at System.Security.Cryptography.Utils.get_StaticProvHandle()
   at System.IO.Path.GetRandomFileName()
   at Squirrel.Utility.<DeleteDirectory>d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Utility.<LogIfThrows>d__37.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Squirrel.Update.Program.<Install>d__5.MoveNext()<---

UPDATE BUG 16-10-23 4:00PM
Any .NET app that using crypto library also got killed.
Example checksum.exe from choco

UPDATE BUG 16-10-23 4:07PM
Some C++ app also crashed. Including Kaspersky Plus which almost killed my PC and KPM

Same thing with Zoom x86 installer (but work for x64)
Image bellow is x86 installer

UPDATE BUG 17-10-23 8:50PM
Starting Cobalt Strike 4.9 (Java) also crash

UPDATE BUG 17-10-23 9:35PM
I'm not sure why, but I think Crypto API got a problem by tweak.

^ typo mistake :/

Okay, this seems to cause more trouble than help. I'm removing this from the script, but for newer versions.
All users still need to remove it manually, with this command on PowerShell:
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\.NETFramework\v4.0.30319" -Name "SchUseStrongCrypto"
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\v4.0.30319" -Name "SchUseStrongCrypto"


Fix: check reply-parent-user-id for blocked user

Pull request checklist:

[ ] CHANGELOG.md was updated, if applicable

Description

WIP
Closes #4481 assuming option 2. from https://github.com/Chatterino/chatterino2/issues/4481#issuecomment-1493143358 .
Reply context message is censored if from blocked user

we shouldn't hide messages from non blocked users,
personally i would go with censoring of reply context and replace it with some generic "Blocked message"

we shouldn't hide messages from non blocked users, personally i would go with censoring of reply context and replace it with some generic "Blocked message"

Make's sense, it now replaces the message content with *blocked message*.
Another option may be to treat the message as if the "show reply context" setting was disabled which probably follows closer to what blocking a user achieves normally. This made more sense after hearing: https://www.twitch.tv/videos/1782533448?t=01h10m21s
I'll leave the PR as draft for now.

I think leaving reply context visible is better solution, because it let user know given message responds to blocked account and can be ignored right away.
Question if username should be also removed from context, i would leave it but not sure if everyone would agree with that, so maybe axe it too?

Reply context looks like this now.
Any other thoughts are welcome. Marking ready for review :)

I'm putting in my vote for [Blocked Message] instead of *Blocked Message*

@2547techno Thanks for your contribution! As a first-time contributor, you can now add yourself to the contributors list that's shown inside the application.
To do so, open a new PR where you modify the contributors.txt file and add yourself to the list. Make sure to read the comments at a top for instructions.


FP8 for norm inputs and residuals?

Question for you guys: as best I can tell, there is no support at present for keeping activations in fp8 between the "output" matmul (of either an attention block or MLP block) and the next norm (layernorm or rmsnorm). The missing features to make that work are:

FP8 residual input/output (along with the necessary scales) to fp8 gemm
FP8 input (with scale) to {rms,layer}norm

Is this something you have considered, or is there a more fundamental limitation (kernel-wise or accuracy-wise) that means you always want to keep the residual path in a 16-bit format. (Fwiw, my own interest here is for inference.)
Thanks,
Carl

Matmuls are ideal for FP8 compute since they can take advantage of Tensor Cores and they're less sensitive to quantization error. While other operations might benefit (especially from reduced memory usage), we haven't prioritized them and performed the necessary convergence testing to trust them.
One other constraint is that TE modules usually treat FP8 activations as internal state, so it's cumbersome to make them handle complicated networks. For more flexibility, you may want to look into the experimental operation-based API (see transformer_engine/pytorch/ops):
fc1 = te.ops.Sequential(te.ops.Linear(...), te.ops.Quantize())
fc2 = te.ops.Sequential(te.ops.LayerNorm(...), te.ops.Linear(...), te.ops.Quantize())

with te.fp8_autocast():
    y = fc1(x)  # y is a Float8Tensor
    z = fc2(y) + y

This could implement your desired behavior once we have LayerNorm kernels that can accept FP8 input (right now it would cast FP8 to higher precision before the LayerNorm and the addition).


Create entity Owner

сreate entity Owner
code refactor

I thought it should be entity Organization? And owner will be simply a mapping to users?

I thought the owner was the organization. And the creator will be the user. But we can do as you suggest.

I thought the owner was the organization. And the creator will be the user. But we can do as you suggest.

I thought the owner was the organization. And the creator will be the user. But we can do as you suggest.

Yes, right, owner of a project is an organization. And creator of a project is a user. But I still think that calling organization as Organization will be less confusing than Owner.


fix: ensure crd export match API expectations

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


Stopped working long polling

My bot successfully has used long polling for a half year. It has worked well. But recently it conked out.
It seems to work like simple sleep 60, bot receives the message and then go to sleep for a minute again.
Bot uses long polling with faraday default net_http adapter.
Does anybody know how to solve the issue?

Same issue with webhooks.

In my case it's related to Botan, which is apparently not working.
This is probably why there've just dropped botan.io support in #141

@ashaninBenjamin if you are using Botan.io in the bot you have problems with, try to disable it temporary and check if problems still exist.

Disabling Botan solves the problem. Thank you for help.


docs: Updated folder hierarchy of doc source

#851

@fg-mindee
2 changes:
added Imgur to dataset list index.rst
fixed notebooks by replacing with rst


chore(main): release 1.2.4

:robot: I have created a release beep boop
1.2.4 (2024-09-07)
Dependencies

update dependencies (#12) (998eea3)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/aimeerivers/watchthis-home-service/releases/tag/v1.2.4 :sunflower:


Change reseller error when tries to sell less than discount he received

marketplace/search/resell/resell offer:
When trying to resell at a higher discount than received, you get the following error message:

Error message should be change to the following:
"You cannot re-sell at a lower price than the discount you received as an affiliate (current discount received: 10%)"

Did you mean when the commission is less than discount? The error screenshot isn't there but I know what you mean.

yeah you could see it like that too, price of item is less than the discounted price you received from the original seller

Closing this.  Resell function has been deprecated


Java FCM API Snippets

Snippets to appear at:
https://firebase.google.com/docs/cloud-messaging/admin/send-messages
https://firebase.google.com/docs/cloud-messaging/admin/manage-topic-subscriptions

@hiranya911 sorry I was OOO last week, will take a look now.


version and provider hardcoded

Currently in the exposed metadata the version is hardcoded here:
https://github.com/Open-EO/openeo-spring-driver/blob/4f469faaf7390ed1a1879971d99ef35b4a923f45/src/main/java/org/openeo/spring/api/CollectionsApiController.java#L797
and the provider has a default value here:
https://github.com/Open-EO/openeo-spring-driver/blob/4f469faaf7390ed1a1879971d99ef35b4a923f45/src/main/java/org/openeo/spring/api/CollectionsApiController.java#L1800
I propose to remove the default hardcoded version and retrieve it from Rasdaman or ODC.
For the provider instead, we should firstly check if there is one available and if not, set the default one.
Additionally, it seems that maximum 4 providers are allowed.
@aljacob what do you think about this limitation? Should we allow more than 4?
@pierocampa I tag you here just for your interest.

While the API version is OK to me to be hard-coded as "v1", or better "1.1.0" or whatever is implemented now, it should go in the api_version field of the general capabilities response, afaik, while version should refer to the version of the collection).
The host (not the provider) should really be factored out to a configuration file.
The provider, which is indeed better taken from the collection's metadata, is however not overwritten now by the server, so no need to act imho. Just the host' is.

As a final note: this ticket exposes a code duplication in the CollectionsApiController class, see describeCollection() and loadWcpsCollections() methods.

I also understand that having a version, requires to add a stac_extension:

This property REQUIRES to add version (STAC < 1.0.0-rc.1) or https://stac-extensions.github.io/version/v1.0.0/schema.json (STAC >= 1.0.0-rc.1) to the list of stac_extensions.

I would propose to keep this "v1" as default value in case an input collection does not specify a version, while not overwriting existing versioning. This means that stac_extensions will have to include version (as the currently implemented STAC version is 0.9.0 afaik).


Blacklist-Whitelist Manipulation - Issue #4

I've added blacklistWhitelist.js, which contains two lists for the white and black list, as well as functions to add and remove urls from both lists and a function to check if a url is in any of the lists.
Next up is to do the following:

link this js file (or move it into script.js) to the other ones so that urls can be provided to this file and be checked if it is in any of the lists.
Block out the preview if checkList returns true (maybe a rectangular box that just floats over the preview?)
Add in an option so that the blacklist and whitelist can be updated from the options menu.

I don't quite feel like this is as elegant as it could be.
I'm going to close this for now and see what someone else comes up with - apologies. :)


nz-button memory leak

Reproduction link
https://stackblitz.com/edit/ng-zorro-antd-ivy-facszb
Steps to reproduce
Press "toggle 1" multiple times.
Refresh the page.
Press "toggle 2" multiple times.
What is expected?
NzButtonComponent instance should be collected despite their contents.
What is actually happening?
When you use nz-button containing plain text, NzButtonComponent instances are not collected by gc, causing memory leaks.
Components containing "leaky buttons" are not collected too.

Environment
Info

ng-zorro-antd
9.3.0

Browser
chromium

Hi @scorzy
thanks for reporting this
I have tested the case and found the memory leaks only happened when disabled ivy, you can enable ivy to fix this bug(caused by angular view engine)


Null space type

Implement a vector type that satisfies
A * u = 0
for a given (k by n) matrix A.
Algorithmically, we need to compute the SVD of A then store the (n - k) rightmost vectors of V, v_{i}.  The unconstrained parameters are then the coefficients of the expansion
u = sum_{i} \alpha_{i} v_{i}.
Because A is constant, the Jacobian is constant and the gradients are simple.
@bob-carpenter, can we have this derive from the current vector type so that it can be used in the usual linear algebra manipulations?

@betanalpha, this still a good idea?

Could be useful, but there hasn’t been much recent interest.
On Nov 30, 2016, at 6:40 AM, Daniel Lee<EMAIL_ADDRESS>wrote:

@betanalpha, this still a good idea?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

Thanks. I'm going to close this and add it to our wiki of longer term issues.


Custom named client does not use interceptors option

Description
When generating a custom named client using the name option, the interceptors config option seems to be ignored. Looking at the generated client class, it's evident that the config constructor arg is not used to initialize interceptors as it is for every other property; see below.
export class ApiClient {

	public readonly service: SomeService;

	public readonly request: BaseHttpRequest;

	constructor(config?: Partial<OpenAPIConfig>, HttpRequest: HttpRequestConstructor = FetchHttpRequest) {
		this.request = new HttpRequest({
			BASE: config?.BASE ?? '',
			VERSION: config?.VERSION ?? '1.0.0',
			WITH_CREDENTIALS: config?.WITH_CREDENTIALS ?? false,
			CREDENTIALS: config?.CREDENTIALS ?? 'include',
			TOKEN: config?.TOKEN,
			USERNAME: config?.USERNAME,
			PASSWORD: config?.PASSWORD,
			HEADERS: config?.HEADERS,
			ENCODE_PATH: config?.ENCODE_PATH,
			interceptors: {
			  request: new Interceptors(),
			  response: new Interceptors(),
			},
		});

		this.service = new SomeService(this.request);
	}
}

Usage:
const requestInterceptors = new Interceptors<RequestInit>();
requestInterceptors.use(...);

const responseInterceptors = new Interceptors<Response>();
responseInterceptors.use(...);

const apiClient = new ApiClient({
  BASE: '',
  interceptors: {
    request: requestInterceptors,
    response: responseInterceptors
  }
});

OpenAPI specification (optional)
No response
Configuration
openapi-ts --name=ApiClient ...
System information (optional)
No response

UPDATE: I just realized it's possible to modify the config after the fact like below, so this issue is not at all critical since there's a workaround.
const apiClient = new ApiClient(...);
apiClient.request.config.interceptors.request.use(...);

That's a wild workaround though. Why do you use a custom client? Pardon me if I asked in another issue already

Would it suffice for you if you could instantiate clients during runtime?
createClient() // client 1
createClient() // client 2

@mrlubos How would that be different from how it currently works?
const apiClient1 = new ApiClient({  BASE: '/my-api' });
const apiClient2 = new ApiClient({  BASE: '/my-other-api' });

We want to support this out of the box, not hide it behind an optional parameter https://heyapi.vercel.app/openapi-ts/migrating.html#deprecated-name

Oh I see. That would be nice.


login/linksession params non-functional?

Using the login/linksession API in fabric8-ui to link GitHub and OpenShift accounts and encountered the following issues.

The provider parameter does not seem to work with "github" and "oso" values. I can only redirect to GitHub and OpenShift when the provider param is omitted. The user must be able to link accounts separately as well as together.

The redirect paramter does not seem to work. I'm always returned to the same page I started from (i.e., "/dlabrecq%40redhat.com/_gettingstarted"). We need to redirect the user back to "/_home" as done with the landing page login, which works for the login/authorize API.

Note that we have to use the login/linksession API instead of /login/link because we don't have the ability to provide an Authorization header when redirecting to an external URL.

I can't reproduce.
For example if I open the following URL in my browser:
https://api.prod-preview.openshift.io/api/login/linksession?provider=github&sessionState=<SESSION_STATE>&clientSession=<CLIENT_SESSION>&redirect=https%3A%2F%2Fapi.prod-preview.openshift.io%2Fapi%2Fstatus
But with my session state and client session it works fine.

It looks like it's working -- just not quite what I expected. When I un-link GitHub and OpenShift in keycloak, the landing page login is links OpensShift instead of waiting for the getting started page -- it's using login/authorize?link=true.
I was also expecting to be taken to GitHub and/or OpenShift, again, but that wasn't the case. I actually had to revoke prod-preview in GitHub before I would run through the same set of screens.
The redirect works if I provide a full URL like "http://localhost:3000/_home", where the landing page only provides "/_home". Not sure if there is a difference in the login/authorize API or if it''s the landing page that performs its own redirect? Will have to investigate more.

The user is logged in with login/authorize?link=true, so github and openshift are always linked prior to landing on the getting started page.
I can remove the github link manually via keycloak, while still logged into fabric8-ui, GitHub will hang on the https://github.com/login/oauth/authorize page. This happens after I click on the authorize button on GitHub.

I changed the workflow for the fabric8-ui a bit. My fabric8-ui landing page now redirects to the getting started page instead of home. I also removed the login/authorize?link=true param from the login service URL to allow the getting started page to perform linking instead.
That said, I'm able to link GitHub and OpenShift together. I can also link GitHub separately. However, I cannot link OpenShift by itself, using /login/linksession?provider=oso. I can only obtain a token if I link OpenShift and GitHub together.
In this scenario, there is no error in the browser console. There is no OpenShift account linked in keycloak. And I cannot retrieve a token for OpenShift. We need to retrieve this token in order for the getting started page to show its success state.

for OSO provider should be provider=openshift-v3
Not provider=oso
This is confusing I know :)

That works. Thank you!


time/batch continues to increase

I'm assuming the amount of time that each batch takes to run shouldn't continuously increase?  This is great work by the way!

Thanks!


Handle cases where pytest itself fails

Closes https://github.com/pytest-dev/pytest-github-actions-annotate-failures/issues/57
Closes https://github.com/pytest-dev/pytest-github-actions-annotate-failures/issues/67

@henryiii this is ready for review 🙂

Cheers. Will this be making it into a release anytime soon?


Retrieve single type data

Hello, i using @nuxtjs/strapi v0.3.6 for my Nuxt v2.15.7 application.
I created single type named "configuration", but cannot retrieve it from @nuxtjs/strapi module ($strapi.find('configuration'))
So, question is: Is single type data supported by @nuxtjs/strapi module? I cannot find any information about this in the documentation

Hello @sebastianjung . You can add in blank quotes using findOne():
const { data: page } = await
  findOne<Start>("start", ""}
);

This is something that definitely needs to be addressed either in code or in the docs.

@de-soul @sebastianjung As of 1.7.1 you can do this without empty quotes now as well.


[BUG] "invalid_token" after switch to official Cloud Foundry provider

Is there an existing issue for this?

[X] I have searched the existing issues

What version of the Terraform provider are you using?
1.0.0-rc1
What version of the Terraform CLI are you using?
1.9.8
What CF API version are you using?
3.178.0
What type of issue are you facing
regression (a behavior that used to work and stopped in a new version)
Describe the bug
As you wrote in README, the SAP provider is deprecated and we should switch official Cloud Foundry provider.
My old code is
required_providers {
    cloudfoundry = {
      source  = "SAP/cloudfoundry"
      version = "1.0.0-rc1"
    }
  }

I changed it to
  required_providers {
    cloudfoundry = {
      source  = "cloudfoundry/cloudfoundry"
      version = "1.0.0"
    }
  }

Now I get the following error for ressource cloudfoundry_org_role, when running terraform plan (terraform init -upgrade was run before):
│ error executing GET request for /v3/roles/766e2f43-xxxx-xxxx-xxxx-99d84b617b9b: error executing request, failed
│ during HTTP request send: Get
│ "https://api.cf.eu10-004.hana.ondemand.com/v3/roles/766e2f43-xxxx-xxxx-xxxx-99d84b617b9b": oauth2: "invalid_token"
│ "The token expired, was revoked, or the token ID is incorrect."

My provider config looks like this:
provider "cloudfoundry" {
  api_url  = "https://api.cf.eu10-004.hana.ondemand.com/"
  user     = var.aa_btp_username
  password = var.ab_btp_password
}

When I switch back to provider SAP/cloudfoundry, the error is gone.

Hi @olfolfolf ,
We tried to replicate your scenario and we did not encounter the error message which you observed.
We created a valid org role with the sap/cloudfoundry provider  and then switched to the cloudfoundry/cloudfoundry provider (with terraform init -upgrade command).
We then tried 2 scenarios:

We then tried running terraform plan. It was able to successfully read the status from the API and match against the state successfully.
We also tried to create a second org role after the upgrade and this also worked without errors.

Can you please describe the setup/script you are using here and how you are upgrading? Is this on a pipeline or your laptop?
The error message you encountered occurs when you try to authenticate via a token or the provider picks the credentials used by CF-CLI from config.json. CF-CLI credentials is picked when an empty provider block is present in the script.  Therefore our guess is that when trying to run the script with the new provider, somehow an empty provider block was provided, due to which the CF-CLI credentials were picked and not being logged in via CF-CLI would have caused the message to appear.


chat 测试

这是一个 issues 测试，为 chatbot 的功能进行一个示例

help

@dosu 这个仓库是干什么的

Hey there, @zds-s! 👋 I'm Dosu, a friendly bot here to help you squash bugs, answer your questions, and guide you on your journey to becoming a contributor. While you're waiting for a human maintainer, think of me as your go-to for getting unstuck or finding your way around. I've noticed your issue about testing a chatbot's features, and I'm on it! Expect a full answer from me shortly. 🤖

Can you tell me what this warehouse does?

@dosu-bot 能帮我看看 pkg 目录下的内容并进行总结吗。如果可以请使用中文回复

@BadJacky

The repository you're asking about, 'framework', is designed for managing a multi-repository setup, specifically focusing on a monorepo structure. It includes a key script, split.sh, which automates the process of splitting subprojects or packages from the main monorepo into their own separate repositories. This script leverages splitsh-lite for the splitting process and is configured to handle multiple repositories by accepting a list of repository names as arguments. By default, it processes all subprojects located in the pkg/ directory.
The split.sh script maintains branch consistency during the split, sets up remote repositories for each subproject using a GitHub URL pattern, and uses force pushing to keep the split repositories in sync with the main repository. It's designed to exit upon errors and provides debugging assistance by printing executed commands.
This setup is particularly beneficial for developers working within a monorepo framework, simplifying the management and synchronization of multiple related repositories. For more details, you can check the script directly at bin/split.sh in the repository.此设置对于在 monorepo 框架中工作的开发人员特别有益，可以简化多个相关存储库的管理和同步。有关更多详细信息，您可以直接在存储库的 bin/split.sh 中查看脚本。
Sources

bin/split.sh

About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.此响应旨在有用并节省您的时间。它不是一个精确的解决方案，而是你自己研究的起点。
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.帮助我变得更有用！如果这有帮助并且👎无关紧要，请留下一个👍。
If you want to continue the conversation, start your reply with @dosu-bot.如果您想继续对话，请使用 @dosu-bot 开始回复。

能帮我看看 pkg 目录下的内容并进行总结吗。如果可以请使用中文回复

关于 framework 仓库中 pkg 目录的内容以及 split.sh 脚本的工作原理，这里有一些关键点：

pkg 目录内容：pkg 目录下具体包含哪些子项目或包，需要直接查看该目录以获取详细信息。split.sh 脚本默认处理此目录下的所有子项目或包，除非在执行脚本时指定了特定的子项目或包。
split.sh 脚本功能：该脚本自动将 pkg 目录下的子项目或包分割成独立的仓库。它使用 splitsh-lite 来执行分割操作，并通过接受仓库名称列表作为参数来配置处理多个仓库。
分支一致性和错误处理：脚本确保分割操作保持分支一致性，并在出现错误时立即退出，同时提供执行的命令的打印输出以帮助调试。
强制推送和日志记录：脚本使用强制推送 (-f 标志) 来保持分割仓库与主仓库同步，并通过 set -x 命令在执行过程中记录关键步骤和结果，以便于调试和验证脚本操作。

希望这些信息能够帮助您更好地理解 pkg 目录的作用以及 split.sh 脚本如何工作。如果您有更多问题或需要进一步的帮助，请随时告诉我。
Sources

bin/split.sh

About Dosu

pkg/Router/Example.go 的内容具体是干什么的


Karate 1 no longer preserves ordering of json keys

Granted that json spec does not guarantee property ordering, it is convenient to maintain json property ordering to minimize differences when diff'ing
Expected:

property ordering for string when parsed to json should remain in same order as specified in string

Actual

property ordering is re-arranged deterministically, but not alphabetically

MVC project:
https://github.com/ericdriggs/karate-1-json-order
tests pass using karate 0.9.6
verified fail using karate 1.0.1 and 1.1.0.RC4
Would not classify as a high priority impacts convenience

oh a string conversion. wontfix

Accepting that decision.
For reference, this also affects the request/response from the logs.

@ericdriggs tried to fix it. not tested the request / response from the logs - please confirm and contribute tests if needed

Your change handled the request correctly.
One line needed modification to solve the response.
see PR:
https://github.com/intuit/karate/pull/1666

@ericdriggs awesome, thanks so much. the json-smart library was upgraded and that has these changes. this is a good thing, we were worried that that library was not being maintained any more - which would have been an issue for java 11 + etc. but we seem to be good now.

1.1.0 released


Improve token authentication

In integrated cloud environments authentication tokens expire and are kept in memory.
This contribution allows the API to fetch the latest token, wherever it might be stored.

(MSFT employee here). we'll use this hook to pre-configure Azure authentication in our platform experiences in which users are already authenticated w/ AAD. Right now, we can only set the key initially, but customers will have to manually refresh the token if their process runs for more than 30min.

That makes sense! I'd still like to see an example where this is enabled before merging it in.

As implementation example (AsyncIO, FastAPI): https://github.com/clemlesne/moaw-search/commit/0f4b326fe0fd003f9a19d4e16e5d0ef8407d542f.

Impleemntation example: https://github.com/clemlesne/moaw-search/commit/0f4b326fe0fd003f9a19d4e16e5d0ef8407d542f.