DryIoc fails to object reference not set to instance of an object

Inside DryIoc/Container.vs there is method
public static bool IsStatic(this MemberInfo member)
{
	var method = member as MethodInfo;
	if (method != null)
		return method.IsStatic;

	var field = member as FieldInfo;
	if (field != null)
		return field.IsStatic;

	var prop = member as PropertyInfo;
	if (prop == null || prop.IsExplicitlyImplemented())
		return false;

	var propAccessor =
		prop.GetGetMethodOrNull(includeNonPublic: true) ??
		prop.GetSetMethodOrNull(includeNonPublic: true);

        // Failure happens here when propAccessor is null
	return propAccessor.IsStatic;
}

Call stack:
App.Ioc.dll!DryIoc.ReflectionTools.IsStatic(System.Reflection.MemberInfo member) Line 11128	C#
App.Ioc.dll!DryIoc.FactoryMethod.Of(System.Reflection.MemberInfo ctorOrMethodOrMember, DryIoc.ServiceInfo factoryInfo) Line 4602	C#
App.Ioc.dll!DryIoc.Made.Of.AnonymousMethod__1(DryIoc.Request _) Line 4888	C#
App.Ioc.dll!DryIoc.ReflectionFactory.CreateExpressionOrDefault(DryIoc.Request request) Line 8302	C#
App.Ioc.dll!DryIoc.Factory.GetExpressionOrDefault(DryIoc.Request request) Line 7827	C#
App.Ioc.dll!DryIoc.ContainerTools.GenerateResolutionExpressions(DryIoc.IContainer container, System.Func<System.Collections.Generic.IEnumerable<DryIoc.ServiceRegistrationInfo>, System.Collections.Generic.IEnumerable<DryIoc.ServiceInfo>> getRoots, bool allowRuntimeState) Line 3111	C#
App.Ioc.dll!DryIoc.ContainerTools.Validate(DryIoc.IContainer container, System.Func<DryIoc.ServiceRegistrationInfo, bool> condition) Line 3150	C#
App.Ioc.dll!App.Ioc.ValidateIocRegistrations.Validate(DryIoc.IContainer container) Line 23	C#
App3.dll!App3.ErrorWithMasterPage.OnInit(System.EventArgs e) Line 25	Basic
[External Code]

How could it be - a property with no accessors?
Could you provide a snippet of the property code.

    Public Shared ReadOnly Property Current() As SessionData
        Get
            Return Current(DefaultStorageIdentifier)
        End Get
    End Property

I think it fails there

@Havunen Thanks, I have an idea how to fix it. I need also to check if the property an indexer.
Note for me: that the property accessors and indexer are marked with SpecialNameAttribute or MethodInfo.IsSpecial

Good to hear! 👍

Its no longer crashing to this thing. I think its fixed


Use underscore in kube-* Ansible variables

According to the Ansible documentation 1, variable names with dash are
considered invalid. This commit replaces kube-ui and kube-dash with
kube_ui and kube_dash, respectively.
Fixes #1925.

This change is

I signed it!

I signed it!

/lgtm


DateTime scalars should accept valid string output?

For the datetime scalars it currently expects the datetime objects but would it be good to also allow their proper string formats as outputs as well?
For example, changing DateTime.coerce_output to this?
def coerce_output(value: Union[datetime, str]) -> str:
    if isinstance(value, datetime):
        return value.isoformat()
    elif isinstance(value, str):
        try:
            datetime.fromisoformat(value)
        except ValueError:
            raise ValueError(f"DateTime cannot represent value: < {value} >")
        else:
            return value
    raise TypeError(f"DateTime cannot represent value: < {value} >")

@AutumnalDream, yeah, why not. Could you do a PR ?

PR is up :)


feat: clear out prev assignees

Resolves #185

https://github.com/ubiquity/bounty-bot/issues/185#issuecomment-1484055282


does not supports influxdb 2.0

how want to  supports influxdb 2.0
Which ruby file should I modify？

I updated the plugin to support influxdb version 2.0
https://github.com/kwdchol/logstash-output-influxdb_v2

Is there a way to get this merged into the current code? It looks like a simple fork so I wonder if this can be a PR?

Is there a way to get this merged into the current code? It looks like a simple fork so I wonder if this can be a PR?

Sorry I don't know how to do it, I'm a newbie


Fixes and update to portable library

Converted to portable library (Hopefully fixes #16 )
Updated .zip (fixes #7 )
Converted all extensions to lower case, and added .ToLower when trying to get the mime type, to avoid case related issues

Also changed the version to 2.2

Sam,
Thank you for your contribution. Unfortunately I'm not able to merge your pull request as is.

Visual Studio Version. Personally I still have to support hardware in the field that is Windows XP and thus does not support .NET Framework 4.5, necessitating that I personally still use Visual Studio 2010. Yes, this is really old, but it's necessary for my environment. The only .NET work I do is maintenance on old projects--I'm working fully in Node for new projects. If you would like to add a second solution file such as MimeTypeMap.vs2014.sln that would be fine, but I can't accept changing the version of the primary solution.

Target Framework. For the same reason listed above, I can't accept changes to the project file that change the target project. Again if you want to submit a separate new project file (to go along with your possible new solution) then that would be fine.

Naming convention. I'm not sure why you changed the naming convention for the private field from _mappings to Mappings, but I won't accept naming a private field with a capital letter.

Culture. You changed the dictionary comparer to be current culture instead of invariant culture, even though the data is all ascii only. I'm not confident that this would not have a detrimental effect in some cultures, whereas I'm sure the invariant culture will do what's wanted with these characters.

Case. I don't object to changing the case of the extensions to be lowercase, but I will point out that with the case-insensitive dictionary, it's not necessary for matching purposes.

.cmd. You changed the mime type from text/plain to application/cmd. There is no official mime type for .cmd and most of the lists I found don't list a mapping at all. Given the context and that another user specifically, recently, added .cmd as text/plain I'm inclined to leave it as text/plain.

nameof. This is new to C# 6 and unfortunately I need to maintain .NET 4 compatibility.

I did make update mime types for .rar and .zip as you indicated. Thank you for those corrections.
Sam


Add BreakOnDistance to DoAfterEventArgs

About the PR
There are some interactions where we want to allow movement, but we still want to enforce a distance.
We want people to be able to eat food and move, but want to enforce a maximum distance, to avoid eating food and finishing it while far away.

BreakOnDistance nullable float to define maximum distance between user and target
Added optional Used entity in the case of a separate entity being involved between user and target (feeding yourself makes you the user and target. The food is the Used in this case.)
Coordinates need to be updated in case the target/used has moved. (might be better way of doing this? hopefully not too expensive doing it this way.)
Need to account for target/used movement for cases like walking while eating food in your hand. Otherwise, BreakOnMove would cancel this.

Fixes #8297
Screenshots

Eating without moving ✔
Eating while moving within range ✔
Eating and moving out of range ❌
Eating held food while walking ✔

Changelog

:cl:

fix: No more Dine and Dash (alt clicking food and running away)

I like the change but food shouldn't have it as this can be used to forcefeed.

Force feeding still breaks on movement, which is calculated before this break on distance.
In my testing, the user or target moving at all still cancels the feeding.


Open up for multihost

This PR makes the oidcAuthorizationSecurityLogic bean overridable.

Adapted for the 6.6.x branch: https://github.com/apereo/cas/pull/5782


It works on Pop! OS 21.04!

I've been using Rust for probably about a year, and I usually make my own libraries using graphics libraries, but I ran into a roadblock and wanted to try something different. I found this library through a YouTube video by FinePointCGI and he described how to use this library, and I love it! I'm on Pop! OS 21.04 (an Ubuntu based distro) and it's working perfectly!

Hey, great to hear! 🙂
Are there any special steps you had to do, or a specific setup which is not described in the official resources (book/docs/...)?

Nope! :D It was very simple and exactly as the book described


feat: server IP configuration

Server IP configuration
Description
If the server is running in a network with a static IP it can be directly accessed from the CLI and workspaces. This PR contributes a server configuration option that allows the user to configure direct server access through its IP

[x] This change requires a documentation update
[ ] I have made corresponding changes to the documentation

Related Issue(s)
Closes #625
Notes
In draft until further testing

This Pull Request has been automatically marked as "stale" because it has not had recent activity (for 14 days). It will be closed if no further activity occurs. Thank you for your contribution.

Hi, any progress on this?

@loveloki this PR is in draft atm because our headscale server requires that the URL is https. This means that users can't simple use their IP and expect our VPN to work. We're figuring out what's the best approach to work around that.


Why am I flapping?

Hello,
This info message seems to indicate that my check is flapping, but the history is 0% state changes.  Am I interpreting this correctly?  Thank you
{"timestamp":"2015-12-07T04:08:18.565739+0000","level":"info","message":"handler does not handle action","handler":{"type":"pipe","command":"handler-pagerduty.rb","severities":["ok","critical"],"filters":["actions"],"name":"pagerduty"},"event":{"id":"d3b8c040-0eec-44f0-b1a1-89c90a0c36cf","client":{"name":"ip-10-55-250-122.us-west-2.compute.internal","address":"<IP_ADDRESS>","subscriptions":["
base","sensu_ext_monitor"],"chef":{"client":{"node":"ip-10-55-250-122.us-west-2.compute.internal"}},"safe_mode":true,"version":"0.18.1","timestamp":1449461288},"check":{"command":"check-load.rb -p -w 2.0,2.5,2.75 -c 3.5,3.25,3.0","handlers":["pagerduty"],"subscrib
ers":["base"],"low_flap_threshold":10,"high_flap_threshold":25,"interval":15,"notification":"Load is unusually high. Load number shown is per core.","occurrences":24,"subdue":{"begin":"6PM PST","end":"10AM PST"},"name":"load","issued":1449461293,"executed":1449461293,"duration":5.356,"output":"CheckLoad CRITICAL: Load average: 4.42, 4.46, 4.25\n","status":2,"history":["2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"],"total_state_change":0},"occurrences":270,"action":"flapping"}}

This doesn't look like flapping but rather a hard down event. Notice all two's
"2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2","2"
See: https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/flapping.html

Notice the '"action":"flapping"'

@brianr25 what version of Sensu are you running? There are known bugs in older releases of Sensu in regards to flap detection.

@brianr25 closing due to inactivity. Please feel free to create a new issue if this matter is not resolved.

@portertech which older version(s) had the flapping detection issue?


Tiny fix on the secret management docs

What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #
Does this PR introduce a user-facing change?:

NONE

Nice catch
/approve


error

Does this occur consistently?
Repro steps:

Action: automation.openLocal
Error type: ENOENT
Error Message: ENOENT: no such file or directory, open 'c:\Program Files\Microsoft VS Code//vscodeAutomation//redacted:id//role-pim-expiry-checker.ps1'
Version: 1.1.0
OS: win32
OS Release: 10.0.19045
Product: Visual Studio Code
Product Version: 1.75.1
Language: en

Call Stack
extension.js:2:1676472extension.js:2:1676472
n extension.js:2:1669894

You can set the working directory for the Azure Automation extension to use in either the extensions settings ( ctrl + , -> Extensions -> Azure Automation › Directory: Base Path ) or the workspace settings ( .vscode -> settings.json -> "azureAutomation.directory.basePath" ).  If you do not set either, then the extension uses C:\Program Files\Microsoft VS Code as the working directory.  Try specifying a base path that you create in your user directory.

Hi @marfha88 , was this resolved by as suggested in above comment?

Is it possible to automaticly define the active project/workspace path instead of manually set this setting per workspace? I thought about setting an universal value in the extension settings ("Directory: Base Path") but I did not get it working.

@marfha88 This issue has been resolved in beta version: can be installed as pre-release from marketplace. Do share feedback on marketplace or reopen issue if problem persists. The beta version be pushed as default by next week.

This is Fixed now.


Restore ONNX export (fixes regression caused by #210)

Looks good.
~
Suggestion: Since the OutputShift and Scaler functions are also handled the same way independent of simplify, we could move them up, and remove the repetitions in the elif not simplify condition.
    def _onnx_export_prep(m):
        for attr_str in dir(m):
            target_attr = getattr(m, attr_str)
            if isinstance(target_attr, WeightScale):
                setattr(m, attr_str, WeightScaleONNX())
            elif isinstance(target_attr, OutputScale):
                setattr(m, attr_str, OutputScaleONNX())
            elif isinstance(target_attr, OutputShift):
                setattr(m, attr_str, OutputShiftONNX())
            elif isinstance(target_attr, Scaler):
                setattr(m, attr_str, ScalerONNX())
            elif not simplify:
                if isinstance(target_attr, Quantize):
                    setattr(m, attr_str, QuantizeONNX(target_attr.num_bits))
                elif isinstance(target_attr, FloorQat):
                    setattr(m, attr_str, FloorQatONNX())
                elif isinstance(target_attr, RoundQat):
                    setattr(m, attr_str, RoundQatONNX())
                elif isinstance(target_attr, Floor):
                    setattr(m, attr_str, FloorONNX())
                elif isinstance(target_attr, AvgPoolFloor):
                    setattr(m, attr_str, FloorONNX())
            elif isinstance(target_attr, (Quantize, Clamp, Round,
                                          AvgPoolFloor, Floor, FloorQat, RoundQat)):
                setattr(m, attr_str, Empty())


Can't change display attribute after initializing it.

I can initialize a specific displayMode like in this example
but when I try to change the displayMode in my update function it remains whatever its initial value was.
My use case is changing a div's display from none to block.

Can you show your code?  Also double check that you're using Animation.set to set the displayMode at a certain point instead of Animation.to

Thanks for pointing me to set.
Instead of trying to change the displayMode in my Animation.to function I used set after afterwards to remove the div.


Appending rows to a large table.

New benchmarks show we've improved a lot since hyperapp was first introduced, but we're still performing comparatively poor in @krausest / js-framework-benchmark: Append rows to large table: Duration for adding 1000 rows on a table of 10,000 rows.
I am not trying to win these benchmarks, but of all the things, I still can't figure out why what takes to beat this particular test.

@leooniya's domvm is particularly good on this one, maybe you can share a couple of secrets?

try to avoid recreating and/or patching the full unchanged 10k vtree via an eager diff/sCU that reuses old vnodes and essentially noops the extra work.

Focus has shifted to introducing rAF and vnode recycling. Closing in favor of #244.

@jbucaran I might be wrong but I suspect raf or recycling will help solving this issue.
I think the issue is here. You're building the keymap too early, with a 10k table, you'll build an object with 10k which takes some time (even if in this case it is not necessary).
I would suggest running some preoptimization passes to trim common prefixes/suffixes (compare by index and patch first/last matching elements) and then only diff using a map for the rest (starting from the first until the last non matched elements). In the above case a map is not needed at all, after trimming the common prefix (the 1st 10k rows unchanged) since the old sequence is empty, all we have to do is to append the remaining in the new sequences. You can also check my comment here (https://github.com/developit/preact/issues/725#issuecomment-313954428) for more details

@yelouafi I might be wrong but I suspect raf or recycling will help solving this issue.

Just to clarify, did you mean to say perhaps they will not help?

I would suggest running some preoptimization passes to trim common prefixes/suffixes

What is a prefix/suffic?

What is a prefix/suffix?

https://github.com/localvoid/kivi/blob/master/lib/vnode.ts#L1288

The comment alone is bigger than hyperapp. 😆

but it minifies to 0, even before gzip!

Just to clarify, did you mean to say perhaps they will not help?

Yeah, sorry for the typo.

What is a prefix/suffix?

Those are the sequences of elements that are the same at the start (prefix) and at the end (suffix) in the old and the new sequences. For example
old sequence :   A B C D E
new sequence :  A B x y C D E
In this example 2 elements x & y were inserted in the middle. [A,B] is the common prefix and [C,D,E] is the common suffix. We can identify those with a simple loop
newStart = 0
newEnd = newChildren.length
oldStart = 0
oldEnd = oldChildren.length

while(newStart <= newEnd && oldStart <= oldEnd) {
  // strip common prefix
  if(haveSameTypeAndKey(newChildren[newStart], oldChildren[oldStart]) {
    patch(newChildren[newStart], oldChildren[oldStart])
    newStart++; oldStart++
  }
  else if(haveSameTypeAndKey(newChildren[newEnd], oldChildren[oldEnd]) {
    patch(newChildren[newEnd], oldChildren[oldEnd])
    newEnd--; newEnd--
  }
  // can also do some other tricks like inverions etc
  // you can see https://github.com/yelouafi/petit-dom/blob/master/src/vdom.js#L141
}

/*
if old seq is empty -> insert new elements
example
  old = 'ABCD'
  new = 'ABxyCD'
  after prefix/suffix trimming; old = '' and new = 'xy'
*/
if(oldStart > oldEnd) {
  while(newStart <= newEnd)
    insertBefore(newChildren[newStart++], oldChidlren[oldStart])
}

/*
if new seq is empty -> remove old elements
example
  old = 'ABxyCD'
  new = 'ABCD'
  after prefix/suffix trimming; old = 'xy' and new = ''
*/
else if(newSart > newEnd) {
  while(oldStart<= oldEnd)
    remove(oldChidren[oldStart++])
}

else {
  // continue with map based diff but only with elements [newStart...newEnd] & [oldStart..oldEnd]
}

the prefix/suffix trimming will cover most of the cases (like in the above example, where the prefix will be the first 10k rows) and you wont need event to do a map based diff which is slower (construction of the map, lookup ...)

@yelouafi I want to make sure we are on the same page: in your example, AB C and D are keyed nodes and x, y un-keyed nodes. Is that so?

Trimming will work for both keyed and non keyed nodes. For non keyed nodes the comparaison will return true for nodes with the same type

Right, I think I meant to ask: why are some of the letters uppercase/lowercase?

Resolved in #499


feat: Upgrade k8s versions

fixes: #193

Please sign the commits :)

Done

@Abhra303 Can you please make new release with this patch? We cannot use operator in our environments without it


Fix sending JSON

Fix sending JSON

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (5bec3aa) to head (04ddf2a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #329   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            4         4
  Lines          508       508
  Branches        73        73
=========================================
  Hits           508       508

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Delete node issue

Hi,
I deleted node from jstree  but is it showing when jstree refreshed(not JSON).I observed this in one scenario.I think it's not updating in core.data

Please provide a demo - I can not help you without one. Keep in mind you need to use get_json to get the updated JSON back, jsTree does NOT update whatever you pass in core.data - it is not used as a reference.
If this does not anwser your question, please provide a demo and I will reopen.


High DPI scale doesn't work

I just tried DarkUI, and if the DPI scale in Windows is set to > 100%, and the Application is set to be DPI aware - the DarkUI completely breaks, as it's not responding to Font scale.

Sadly, this is the biggest issue with DarkUI. It uses a lot of pixel-perfect control drawing routines, so it doesn't scale at all. It seems it's impossible to fix without full rewrite.

That's sad because I love how DarkUI looks. Thanks for returning my question!
BTW - do you have any plans on making DarkUI for WPF ?

I guess it won't happen... neither on master nor on our branch (https://github.com/Lwmte/DarkUI/), it's easier to use existing dark-themed WPF projects.

I just tried DarkUI, and if the DPI scale in Windows is set to > 100%, and the Application is set to be DPI aware - the DarkUI completely breaks, as it's not responding to Font scale.

Unfortunately pixel-perfect drawing is a core design aspect of DarkUI. Changing it would require re-writing the majority of the rendering logic which I personally won't be doing. DarkUI is (loosely) maintained with bugs fixed, but it's a legacy product at this point.
You can sledgehammer your app to remove DPI scaling to 'fix' the problem as discussed on Stack Overflow... but it's not a pretty solution.
If you do need DPI-awareness support in your app, I'd highly recommend not using WinForms and use a more modern windowing system like WPF.

That's sad because I love how DarkUI looks. Thanks for returning my question!
BTW - do you have any plans on making DarkUI for WPF ?

I don't think DarkUI for WPF is really required? DarkUI was created because you can't set the border colour on something as simple as a textbox in WinForms - I needed code hacks to bypass those limitations. As WPF is pure DirectX those limitations no longer exist and you should be able to get similar effects by just modifying the properties accordingly.
If you like the look of it, pick up any of the JetBrains IDEs and copy the colours from there - that's all I did. 😋
Regardless, I develop all of my apps to run across macOS and Linux now-a-days, and WPF is limited to just Windows so it's off the table for me.


Add more test macros to follow Godot conventions

Some macros like TEST_FAIL_COND will be useful for porting existing ClassDB tests:
https://github.com/godotengine/godot/blob/db1259ac7086744f475b191b0644ac933c30289c/tests/test_class_db.cpp#L47-L77
Also add aliases for *_MESSAGE doctest macros: *_MSG (no, not mesege). 😛
Created this PR so it's not lost in my backlog of test related PRs, and of course up to discussion!

Needs rebase, but this has to be reworked anyway after we establish naming conventions in godotengine/godot-proposals#1388, then I can make a new PR and proceed to documenting tests in godot-docs.


Use Chronos Config to set date/time

As discussed in on our other topic I would like to raise a feature request to use the chronos config to set the date time in the node itself. In this way you will we able to use the configured chronos locations date time in stead of the Node Red Instance time.

Please note that I will implement only the possibility to manually configure the time zone in the configuration node (e.g., via a text field where you can enter the IANA name of the time zone). A programmatic calculation of the time zone based on the geographical coordinates requires large databases which need to be updated regularly in order to guarantee accuracy. Also there are corner cases where coordinates do not match an exact time zone and therefore manual control would anyway be necessary. I don't think this small piece of convenience outweighs the disadvantages of a significantly increased package size due to a large database which in addition requires regular updates.

Implemented with release v1.17.0.


[BUG]Our team link does not work properly

Currently the our-team link at us not working properly I would like to work and build this entire page within the next 2-3 days. Please assign me this.
For this I would require details of the persons in a specific format that will share soon.

Also i want to know how many persons are to be included here i mean are they fixed or all of the contributors?

Also i want to know how many persons are to be included here i mean are they fixed or all of the contributors?

We can divide the section according to role in organization.

Maintainers of projects
Contributors of projects

What are your thoughts on listing the members?

Currently the our-team link at us not working properly I would like to work and build this entire page within the next 2-3 days. Please assign me this. For this I would require details of the persons in a specific format that will share soon.

We can divide the section according to role in organization.

Maintainers of projects
Contributors of projects

What are your thoughts on listing the members?

Ya great i will be moving ahead with the same

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??

In my opinion, the glass effect is more appealing.
You can use this site to generate the effect
https://css.glass/

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??
Adjust the image container

Reduce the padding a bit from outer container
Make it fixed size  ( standard image size )

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??

In my opinion, the glass effect is more appealing. You can use this site to generate the effect https://css.glass/
What are your suggestion on whether we should list the projects that a maintainer is handling. ( making the card of maintainer a bit different from contributors).?

ya i agree with that and that was what i am trying to achieve.

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??
Adjust the image container

Reduce the padding a bit from outer container
Make it fixed size  ( standard image size )

i did nott understand what you are trying to say?

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??

In my opinion, the glass effect is more appealing. You can use this site to generate the effect https://css.glass/
What are your suggestion on whether we should list the projects that a maintainer is handling. ( making the card of maintainer a bit different from contributors).?

@AdarshRawat1  hello can you tell mw if the design is good enough or i need to change it??

In my opinion, the glass effect is more appealing. You can use this site to generate the effect https://css.glass/
What are your suggestion on whether we should list the projects that a maintainer is handling. ( making the card of maintainer a bit different from contributors).?

the glass effect does not look good with the black background hence with the current theme of our website I think its best to go with gradients and for now lets keep it as it is and lets see what can I do  in the future.

i did nott understand what you are trying to say?

Leave it for now, we'll improve it with further PR. Still let me just explain those points -

Reduce the padding a bit from outer container

The image box is looking a bit small

Make it fixed size  ( standard image size )

Set a standard image size format ( resolution) so that maintainer and contributors can provide the image accordingly.
eg either go with passport size format or a circle layout or a square .

i did nott understand what you are trying to say?

Leave it for now, we'll improve it with further PR. Still let me just explain those points -

Reduce the padding a bit from outer container

The image box is looking a bit small

Make it fixed size  ( standard image size )

I think it is fine just check out in the pr

Set a standard image size format ( resolution) so that maintainer and contributors can provide the image accordingly. eg either go with passport size format or a circle layout or a square .

No no contributors or maintainers need not to provide any photos that I have handled using avatars(Robohash) as storing a image migth have been a compicated tas

@AdarshRawat1 should we close this issue??


Turn off mouse interaction in testbed

I'm not sure if it's possible to disable the mouse in the testbed. For example setting testbed.mouseForce = 0 triggers some other behavior rather than disabling it:
https://github.com/piqnt/planck.js/blob/4b6d6ec0ab341d0cea7b3ec4b5236fca3fdd7200/testbed/StageTestbed.ts#L243-L249
The closest I can get is testbed.mouseForce = 0.001 which is not truly disabled and difficult to discover.

I will try to implement this in next testbed release.

I fix for this, in v1.3.0
With the fix, you need to set mouseForce to 0 to disable it.


A risk of panic in vm by using contract exported memory function

Hi there, I found that cosmwasm are using allocate and deallocate by contract exported function
in use case of call_raw , we are using it like this:
let region_ptr = instance.allocate(arg.len())?;
instance.write_memory(region_ptr, arg)?;

in function write_region, I saw that we are using len and capacity to check memory size to make sure that ptr have enough space to save it
The question is: allocate and deallocate are defined in std and exported by contract, that means contract writer can do any change of allocate function as they want, if someone change the return value of allocate, faked a right len and capacity but set ptr to a broken address(or smaller capacity), is cosmwasm still running correctly?

allocate and deallocate are defined in std and exported by contract, that means contract writer can do any change of allocate function as they want

Correct

if someone change the return value of allocate, faked a right len and capacity but set ptr to a broken address(or smaller capacity

Right. We need to assume that contracts return broken Regions. This must not break the VM but just the execution of one contract.
When it comes to panics, it is very important to distinguish where they happen. In a contract they are no problem. In the VM, there should not be a panic that can be troggered by the contract. The code you are referring to changes a lot betwen 0.8 and 0.9 (see packages/vm/src/memory.rs in https://github.com/CosmWasm/cosmwasm/compare/0.8...v0.9.3). So I assume this issue cannot occur anymore.

See also https://github.com/CosmWasm/cosmwasm/issues/419. This is not a full protection but at least guides developers of standard libraries when their Region creation is not correct.

See also #419. This is not a full protection but at least guides developers of standard libraries when their Region creation is not correct.

Cool, I will test it in new version

In recent versions of CosmWasm (I just checked 0.10.1), all functions in packages/vm/src/memory.rs do not panic. Instead, errors are returned and handled properly. Feel free to re-open if I missed something.


App stops running when it’s in background or locked

Currently the App isn’t Actively running when it’s minimized or the if the user locks the device in itself.

I am having the same issue now
iPhone 14 Pro Max
iOS 17.5.1
When app is running in background friend disconnects without notification
Friend status led remains blue

If the LED is blue it’s probably connected, does it show disconnected in the App?


Generate CSV reports using SQL queries against a production database

[x] TablePlus setup
[ ] Review all 2021 activity and use https://trinary.setlife.tech/ to populate data into the MySQL DB
[ ] VS Code setup
[ ] Construct SQL queries to generate CSV files
[ ] Import CSVs into Google Sheets
[ ] Create reports to display business insights

https://docs.google.com/spreadsheets/d/1-8hqBqf7D7k60F7LPJrZr5Lc-D8l-k_9ObsXzDGDm_U/edit#gid=1821519724
SELECT
	allo.project_id AS "Project ID",
	pay.id AS "Payment ID",
	CONCAT("$", ROUND(pay.amount/100,2)) AS "Payment Amount (USD)",
	allo.id AS "Allocation ID",
	CONCAT("$", ROUND(allo.amount/100,2)) AS "Amount Allocated (USD)",
	con.name AS "Contributer",
	IF(pay.id IS NULL, "Proposed", "Funded") AS "Status",
	CONCAT(ROUND((allo.amount/100)/rate.hourly_rate, 2)," ", "hrs", " ", "@", " ", rate.hourly_rate, "/hr") AS "Rate Details",
	DATE(allo.start_date) AS "Start Date",
	DATE(allo.end_date) AS "End Date",
	DATE(allo.created_at) AS "Date Created",
	DATE(pay.date_incurred),
	DATE(pay.date_paid)
	FROM Allocations AS allo
	INNER JOIN Contributors AS con ON allo.contributor_id = con.id
	INNER JOIN Rates AS rate ON allo.rate_id = rate.id
	LEFT OUTER JOIN Payments as pay ON allo.payment_id = pay.id
	WHERE pay.client_id = 3;
	```

```
SELECT
	allo.id AS "Allocation ID",
	CONCAT("$", ROUND(allo.amount/100,2)) AS "Amount Allocated (USD)",
	con.name AS "Contributer",
	IF(pay.id IS NULL, "Proposed", "Funded") AS "Status",
	CONCAT(ROUND((allo.amount/100)/rate.hourly_rate, 2)," ", "hrs", " ", "@", " ", rate.hourly_rate, "/hr") AS "Rate Details",
	DATE(allo.start_date) AS "Start Date",
	DATE(allo.end_date) AS "End Date",
	DATE(allo.created_at) AS "Date Created"
	FROM Allocations AS allo
	INNER JOIN Contributors AS con ON allo.contributor_id = con.id
	INNER JOIN Rates AS rate ON allo.rate_id = rate.id
	LEFT OUTER JOIN Payments as pay ON allo.payment_id = pay.id
	WHERE allo.project_id = 19;
```


I use 2 step verification, how to do facebook-chat-api with my Facebook account?

I tried to use Facebook App PasWords but still can't login

See #139


FIX: gitops configmap error handling, k8s utils refactored

Description
gitops create and update configmap error handling | and k8s utils functions refactored
Fixes # (issue)
Type of change

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

[x] Gitops Create and Update

Checklist:

[x] The title of the PR states what changed and the related issues number (used for the release note).
[ ] Does this PR require documentation updates?
[ ] I've updated documentation as required by this PR.
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have tested it for all user roles

k8s utils only code refactored done in some other pr and was released. error handling might solve in some other way.


is there any way to "unscreenshot" a window?

working on using yolo to realtime mark objects on user's screen and setting an overlay to display the result. is there anyway to stop dxcam to capture my topmost overlay window but only the content below it?

Impossible using AcquireNextFrame which dxcam is using
Possible with TryGetNextFrame
Plus, some anti-cheat engine started to detect screenshot api usage (by hooking i guess), some popular streaming or remote software are whitelisted but definitely not yours. Which is why we are developing a capture card with only 6ms latency (worth 150 bucks i assume).
Finally, take care and have fun

@AI-M-BOT
Do you know if using this "GraphicsCaptureItem" API, to screenshot a window instead of screenshotting the desktop, I could bypass the WDM's (WIndows Desktop Manager) Vsync?
I need to screenshot at very high framerates (~ 1000FPS) and WDM basically caps the frame rate to the monitor's framerate, unless I run the game in fullscreen with disabled "fullscreen optimizations".

@AI-M-BOT Do you know if using this "GraphicsCaptureItem" API, to screenshot a window instead of screenshotting the desktop, I could bypass the WDM's (WIndows Desktop Manager) Vsync? I need to screenshot at very high framerates (~ 1000FPS) and WDM basically caps the frame rate to the monitor's framerate, unless I run the game in fullscreen with disabled "fullscreen optimizations".

No, you cannot bypass Vsync, sadly
not sure if you can achieve 1000 FPS (cuz i don't have a good cpu to perform such test)
but i found that "GraphicsCaptureItem" API on my PC might have extra delays (for example, each frame it captured has a 5~10ms delay although each call only takes ~1ms), maybe due to my weak cpu

I am not sure when will be the the time to release that capture card since manufacturing and agreements takes time

https://github.com/lovettchris/wincam uses GraphicsCaptureItem

Impossible using AcquireNextFrame which dxcam is using Possible with TryGetNextFrame
Plus, some anti-cheat engine started to detect screenshot api usage (by hooking i guess), some popular streaming or remote software are whitelisted but definitely not yours. Which is why we are developing a capture card with only 6ms latency (worth 150 bucks i assume). Finally, take care and have fun

I'm not trying to develop a hack, although it's quite similar.
I'm developing a realtime screen-sync reference gui, like yolo realtime on your screen, not for aim assist, only for demonstration purpose.


Upload Sources to GitHub

Code: tool2
Size: 1
Dependencies: None.
Git is an obvious choice for a source control tool. It is completely dominant
and the author is familiar with it. A GitHub account already exists for code
to be uploaded to.

This is now done to branch master. These are found in src dir


Fixes error when setLevel called by windowShade

Using the "Open or Close Window Shades" option in Routines was not working.  Debug log showed an error along the lines of
groovy.lang.MissingMethodException:` No signature of method: java.lang.Integer.minus() is applicable for argument types: (java.lang.String)

So whilst I don't understand where the string is coming from, we can at least make sure that it gets cast to an int :-)
Hopefully should fix issues such as reported here:
https://community.smartthings.com/t/fibaro-roller-shutter-2-fgrm-222-dth-in-post-24-uk-device/65005/75

@craigseymour thanks for your contribution 👍

np - hope it's useful to folk.  Now I just figure out the magic sauce to get the Google Assistant to treat the roller blinds as window shades instead of dimmable lights - "Sure - setting the Living Room blind to 50% brightness" is beginning to grate 😄


Working kbs1, lenlexordering and minor updates

Working kbs1 together with LenLexOrdering that now takes into account that words consist only of positive pointers. Also added some additional methods for Word.
I checked with the examples from Sims: reproduced tables 2.5.1, 2.5.3, 2.5.4 (in the last one there is an error in the book: rule 13 shall not be in the table) and also reproduced the sets of final systems.
Note: I did not try to optimise the code (there was no point for kbs1), it is basically 1-1 what was in the book.
Remark: I did AbstractRewritingSystem and RewritingSystem similarly to the way Word was done. I am not sure it is good though.
To consider for later: right now when we iterate over Word we obtain Integers. If we subset Word via iterator we obtain a vector. Maybe it is sensible to always obtain Word via that protocol, i.e. Word([1,2,3])[2] = Word([2]) and Word([1,2,3])[2:3] = Word([2,3]). It would make the code for kbs1 clearer (shall I open an issue to discuss it separately? This is not something important and maybe later it will become more evident in which way this should be solved).

Codecov Report

Merging #13 into master will increase coverage by 1.08%.
The diff coverage is 95.55%.

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
+ Coverage   95.83%   96.91%   +1.08%
==========================================
  Files           3        6       +3
  Lines          72      162      +90
==========================================
+ Hits           69      157      +88
- Misses          3        5       +2

Flag
Coverage Δ

#unittests
96.91% <95.55%> (+1.08%)
:arrow_up:

Impacted Files
Coverage Δ

src/KnuthBendix.jl
100.00% <ø> (ø)

src/orderings.jl
83.33% <83.33%> (ø)

src/rewriting.jl
91.42% <91.42%> (ø)

src/kbs1.jl
100.00% <100.00%> (ø)

src/words.jl
100.00% <100.00%> (+9.09%)
:arrow_up:

Continue to review full report at Codecov.

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

that's great!

To consider for later: right now when we iterate over Word we obtain Integers. If we subset Word via iterator we obtain a vector. Maybe it is sensible to always obtain Word via that protocol, i.e. Word([1,2,3])[2] = Word([2]) and Word([1,2,3])[2:3] = Word([2,3]). It would make the code for kbs1 clearer (shall I open an issue to discuss it separately?

Please open an issue to discuss this

ok, maybe I went overboard with the number of comments, but the gist is that I like what I see ;)
Besides indexing into words, that needs special care, there is one thing that we need to be careful about: the code above uses the default Word constructor, but we should rather respect what the user gave us. E.g. stating rws::RewritingSystem{W where W<:AbstractWord} in the signature and later using W(...) instead of Word(...). Most of this should be fixed by proper (range) indexing into Words.

As to the names of functions: I only changed kbs1 to knuthbendix1. The rest is not worth doing now. We can use the new naming starting from kbs2. I will open new issue to gather the propositions that appeared so far.

[...] one thing that we need to be careful about: the code above uses the default Word constructor, but we should rather respect what the user gave us. E.g. stating rws::RewritingSystem{W where W<:AbstractWord} in the signature and later using W(...) instead of Word(...). Most of this should be fixed by proper (range) indexing into Words.

Done.


Parent is undefined

I'm following the examples for setting up with Prisma (using the Prisma graphql-authentication example) and everything is working great except when I try to use parent in a rule to establish user ownership.
const isOwner = rule()(async (parent, args, ctx, info) => {
  // Here, ctx contains my proper user object but parent is always undefined
  // without this permission, the yoga resolves the mutation just fine and the updated post is returned
  return ctx.user.items.some(id => id === parent.id)
})

const permissions = shield({
  Mutation: {
    updatePost: or(isAdmin, and(isOwner, isEditor))
  },
})

What I see is that the isOwner rule is being called before my updatePost resolver. Is this the intended behavior? Kinda makes sense not to hit the database if not authorized but then I have no chance to check the ownership of the post.
Does anyone know how parent is supposed to be populated? @maticzav explains nicely in https://github.com/prismagraphql/graphql-middleware/issues/19 that parent is the "result of the previous function. GraphQL works recursively by calling successive types determined by the schema. It starts off with undefined and continues execution down the chain forwarding the result of the previous resolver to the new one." Ok. But my resolver is never called. What am I doing wrong?
Thanks so much!!

The work around I have now is to put the rule on the type rather than the mutation but then each mutation can produce many errors and the rule is run multiple times when it only needs to be run once.

Nevermind, I just read through all the source of shield and middlewares and I think I have a much better understanding now.


⚠ Site ANTS has degraded performance

In 5ba6f21, Site ANTS (https://ants.gouv.fr) experienced degraded performance:

HTTP code: 200
Response time: 9469 ms

Resolved: Site ANTS performance has improved in f34dcfa.


Error:while updating property 'src' of a view managed by: RCTVideo

when I using react-native-af-video-player by follwing the course,there comes an issue so that I cannot use it.
    "react-native": "0.58.6",
    "react-native-af-video-player": "^0.2.1",
    "react-native-keep-awake": "^4.0.0",
    "react-native-linear-gradient": "^2.5.4",
    "react-native-orientation": "^3.1.3",
    "react-native-vector-icons": "^6.4.1",
    "react-native-video": "^4.4.0",
    "react-navigation": "^3.3.2",

OS: android

Here got console logs:
Error while updating property 'src' of a view managed by: RCTVideo

null

requestHeaders
updateViewProp
    ViewManagersPropertyCache.java:95
setProperty
    ViewManagerPropertyUpdater.java:132
updateProps
    ViewManagerPropertyUpdater.java:51
updateProperties
    ViewManager.java:35
createView
    NativeViewHierarchyManager.java:269
execute
    UIViewOperationQueue.java:200
dispatchPendingNonBatchedOperations
    UIViewOperationQueue.java:1109
doFrameGuarded
    UIViewOperationQueue.java:1080
doFrame
    GuardedFrameCallback.java:29
doFrame
    ReactChoreographer.java:166
doFrame
    ChoreographerCompat.java:110
run
    Choreographer.java:909
doCallbacks
    Choreographer.java:723
doFrame
    Choreographer.java:655
run
    Choreographer.java:897
handleCallback
    Handler.java:790
dispatchMessage
    Handler.java:99
loop
    Looper.java:164
main
    ActivityThread.java:6494
invoke
    Method.java
run
    RuntimeInit.java:438
main
    ZygoteInit.java:807

I'm experiencing this exact issue on Android.
I'm using react native crop image to load a video from my gallery and get the file path afterwards.
Then I use this path like so:
<Video url={{uri: 'file:///storage/emulated/0/DCIM/video.mp4'}} />.
However I get this same error!
What could be the respinsible for this? Anyone experiencing this? Been at this for about 6 hours!

I am experiencing this issue on Android too.

I am facing the same issue on Android. Any fixes or workarounds ?

I faced this error too.
My workaround is to modify node_modules/react-native-af-video-player/package.json -> update all package to the newest version.
For example:
From "react-native-video": "^2.2.0" to "react-native-video": "^5.0.0"

I have raised a PR for this issue,
Please look through the PR and merge
PR 134

Hi
Facing the same issue in Android device. Any solution?
"react-native-af-video-player": "^0.2.1",
"react-native-video": "^5.0.2",
Thanks

I was able to fix this problem, heres how i fixed it: https://github.com/abbasfreestyle/react-native-af-video-player/issues/68#issuecomment-596870023

same problem


Deploy your Docker image to Kubernetes

As a [role]
I need [function]
So that [benefit]
Details and Assumptions
* [document what you know]

Acceptance Criteria
gherkin
Given [some context]
When [certain action is taken]
Then [the outcome of action is observed]


SQLSchema - Error: "contains" operator on scalar field is not allowed in auth filter

Environment information
System:
  OS: macOS 14.4.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 153.73 MB / 32.00 GB
  Shell: /bin/zsh
Binaries:
  Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node
  Yarn: 3.8.2 - ~/.nvm/versions/node/v20.12.2/bin/yarn
  npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm
  pnpm: undefined - undefined
NPM Packages:
  @aws-amplify/backend: 1.0.2
  @aws-amplify/backend-cli: 1.0.3
  aws-amplify: 6.3.2
  aws-cdk: 2.142.1
  aws-cdk-lib: 2.142.1
  typescript: 5.4.5
AWS environment variables:
  AWS_SDK_LOAD_CONFIG = 1
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
No CDK environment variables

Description
Getting the following error when querying a nested object.
2024-05-28T21:00:09.760Z	e74367bc-75c9-4254-9ccd-f5db72b9f931	INFO	Error: "contains" operator on scalar field is not allowed in auth filter
    at Object.contains (/opt/nodejs/node_modules/rds-query-processor/adapters/postgres-adapter.js:67:31)
    at /opt/nodejs/node_modules/rds-query-processor/utils/sql-utils.js:48:83
    at Array.forEach (<anonymous>)
    at /opt/nodejs/node_modules/rds-query-processor/utils/sql-utils.js:42:39
    at Array.forEach (<anonymous>)
    at toSQLQueryExpression (/opt/nodejs/node_modules/rds-query-processor/utils/sql-utils.js:14:28)
    at /opt/nodejs/node_modules/rds-query-processor/utils/sql-utils.js:23:86
    at Array.map (<anonymous>)
    at /opt/nodejs/node_modules/rds-query-processor/utils/sql-utils.js:22:42
    at Array.forEach (<anonymous>)

Query:
query MyQuery {
  getUser(id: "f0bc490c-0061-70c3-fc3d-dbaa7ebc2eb9") {
    id
    worker {
      id
    }
  }
}

Schema:
.setRelationships((models) => [
    models.User.relationships({
      worker: a.hasOne('Worker', 'user_id'),
    }),

    models.Worker.relationships({
      user: a.belongsTo('User', 'user_id'),
    }),
  ])
.setAuthorization((models) => [
    models.User.authorization((allow) => [
      allow.ownerDefinedIn('owner'),
      allow.groups(['admin']),
    ]),
    models.Worker.authorization((allow) => [
      allow.ownersDefinedIn('owners'),
      allow.groups(['admin']),
    ]),
  ])

@kekami Can you share the SQL table definitions for User and Worker, as well as the generated source schema.sql.ts? It's hard to pinpoint what the problem might be without a bit more detail.

Hey @palpatim Managed to create a smaller reproducible example of this one as well.
Table definitions
CREATE TABLE users (
    id UUID PRIMARY KEY NOT NULL,
    owner TEXT,
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);

CREATE TABLE workers (
    id UUID PRIMARY KEY DEFAULT gen_random_uuid(),
    owners TEXT[],
    created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    user_id UUID NOT NULL,
    FOREIGN KEY (user_id) REFERENCES users(id)
);

schema.sql.ts
/* eslint-disable */
/* THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. */
import { a } from "@aws-amplify/data-schema";
import { configure } from "@aws-amplify/data-schema/internals";
import { secret } from "@aws-amplify/backend";

export const schema = configure({
    database: {
        identifier: "IDXrrO7OzwePLc4YSnk7J3Mw",
        engine: "postgresql",
        connectionUri: secret("SQL_CONNECTION_STRING_REPRO2")
    }
}).schema({
    "users": a.model({
        id: a.id().required(),
        owner: a.string(),
        created_at: a.datetime(),
        updated_at: a.datetime()
    }).identifier([
        "id"
    ]),
    "workers": a.model({
        id: a.id().required(),
        owners: a.string().array(),
        created_at: a.datetime(),
        updated_at: a.datetime(),
        user_id: a.id().required()
    }).identifier([
        "id"
    ])
});

resource.ts
import { type ClientSchema, a, defineData } from "@aws-amplify/backend";

import { schema as generatedSqlSchema } from "./schema.sql.js";

const sqlSchema = generatedSqlSchema
  .renameModels(() => [
    ["users", "User"],
    ["workers", "Worker"],
  ])
  .setRelationships((models) => [
    models.User.relationships({
      worker: a.hasOne("Worker", "user_id"),
    }),

    models.Worker.relationships({
      user: a.belongsTo("User", "user_id"),
    }),
  ])
  .setAuthorization((models) => [
    models.User.authorization((allow) => [
      allow.ownerDefinedIn("owner"),
      allow.groups(["admin"]),
    ]),
    models.Worker.authorization((allow) => [
      allow.ownersDefinedIn("owners"),
      allow.groups(["admin"]),
    ]),
  ]);

export type Schema = ClientSchema<typeof sqlSchema>;

export const data = defineData({
  schema: sqlSchema,
  authorizationModes: {
    defaultAuthorizationMode: "userPool",
    apiKeyAuthorizationMode: {
      expiresInDays: 30,
    },
  },
});

Also, worth mentioning, I noticed that the error only occurs when using userpool auth, but works fine with IAM auth.

The database is hosted on https://neon.tech/, not using AWS RDS if relevant.

Thanks for the repro, @kekami.

Does this behavior happen in queries using the AppSync console, a JS client, or both?
Does the behavior change if you include workers.user_id in your query selection set? Since user_id is a required field, I'm wondering if there is some validation that might be conflicting.

Either way, we'll try digging into it locally.

Hi @palpatim

Tested with both, and neither work.

const { data, errors } = await client.models.User.list({
  selectionSet: ["id", "worker.id"],
});

query MyQuery {
  listUsers {
    items {
      id
      worker {
        user_id
      }
    }
  }
}

Same behaviour when including worker.user_id in both the JS client and AppSync console.

I suspect it has to do with owners based auth, when the related object has an owners array. Since the inverse query works, e.g.
query MyQuery {
  listWorkers {
    items {
      id
      user {
        id
      }
    }
  }
}

@palpatim Dug a little and found the reason, in the VTL for Connection Queries e.g.
## [Start] Invoke RDS Lambda data source. **
#if( $ctx.stash.deniedField )
  #set( $result = {
  "items":   []
} )
  #return($result)
#end
#set( $lambdaInput = {} )
#set( $lambdaInput.args = {} )
#set( $lambdaInput.table = "service_agreements" )
#set( $lambdaInput.operation = "LIST" )
#set( $lambdaInput.operationName = "ConnectionQuery" )
#set( $lambdaInput.args.metadata = {} )
#set( $lambdaInput.args.metadata.keys = [] )
#set( $lambdaInput.args.metadata.arrayFields = [] )
#set( $lambdaInput.args.metadata.nonScalarFields = [] )
#set( $lambdaInput.args.metadata.fieldMap = {} )
$util.qr($lambdaInput.args.metadata.fieldMap.putAll($util.defaultIfNull($context.stash.fieldMap, {})))
$util.qr($lambdaInput.args.putAll($util.defaultIfNull($context.arguments, {})))
#if( !$lambdaInput.args.filter )
  #set( $lambdaInput.args.filter = {} )
#end
#if( !$util.isNullOrEmpty($ctx.stash.authFilter) )
  #set( $lambdaInput.args.metadata.authFilter = $ctx.stash.authFilter )
#end
$util.qr($lambdaInput.args.filter.put("customer_id", {
  "eq": $ctx.source.id
}))
$util.qr($lambdaInput.args.metadata.keys.addAll($util.defaultIfNull($ctx.stash.keys, [])))
{
  "version": "2018-05-29",
  "operation": "Invoke",
  "payload":   $util.toJson($lambdaInput)
}
## [End] Invoke RDS Lambda data source. **

The problem is here:
#set( $lambdaInput.args.metadata.arrayFields = [] )
#set( $lambdaInput.args.metadata.nonScalarFields = [] )

These should be:
#set( $lambdaInput.args.metadata.arrayFields = ["owners"] )
#set( $lambdaInput.args.metadata.nonScalarFields = ["owners"] )

Not quite sure why they aren't being set though.

@kekami Thanks very much for your effort to troubleshoot and fix the issue, and for including tests in your PR! The fix is merged in https://github.com/aws-amplify/amplify-category-api/pull/2689, and will be pushed to latest with our next release.

This was released in https://github.com/aws-amplify/amplify-category-api/releases/tag/%40aws-amplify%2Famplify-category-api%405.12.3


Can you provide a docker image in docker hub?

I'm ok with that.
/cc @hzxuzhonghu

Yes please a docker image. Thanks a lot!

/cc @Thor-wl , please also help to provide a docker image for that.

Volcano has always docker images in dockerhub. Please try to run docker search volcano to get the list of images. You can get the latest image by run docker pull volcanosh/vc-controller-manager/docker pull volcanosh/vc-scheduler/volcanosh/vc-webhook-manager

Hi @Thor-wl, I think we were requesting for a docker image for kubesim, which is used in deployment yaml
https://github.com/volcano-sh/kubesim/blob/d34ac8fe39b44af769c0c4795ccc0e32ac61bb29/example/kubesim-rc.yaml#L44
but does NOT exist in docker hub.
> docker pull volcanosh/vc-kubesim
Using default tag: latest
Error response from daemon: pull access denied for volcanosh/vc-kubesim, repository does not exist or may require 'docker login': denied: requested access to the resource is denied

Could you please help?

/asign @Thor-wl

@zen-xu @xizhang0919 @adux6991 docker image for kubesim is already pushed to dockerhub. Please get it with docker pull volcanosh/vc-kubesim


[JBTM-14185] testing

Only for testing on CI, not able to reproduce on Windows local machine.

Since this is just a test I've converted this to a draft for now.

Since this is just a test I've converted this to a draft for now.

@ochaloup As this was just for testing can we close now?  FYI it is possible in TeamCity to kick off individual custom jobs with your topic branches if you just need to run against one environment without triggering a full CI run.

@darranl yes, sorry for making the mess here in the PR list. Thanks for pointing me to the TeamCity capability. I will check it next time.


bug: (barcode-scanning): Black screen on Android device

Plugin(s)

[X] Barcode Scanning
[ ] Translation

Did you test the latest version?

[X] I use the latest version

Platform(s)

[X] Android
[ ] iOS
[ ] Web

Current behavior
I followed the guide and tried to add it to my simple app. when i try to scan (after giving permissions), its showing black screen with the scanning square in the middle.
this is what i see on Samsung Galaxy A04e, just a black screen:

Expected behavior
Showing the camera preview and be able to scan barcodes.
Reproduction
https://github.com/robingenz/ionic-capacitor-barcode-scanner
Steps to reproduce

clone the demo repo
follow the installation guide in the README
run on physical device through Android Studio
open app, try to scan - black screen

Other information
Samsung Galaxy A04e with Android 13, running from android studio via Pair using WiFi
Capacitor doctor
PS J:\ionic-capacitor-barcode-scanner> npx cap doctor
[warn] The bundledWebRuntime configuration option has been deprecated. Can be safely deleted.
    Capacitor Doctor
                                                                                Latest Dependencies:

  @capacitor/cli: 5.0.4
  @capacitor/core: 5.0.4
  @capacitor/android: 5.0.4
  @capacitor/ios: 5.0.4

Installed Dependencies:

  @capacitor/core: 5.0.0
  @capacitor/ios: 5.0.0
  @capacitor/android: 5.0.0
  @capacitor/cli: 5.0.0

[error] Missing <manifest package=""> attribute in app/src/main

Before submitting

[X] I understand that incomplete issues (e.g. without reproduction) are closed.

update: in this demo app: https://github.com/robingenz/capacitor-mlkit-plugin-demo
the Start Scan is working, but the Scan shows black screen..

Seems like this is an issue with the com.google.android.gms:play-services-code-scanner dependency, see https://issuetracker.google.com/issues/285007312
I can't reproduce it on my Google Pixel. I recommend using the startScan(...) method until Google fixes the problem.

@robingenz - to be able to use startScan(...) i need to create my own page / component, right? we do not use Ionic, just ReactJS (spa) with Capacitor.

Yes, to use the startScan(...) method, you need to build the UI yourself. You don't need to use Ionic for that - just basic HTML/CSS.

This issue might be related to #38

The issue can be resolved by updating Google Play Services to the latest version. If you continue to experience the same problem, you can try uninstalling and then reinstalling Google Play Services that's worked for me on my physical device and the emulator.

The issue was closed by Google. It seems like you can fix this by updating Google Play Services. For this reason i am closing this issue.


Feature: detailed layer info

Layer infos about capacity and coverage à la Xudong Cao. For this, verbosity has to be > 1. If verbosity > 2, you get some additional information (real filter size and receptive field size).
For non-CNN, output should stay the same.
The layer infos are stored in the attribute 'layer_infos_' for later inspection.

A new PR supercedes this one:
https://github.com/dnouri/nolearn/pull/85


Binding system + loop behaves oddly (errors in chrome and ignored in Firefox)

Given
this.tests = ['a', 'b', 'c'];
setTimeout(() => {
    this.tests = ['d', 'e'];
}, 1000);

and
    <div s:repeat="tests as test" bind>
        {{test}}
    </div>

it will show in Firefox:

a
b
c

in Chrome:

d
b

+

<div s:repeat="tests as test" class="wecoma-consent-bar-purpose">
    <span bind>{{test}}</span>
</div>

Fixes the error in chrome, but does not fix the Firefox problem. And just FYI, the Slim.qSelectAll returned a br for some unknown reason.

And somehow looked totally over the fact that Firefox is throwing a

TypeError: binding.destroy is not a function

error on line 234.

fixed in 3.2.7
🍾


add offline-e2e

add offline-e2e
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/approve

/lgtm

/approve


"psmove" steamvr plugin doesn't work with iriun vr "rabbit" plugin

The psmove plugin doesn't work with iriun vr's rabbit plugin
Iriun vr is at: https://iriun.com/ (scroll down)

use 1.5.2 steamvrbridge its work very well!


Find license files for hatch-built python dependencies

Python wheels built using hatch installs files in a "licenses" folder under dist-info, which was not previously being looked at.  Longer term it might be better to examine all files under dist-info for license contents but this is an ok option in the short term to fix the immediate issue where license files aren't found.

the licenses CI job didn't create a PR to update the out of date dependency metadata because this branch name ends in -licenses 🤦 .  going to merge this and handle the metadata update when the check runs against the default branch

fyi that directory will be the new standard https://peps.python.org/pep-0639/


Manual RenderTree snippets are incomplete

Unless I'm missing something the manual render example snippets are wrong/incomplete. @CustomRender is set by CreateComponent() in the method RenderComponent(), but nothing calls RenderComponent(). While prototyping Blazor I assumed this was a derived a method or convention like ChildContent but after a good bit of debugging blank screens realized nothing calls it.
Also, some explanation of the mechanism and lifecycle there would be nice for understanding it. A lambda/method is used to populate a RenderFragment Property which is then referenced in the razor/template sections. Altering things even slightly (e.g. referencing the lambda method directly, moving the population of the property, etc...) usually resulted in blank screen and only through (a lot of) trial and error could I get a successful render.

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

ID: be4c4d0c-149c-bde1-c7fa-f082916390ca
Version Independent ID: 9d945996-ad02-bd4b-58ea-c465cc5cc74c
Content: Create and use ASP.NET Core Razor components
Content Source: aspnetcore/blazor/components.md
Product: aspnet-core
Technology: aspnetcore-blazor
GitHub Login: @guardrex
Microsoft Alias: riande

After

@ShawnDigital ... let's leave this open. I'd like to take a closer look when I get back from vacation.
OOF for the :gift: holidays :snowman: and will return on January 6.
If you need support, we recommend contacting devs on support channels and chat:

Stack Overflow
ASP.NET Core Slack
ASP.NET Gitter

Potential bugs in the ASP.NET Core framework and product feedback can be reported at aspnet/AspNetCore issues (include full repro steps and cross-link to a repro project in GH when appropriate). For Visual Studio, use the Report a Problem gesture or Suggest a Feature gesture within VS, which open internal issues for the VS team. For Visual Studio Code, you can open an issue at microsoft/vscode issues.
:dancer::man_dancing: Happy New Year! See you in 2020! :balloon::champagne:

Hi thanks for the interest and response. As I mentioned I did find where it was calling the method, I originally copied most of the code into an existing project with its own UI so totally missed the click event and somehow didn't notice it when troubleshooting. Things are a bit clearer after looking through the source and spending more time with it, the RenderFragment delegate versus RenderFragment or simply returning a RenderFragment caused some confusion when comparing various examples (not all of them were in this doco). I'm still trying to figure out the lifecycle or at least how it fits into our use case. I've gotten examples to work then tried to enhance it and broken things accidentally several times so learning through trial and error, which considering that things are still in flux, may be of questionable value at the moment.
Our system is an edge case I'm sure similar to use cases of UI control providers. We dynamically render views provided from a service. These views/forms are created and managed by departments or managers for their workflows and at times may even be customized for a single user. This component model is shared across many platforms and if modified should automatically update when the view is navigated to again or refreshed depending on platform. I have a prototype to demo about 90% of the way there but keep breaking the rendering and spend half a day or so getting it working again (which isn't abnormal while experimenting), but wish the doco had a little more info in this area. I am hoping when schedules normalize next week after the new year I can find time to really dig through the source more.

I think the most confusing things for me are:

sequence (of course) which is incorrectly explained all over including places like visual studio magazine online articles. As I understand the requirements, the value isn't important so much as they are a sequence of integrals that progress, are unique, and persist so can be used for differencing performance. Hard coding line numbers is often mentioned as a good solution but raises questions like unique within what scope since you have looping, splatting, templates etc... so how do they affect or are affected by this? Unique within what scope and timeframe e.g. do they need to persist across posts or complete page reloads or only to facilitate local routes short circuited by the router?
component lifecycle and rendering cycle. It wasn't clear until reading the source that most examples are referencing a property with a RenderFragment named delegate not a property of type RenderFragment and attempts with "similar looking" architectures that got contents from methods or base/helper classes, used razor templates etc... often produced unexpected results that caused more confusion due to vague or confusing errors or more commonly simply nothing being rendered since tooling isn't fleshed out in VS and it can be hard to tell whats going on if no errors are generated for the browser tools and elements simply don't exist which makes docs extra valuable for understanding.
templating i.e. trying to use RenderFragment and razor templates combined with manual rendering has been difficult. Understanding the behavior based on testing alone has mixed results and rendering content that may be one thing (panel) which may recursively render its own contents or a collection of items (list) where using a razor template makes sense has been mostly trial and error resulting in solutions that feel clunky or like hacks and rely on internal functionality which is more likely to change and possibly invalidating any prototyping I do which makes documentation and best practices even more beneficial.

Its early days and a WIP so completely understandable, but blazor opens up web to existing .net code reuse so many ui control vendors and framework providers with advanced use cases will be very interested in and early adopters of this tech. I'd be happy to help/contributt, but I definitely don't feel like I understand anything well enough help document it yet lol.

@ShawnDigital ... I'm back! ... it was a nice, restful break. Hope you had the same.
Ok ... so your feedback should be addressed by management, so I'm going to mark this for triage on the Blazor.Docs project. They'll come in at some point ... a few weeks probably ... and provide a response. Give them a few weeks because we're all just getting back from the extended holiday break. ⛄ Everyone is digging out from a piles of email and issues! ⛏
A few notes to your points by numbered comment ...

I defer to engineering on content pertaining to sequence (e.g., Sequence numbers relate to code line numbers and not execution order). Standby for their response to your remarks.

RenderFragment

referencing a property with a RenderFragment named delegate not a property of type RenderFragment

I've been holding off on cross-linking to API docs in the Blazor docs. This made your research more difficult. When I get to https://github.com/aspnet/AspNetCore.Docs/issues/10931, I'll cross-link RenderFragment to RenderFragment ... and a few hundred other API mentions that need to be cross-linked. I apologize for this situation, and I plan to make a 👹 monster pass 👹 on the Blazor docs to get those cross-links in there. The problem was mostly 🕐 TIME ... high priority issues to address and the cost 💰 of the very-manual process of cross-linking. Also, Blazor WebAssembly hasn't released yet, and I favor one giant cross-linking pass after Blazor WebAssembly reaches GA. It's a 💲 cost savings 💲 to Microsoft to embrace this approach.

Absolutely, I hear you. I defer to Dan to react and let us know what we can do, if anything. In general, we focus on the most common scenarios. IMO, one of the most frequent feedback comments is, 'you don't cover enough advanced scenarios.'

Its early days and a WIP so completely understandable

Thank you for that! We're aware and working hard to cover Blazor scenarios most beneficial to developers.

I'd be happy to help/contribute, but I definitely don't feel like I understand anything well enough help document it yet

I'll work with you on that. Please feel free to open doc issues for any new topic idea, new sections to existing topics, or just feedback. If you're concerned about the framework itself (the source code), open with engineering. For an existing doc, use the This page feedback button+form at the bottom of the topic, which will automatically ping me. For a new doc opened directly on the repo, ping me in your opening comment ... I'll add the appropriate labels and set it up for triage on the Blazor.Docs project.

Open/CloseRegion recommended then made internal then said it is or would be made not internal

Just due to framework churn ... it's public now, and it will stay that way.

OH! ... and btw --- totally off topic, but we were just there for a visit. No crazy crowds in the French Quarter. We had a great time. Some of our family who were on the trip were born and raised there, so it was a family history trip, too. It was great. I encourage others to visit New Orleans and enjoy the culture, food, and music! Landry's was highlight of the trip ... ❤ it 🍤.

Generally we try to stay away from the quarter around holidays/mardi gras, but my wife and I decided to get away (from family and obligations) and had a little staycation in the quarter the week of new years to celebrate our 10 yr anniversary so were probably in the area. Glad you had a good time. There's a certain character here that makes it hard to live in places after you stay here a while although the hot months like Aug/Sept may make you seriously consider it. :)

We really do appreciate the work! We've been excited for Blazor (and WebAssembly) since we first heard about it. We've been laying the ground work for consolidating a bunch of platform specific code in preparation for a "single-pane" UX looming on our roadmap for years and when we got wind of it we hoped Blazor would be viable in time and the timing has been perfect. Took a little fumbling around at first, but currently very happy with the proof of concept we have so far for a hosted app and eventually hope to transition to wasm. Its saved us months if not years of recreating a ton of functionality for the web by reusing our existing cross platform libraries.

@mkArtakMSFT @danroth27 I've done what I can on my own for this issue ...

API doc cross-links have been added to all topics.
Additional lifecycle topic work with more lifecycle work coming soon on https://github.com/dotnet/AspNetCore.Docs/pull/18610.

I'll need guidance to continue on this issue or for engineering to provide the exact updates, if any. If the remainder of @ShawnDigital's asks are "advanced scenarios" that we won't cover, then we can close this issue.
@ShawnDigital, if we close on the grounds of further coverage falling into the advanced scenarios bucket, it's because the docs generally seek to cover the base cases for the vast majority of general Blazor scenarios. We leave a number of advanced scenarios to devs to work out from basic concepts, the framework reference source, engineering repo issue discussions, the API docs, blogs, chat, books, etc. We're a small team with limited time, so we have to prioritize coverage for what 95% of devs will be doing with Blazor.

I've kind of moved beyond the blazor docs and mostly just dealing with integration issues and fighting css and third party controls so haven't been looking at it much lately. Look back in hindsight based on my bad recollection the two main hurdles were the render delegate and lifecycle methods. In snippets from the docs it wasn't obvious what it was calling i.e. if it was a abstract/base method or builtin convention like ChildContent and I think I had to find the source to find the delegate which at the time wasn't easy. It looked like renderfragment properties you saw in templates so took some trial and error to get the snippet working. I think that is found with the manual rendering which is advanced but kind of ties into razor templates and templated components and renderfragments are handled (some of which is just VS being flaky with razor files & render fragments. I think api cross references helps alot.
The other was (is) a general lack of clarity on the lifecycle methods. When are they called/not called what should / should not be done there etc...quite a few bugs I've encountered were due to setting something in the wrong place so it doesn't get updated or it gets replaced or causes unexpected duplication etc... so if thats already planned, sounds good to me.

We've worked on and are continuing to work on the lifecycle methods.
There have been PRs since you opened this issue, and all Blazor topics will be receiving a big UE (user experience) pass soon-ish ... within a month or two if my plans work out.
I even have an open one now for review that helps (I hope) ...
Blazor lifecycle ordering clarifications — https://github.com/dotnet/AspNetCore.Docs/pull/18610
As for the rest :point_up: of your feedback ... things that I couldn't directly address, I'll leave this open a bit longer for engineering to look. If they don't say anything tho :ear:, then I'll close, and we'll keep working on these topics in the coming weeks and months before new 5.0 preview content starts to land.

I'm going to close now. Engineering management hasn't remarked further. These topics have received a number of improvements since this issue was opened, including improvements to the Lifecycle topic. We also have all of the API doc cross-links in place, which would've probably helped at the time.
Thanks for the feedback and discussion @ShawnDigital.


Epic: SelectableList - Shipping Method, Address & Payment Method

Type: major
Component Library

[ ] - SelectableItem #149
[ ] - SelectableList #148

Starterkit

[ ] - Shipping Methods #194
[ ] - Address
[ ] - Payment

@machikoyasuda @nnnnat Be sure to coordinate since the AddressList bridges this epic and reactioncommerce/reaction#4511


Ea v12contract support

added passing in of key price to purchase call

Customer confirmed that the new version here corrected their issue


How to get the Authorization Bearer token and verify with it.

I'm running web sockets and I need to support module authentication by retrieving and verifying tokens from your module. Every time I connect to the server, I will use the token provided by the nuxt-auth module. This will help the connection process.
I need a function to support getting and verifying tokens from your module. Can you upgrade the module's features?

I read your code and noticed I can get the token like this in component.vue

const { user ,getAccessToken}: { user: any } = useAuthSession();

const accessToken = await getAccessToken();
const headers = {
     "Authorization": `Bearer ${accessToken}`
}

Then I transmit it to the server with the socket when connecting.
I can then use the encode and decode functions from #auth.
I need it for websocket auth.
Can I use them like that?

i just saw these two functions getAccessTokenFromHeader
verifyAccessToken in server/utils/token/accessToken.ts seems to have exactly what I need but is it possible to use it in the project?

On client side, you can get a fresh access token with getAccessToken. On server side, you can directly check the payload with event.context.auth. The non documented server utilities are considered internals, you can use them but may be subject to unexpected changes.


Set the global tracer based on a parameter.

This way, we won't break the contract with other instrumentation libraries, but we still provide this specific case if the user wants to go with it.

@mikebryant Will me merging soon unless you think this is bad ;)
Also, from now, you will be able to get this behavior by doing:
OPENTRACING_SET_GLOBAL_TRACER = True

Let me know ;)

Apologies, I'm finding it difficult to get time to focus on this.
This looks good, thanks for keeping the functionality.

Thanks for the feedback @mikebryant. Merged ;)


🍒 Cherry pick PR #4037 to staging 🍒

🍒 Cherry pick https://github.com/Expensify/Expensify.cash/pull/4037 to staging 🍒

🚀 Deployed to staging         in version: 1.0.77-5🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅

🚀 Deployed to production         in version: 1.0.77-5🚀

platform
result

🤖 android 🤖
success ✅

🖥 desktop 🖥
success ✅

🍎 iOS 🍎
success ✅

🕸 web 🕸
success ✅


Temperature units

First off, kudos! This library is awesome and is working well with Mr Cool DIY 12k mini-split (whitelabel midea). However, any set command changes the temperature unit from F to C.
Is it possible to retain the current setting or at least for me to hard code it somewhere (in the data I presume)?

Any update on this? If you can lead me in the right direction to prevent the AC changing from Fahrenheit to Celsius every time a command is sent, I would really appreciate.


python312Packages.optax: 0.2.3 -> 0.2.4

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python312Packages.optax is: Gradient processing and optimization library for JAX
meta.homepage for python312Packages.optax is: https://github.com/deepmind/optax
meta.changelog for python312Packages.optax is: https://github.com/deepmind/optax/releases/tag/v0.2.4
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS

[!CAUTION]
A test defined in passthru.tests did not pass.

found 0.2.4 with grep in /nix/store/xnm38v630gxa33hp9lzav0mqa03n0lc9-python3.12-optax-0.2.4
found 0.2.4 in filename of file in /nix/store/xnm38v630gxa33hp9lzav0mqa03n0lc9-python3.12-optax-0.2.4

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

40 total rebuild path(s)

40 package rebuild(s)

First fifty rebuilds by attrpath

python311Packages.ale-py
python311Packages.arviz
python311Packages.bambi
python311Packages.blackjax
python311Packages.corner
python311Packages.dalle-mini
python311Packages.distrax
python311Packages.dm-haiku
python311Packages.elegy
python311Packages.equinox
python311Packages.evosax
python311Packages.flax
python311Packages.flowmc
python311Packages.gymnasium
python311Packages.jaxopt
python311Packages.lineax
python311Packages.minari
python311Packages.numpyro
python311Packages.nutpie
python311Packages.optax
python311Packages.optimistix
python311Packages.pettingzoo
python311Packages.pymc
python311Packages.rlax
python311Packages.shimmy
python311Packages.skrl
python311Packages.torchrl
python311Packages.treex
python311Packages.vqgan-jax
python312Packages.arviz
python312Packages.blackjax
python312Packages.corner
python312Packages.equinox
python312Packages.jaxopt
python312Packages.lineax
python312Packages.numpyro
python312Packages.nutpie
python312Packages.optax
python312Packages.optimistix

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/xnm38v630gxa33hp9lzav0mqa03n0lc9-python3.12-optax-0.2.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

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

Or:
nix build github:r-ryantm/nixpkgs/3bd3303908a1c3bb64c550e4dee66506e1a3a13e#python312Packages.optax

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/xnm38v630gxa33hp9lzav0mqa03n0lc9-python3.12-optax-0.2.4
ls -la /nix/store/xnm38v630gxa33hp9lzav0mqa03n0lc9-python3.12-optax-0.2.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 120m and timed out

Maintainer pings
cc @ndl for testing.

[!TIP]
As a maintainer, if your package is located under pkgs/by-name/*, you can comment @NixOS/nixpkgs-merge-bot merge to automatically merge this update using the nixpkgs-merge-bot.

Add a :+1: reaction to pull requests you find important.

Done in #355655.


[Added] Footer in the README.md file

Issue Title
Enhanced Footer with Social Links

[x] I have provided the issue title.

Info about the Related Issue
What's the goal of the project?
The goal is to add footer in the README.md file.

[x] I have described the aim of the project.

Name
Please mention your name.
Mohd Ahsan Raza Khan

[x] I have provided my name.

GitHub ID
Please mention your GitHub ID.
mohdahsanrazakhan

[x] I have provided my GitHub ID.

Identify Yourself
Mention in which program you are contributing (e.g., WoB, GSSOC, SSOC, Hactoberfest).
GSSOC Contributor

[x] I have mentioned my participant role.

Closes
Enter the issue number that will be closed through this PR.
Closes: #343

[x] I have provided the issue number.

Describe the Add-ons or Changes You've Made
Give a clear description of what you have added or modified.
I have just added a few lines of markdown to create a footer with a paragraph and a couple of icons. Currently, the GitHub icon redirects to the repository, but the remaining icons cannot redirect because I don't have the links.

[x] I have described my changes.

Type of Change
Select the type of change:

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Code style update (formatting, local variables)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

How Has This Been Tested?
Describe how your changes have been tested.
Step 1: Go to the gdg-website
Step 2: Scroll all the way to the end.

[x] I have described my testing process.

Checklist
Please confirm the following:

[x] My code follows the guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly wherever it was hard to understand.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added things that prove my fix is effective or that my feature works.

Make it Contact with Us, as gdg is a community not an individual

This issue was not assigned to you


XLSX_Formats now has 'left-top-bottom-...' views now added to format_…

…dict. This allows the ExcelPainter to write single view chains.

This PR resolves #222.


JetBrains: unify access token notification

After https://github.com/sourcegraph/sourcegraph/pull/52838/files, the Sourcegraph posts two notifications when users install Sourcegraph for the first time.

We should design an onboarding workflow that only has one notification.
Related to sourcegraph/cody#144

This needs more design. Get the info from Slack and get designer input and decisions
Also, many logger.errors were recently demoted to logger.warns and once we convert those to notifications, there could be more duplications like these, so this about that first.

We received feedback from a customer that this behavior is confusing. We should prioritize fixing this.


Label for each data set in pie chart

I would like to know if it's possible to specify different labels for multiple data set in pie chart in the 2.0 alpha 3 version. If not, is it a contribution that would be interesting for the project ?

Yeah, that's interesting.  We didn't see much use of the multiple dataset pie in the first place, we just kinda put it in as an experiment and novelty and it worked great!
I think this would be a good feature.  If you have it coded, PR it!.
Not really a breaking API change, so there's no rush.  Really, a good idea.

I've no code for the moment. The idea is to allow for labels in data.datasets.labels rather than data.labels.

Adding data.dataset.labels to override data.labels is not hard at all. :)

Turns out we already had this functionality in Controllers.Doughtnut.js however the tooltip did not use the element label. All we need to do is have the tooltip look for the label in the element.
@jibaku you can set data.dataset.label to an array of labels. These will have precedence over data.labels. If data.dataset.label is not specified, it will fall back to data.labels. You will need to rebuild from the current v2.0-dev branch code to get the latest changes. Do an NPM install before building to get the latest dependencies.

It is still not possible to display which pie corresponds to which dataset (like in this picture).
This would be very useful!

@gentisaliu Looks like it has only been done for the Doughnut chart.
If you followed what @etimberg said, add this to chart.options to make it work:
tooltips: {
    callbacks: {
        label: function(item, data) {
            return data.datasets[item.datasetIndex].label[item.index]
                        + ": " + data.datasets[item.datasetIndex].data[item.index];
        }
    }
}

I know this is closed but this accomplishes what you are asking
I am posting this here because I spent quite a while struggling with it.
      tooltips: {
      callbacks: {
      label: function(tooltipItem, data) {
            var dslabels = data.labels[tooltipItem.index];
            var dataset = data.datasets[tooltipItem.datasetIndex];
            var dslabelamt = dataset.data[tooltipItem.index];";
            return dslabels + '-' + data.datasets[tooltipItem.datasetIndex].label + ': ' + dslabelamt;
            }
        }

Hi.
I follow @etimberg  and @GammaGames's code.
My problem is that when I hover a segment, it pops up label of items in two datasets which has the same index.
Here's my code
`    var ctx = document.getElementById("myChart");
var data = {
// labels: ["a","b","c","d","e","f"],
datasets: [
{
data: [10, 20, 20, 30],
label: 'Data 1',
labels: ["a", "b", "c", "d"],
backgroundColor : ['#ff6384','#36a2eb','#cc65fe','#ffce56']
},
{
data: [30, 50],
label: 'Data 2',
labels: ["e", "f"],
backgroundColor : ['#ffffbb','#0000aa']
}
],
};
            var options = {
                tooltips: {
                    callbacks: {
                        label: function (item, data) {
                            console.log(item)
                            var label = data.datasets[item.datasetIndex].labels[item.index];
                            var value = data.datasets[item.datasetIndex].data[item.index];
                            return label + ': ' + value;
                        }
                    }
                }
            };

            var pieChart = new Chart(ctx, {
                type: 'pie',
                data: data,
                options: options
            })`

For example, when i hover the yellow segment (belongs to the second dataset), 2 labels correspond with first item in 2 datasets appear.
I only want, in this case, label of the second dataset.  How can I achieve it ?
Thank you.

@dangkhoa12pfiev3 What version of chartjs are you using? I copied your code and put it in this jsfiddle and it's working fine for me in both chrome and firefox

Hi,
Thank you for your answer. I discovered that it's the problem when I use ChartJS with AngularJS directive, when I remove the script angular-chartjs it worked.

Hi,
Recently I updated Chart.js and everything is broken. Can someone help me with the below code.
Here is an Example of old version : http://jsfiddle.net/x7q5tav6/1/
Old Version
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
var label = data.datasets[tooltipItem.datasetIndex].labels[tooltipItem.index];
var value = data.datasets[tooltipItem.datasetIndex].data[tooltipItem.index];
return label + ': ' + value;
}
}
}

New version
label: function (context) {
var datasets = context.myChart.data.datasets;
      var contextdatasetindex = context.datasetIndex;

      var index = context.dataIndex;

      var label =  datasets[contextdatasetindex].label[index];

      var value = datasets[contextdatasetindex].data[index];

      return label + ": " + value;

}
Thank you.

@andersonJordan please read the v3 migration guide

I have tried to understand but couldn't figure out. Any help would be appreciated. Thank you.

@andersonJordan idk where you got the property myChart from since it does not exist on the context. You should call the chart property

I have tried calling chart, it still hasn't worked for me. IDK where I'm going wrong.

The correct configuration is:
	stats_consents_chart = new Chart(stats_consents, {
		type: "doughnut",
		data: @Html.Raw(ViewData["StatsConsents"]),
		options: {
			plugins: {
				legend: { display: false },
				title: {
					display: true,
					text: "Patient by Consent Status (Total @ViewData["PtCount"])",
					padding: { top: 0, bottom: 4 }
				},
				tooltip: {
					callbacks: {
						label: function(context) {
							let label = context.dataset.labels[context.dataIndex] + ": " + context.dataset.data[context.dataIndex];
							return label;
						}
					}
				}
			},
			layout: {
				padding: 8
			}
		}
	});


[Bug] Type definition reports spurious errors 2536 and 2322 but type works as expected in actual usage

Bug Report
Type definition reports spurious errors 2536 and 2322 but the type works as expected in actual usage.
🔎 Search Terms
2536
2322
🕗 Version & Regression Information
Reproduced in:

Version 4.7.2
v4.8.0-dev.20220529

⏯ Playground Link
Playground link with relevant code
💻 Code
// Typescript compiler giving errors on the ObjectToTriple type definition, but in practice it works as expected
//     1. `Type 'B' is not assignable to type 'string | number | bigint | boolean | null | undefined'.(2322)`
//     2. `Type 'B' cannot be used to index type 'A'.(2536)`
// workaround: use @tsignore to ignore the errors here
type ObjectToTriple<A extends { namespace: string }, B = string & keyof A> = B extends any ? [number, `${A["namespace"]}/${B}`, A[B]] : never;

type Obj = {
    namespace: 'sample',
    text: string,
}

// ObjectToTriple works as expected in all cases
const example: ObjectToTriple<Obj>[] = [
    // Valid Examples
    [1, 'sample/namespace', 'sample'],     // typechecks as expected
    [1, 'sample/text', 'sample text'],     // typechecks as expected

    // Invalid examples
    [1, 'sample/namespace', 'INVALID'],   // type error as expected
    [1, 'sample/text', 18732],            // type error as expected
]

🙁 Actual behavior
Two Typescript compiler errors reported in the definition of ObjectToTriple, despite the type actually working in practice as expected.
Workaround: @tsignore to ignore the type definition errors and use the type as expected.
🙂 Expected behavior
No Typescript errors in the definition of ObjectToTriple.

Despite having a default, B is unconstrained and could be anything.  In particular it might include symbols, which can't be used in a template literal, or it might be some object type, which can't be used as an indexer.  In particular, ObjectToTriple<Obj, Obj> is a valid instantiation, in which case the type alias as written is nonsensical.  Hence the errors.
This makes all the errors go away:
type ObjectToTriple<A extends { namespace: string }, B extends string & keyof A = string & keyof A> = B extends any ? [number, `${A["namespace"]}/${B}`, A[B]] : never;

Thanks for the clarification @fatcerberus! That explanation helped confirm it was indeed my confusion over default instantiation but not actually constraining the type.


Update audio highlight tour page header

What
Update header area of Audio highlight tour page
Example, link to final designs to be added:

[ ] Add breadcrumbs
[ ] Change subtitle from 'Audio' to 'Audio highlight tour with transcripts'
[ ] Remove red background & buttons
[ ] Add icons

Why

Make visual design more consistent
Simplify user navigation by using common pattern of breadcrumbs rather than two buttons

Background
Done when

see design on Figma, Key Designs - Mobile space

It's in prod, If you turn on the "Exhibition Guides redesign/restructure work" toggle you can see it.
@kasiabbb fyi! Let's catch up after you've reviewed and we can create new tickets off the back of what we discuss.


Installation of sentry/sentry-symfony package in version 4.1 with symfony/symfony 3.4.x version breaks appliciation due to missing cache contract

Environment
How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
"sentry/sentry-symfony": "^4.1",
Steps to Reproduce
Installed the above mentioned package with
composer require sentry/sentry-symfony
Expected Result
Application runs as before with an activated sentry integration.
Actual Result
Application is broken:

due to a missing symfony cache interface. The cache Interface used here:
https://github.com/getsentry/sentry-symfony/blob/master/src/Tracing/Cache/TraceableCacheAdapter.php#L11
but the compose.json file is not defining the symfony/cache or symfony/cache-contracts as required package.

While it is not correct to require the symfony/cache component because the integration is optional, on Symfony 3.4 I didn't noticed before that that package doesn't depend on symfony/cache-contracts package. I've opened a PR to fix the issue, if you could try it and let me know if it works it would be great

thx @ste93cry for the quick reply and fix :+1:


Suppress required for edit option to be available

Can not edit or view data if the exhibit or item is published.
If an exhibit is live, and base template needs editing, must go offline (supressed) first. exhibit should be editable any time.
Request: to confirm that live/published exhibits or items will be changed when they go live, instead of having to unpublish items/exhibit first to edit them

Will address this enhancement request with enhancement #17


The table public.account does not exist in the current database.     at cb (/Users/vic2/GitHub/proj/umami/node_modules/@prisma/client/runtime/index.js:34780:17)

I used the online tutorial to create on supabase postgres and get the error.
Public schema exists, and I granted rights, but no joy.
Help?

Log into your database and see if the tables are there.

Hello, I've got the same issue.
On the docker image on the directory /docker-entrypoint-initdb.d you don't have schema.postgresql.sql because it's a directory.


PATCH endpoint sending invalid HTTP Method in Web Client

What happens?
When calling an endpoint with the PATCH method in the Web Client, patch (all lowercase) is sent in the network request. Our application uses NGINX, which treats patch calls as a 400 Bad Request - expecting only PATCH.
This issue is not present with other HTTP Methods, like GET/POST/DELETE.
The issue was observed with<EMAIL_ADDRESS>
Reference: https://blog.k-nut.eu/patch-capitalization
What did you expect to happen?
Sending requests with the PATCH method should result in network requests that have PATCH (all caps) for the request method.
OpenAPI Document
No response

This was resolved by upgrading to 1.25.32


test pr template

Testing PR template successfully, the template will look like under:
Description

Fixes #

Changes Made

[ ] File 1: Updated logic to handle edge cases.
[ ] File 2: Refactored function xyz() to improve performance.
[ ] Added new test cases for validation.

Screenshots (if applicable)

Testing Details

[ ] Unit tests passed
[ ] Integration tests updated/added
[ ] Tested on staging/QA environment

Impact

Breaking changes:
Documentation updated:

Related Issues/PRs

Checklist

[ ] Code compiles correctly
[ ] Tests have been written and run
[ ] Code adheres to the style guidelines
[ ] Documentation updated (if necessary)
[x] Relevant issues linked (if applicable)
[ ] Ready for review

Additional Notes

I created this branch just to test the template working properly when contributors want to create PR request. Then, I dont need to merge this branch so just delete it.


where is the app client source code ?

waouu, more than one year later, sorry for the wait !!
By the past, I was giving a try with : https://github.com/ychab/mymoney-client but it is absolutely not finished and didn't got any more time...
Still hoping someone could do it :p


Add frontend features

I added frontend features to my portfolio

Hi Shubham, Can you please add more text/description to this code review? I don't understand what this frontend does.
If you want more systematic approach then use https://github.com/ShubhamAtri/my-portfolio/issues

@nityendrasingh Added more explanation in description of code review.

nice!


Implement a better text completion algorithm

Something that allows you to type fragments of words and complete based on camel case structures, like what is implemented in VSCode, would make editable choosers much better.

We also need to figure out what the story is with Extend and ConnectOnce in this context.

I implemented this in the commits above; moving discussion about Extend and ConnectOnce to #716.